Handle debugging of unknown IE's properly
authorMark Spencer <markster@digium.com>
Tue, 25 May 2004 15:16:45 +0000 (15:16 +0000)
committerMark Spencer <markster@digium.com>
Tue, 25 May 2004 15:16:45 +0000 (15:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3070 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
channels/iax2-parser.c

index 2683bce..447dcd8 100755 (executable)
@@ -508,7 +508,8 @@ static ast_mutex_t dpcache_lock;
 
 static void iax_debug_output(const char *data)
 {
-       ast_verbose(data);
+       if (iaxdebug)
+               ast_verbose(data);
 }
 
 static void iax_error_output(const char *data)
index cc15c95..dc249fa 100755 (executable)
@@ -553,7 +553,7 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)
                        break;
                default:
                        snprintf(tmp, sizeof(tmp), "Ignoring unknown information element '%s' (%d) of length %d\n", iax_ie2str(ie), ie, len);
-                       errorf(tmp);
+                       outputf(tmp);
                }
                /* Overwrite information element with 0, to null terminate previous portion */
                data[0] = 0;