[libpri-commits] jpeeler: branch dhubbard/servicemessages r719 - /team/dhubbard/servicemessages/
SVN commits to the libpri project
libpri-commits at lists.digium.com
Mon Mar 30 10:57:27 CDT 2009
Author: jpeeler
Date: Mon Mar 30 10:57:23 2009
New Revision: 719
URL: http://svn.digium.com/svn-view/libpri?view=rev&rev=719
Log:
This debugging was helpful to me and I didn't see it reported anywhere else.
Adds to pri debug output if a channel is configured as NET or CPE.
Modified:
team/dhubbard/servicemessages/q931.c
Modified: team/dhubbard/servicemessages/q931.c
URL: http://svn.digium.com/svn-view/libpri/team/dhubbard/servicemessages/q931.c?view=diff&rev=719&r1=718&r2=719
==============================================================================
--- team/dhubbard/servicemessages/q931.c (original)
+++ team/dhubbard/servicemessages/q931.c Mon Mar 30 10:57:23 2009
@@ -261,6 +261,20 @@
return "Unknown";
}
+static char *pritype(int type)
+{
+ switch (type) {
+ case PRI_CPE:
+ return "CPE";
+ break;
+ case PRI_NETWORK:
+ return "NET";
+ break;
+ default:
+ return "UNKNOWN";
+ }
+}
+
static void call_init(struct q931_call *c)
{
c->forceinvert = -1;
@@ -461,8 +475,8 @@
if (!(ie->data[pos] & 0x10)) {
/* Number specified */
pos++;
- pri_message(pri, "%c Ext: %d Channel: %d ]\n", prefix, (ie->data[pos] & 0x80) >> 7,
- (ie->data[pos]) & 0x7f);
+ pri_message(pri, "%c Ext: %d Channel: %d Type: %s]\n", prefix, (ie->data[pos] & 0x80) >> 7,
+ (ie->data[pos]) & 0x7f, pritype(pri->localtype));
} else {
pos++;
/* Map specified */
More information about the libpri-commits
mailing list