fixup for: mgcp: display properly mgcp-messages in log

This commit is contained in:
Philipp Maier 2017-07-21 17:27:31 +02:00 committed by Neels Hofmeyr
parent e198087a15
commit 19c4fd0562
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ void display_mgcp_message(unsigned char *message, unsigned int len,
unsigned int consumed_line = 0;
unsigned int line_count = 0;
if (!log_check_level(DMGCP, LOGL_DEBUG))
return;
while (1) {
memset(line, 0, sizeof(line));
ptr = line;