]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 2683bce2a3658d8a29e018b6e3682b876580a942..447dcd81019adb190a15b598207d7719780efd83 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 cc15c959b3b4e30fae88efcc4e849e79a217604e..dc249fad6fe17ec331efe5bb53c862c85b2cf417 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;