Handle debugging of unknown IE's properly

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 2cc7d3e8db
commit 0f966565af

@ -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)

@ -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;

Loading…
Cancel
Save