aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchannels/chan_iax2.c3
-rwxr-xr-xchannels/iax2-parser.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 2683bce2a..447dcd810 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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)
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index cc15c959b..dc249fad6 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -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;