Present message code properly (bug #3447)

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@185 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2005-01-28 22:11:24 +00:00
parent dc74d755a8
commit 0e0d251e15

5
q931.c
View File

@ -205,6 +205,7 @@ struct msgtype facilities[] = {
#define LOC_NETWORK_BEYOND_INTERWORKING 0xa
static char *ie2str(int ie);
static char *msg2str(int msg);
#define FUNC_DUMP(name) void ((name))(int full_ie, q931_ie *ie, int len, char prefix)
@ -1384,6 +1385,10 @@ static FUNC_DUMP(dump_cause)
for (x=2;x<ie->len;x++)
pri_message("%c Cause data %d: %02x (%d, %s IE)\n", prefix, x-1, ie->data[x], ie->data[x], ie2str(ie->data[x]));
break;
case PRI_CAUSE_WRONG_CALL_STATE:
for (x=2;x<ie->len;x++)
pri_message("%c Cause data %d: %02x (%d, %s message)\n", prefix, x-1, ie->data[x], ie->data[x], msg2str(ie->data[x]));
break;
case PRI_CAUSE_RECOVERY_ON_TIMER_EXPIRE:
pri_message("%c Cause data:", prefix);
for (x=2;x<ie->len;x++)