[libpri-commits] trunk - r303 /trunk/q931.c
libpri-commits at lists.digium.com
libpri-commits at lists.digium.com
Thu Jan 19 15:24:41 MST 2006
Author: mattf
Date: Thu Jan 19 16:24:41 2006
New Revision: 303
URL: http://svn.digium.com/view/libpri?rev=303&view=rev
Log:
More little updates for RLT on DMS100. Fix ASN.1 dump code for multibyte facility IE headers
Modified:
trunk/q931.c
Modified: trunk/q931.c
URL: http://svn.digium.com/view/libpri/trunk/q931.c?rev=303&r1=302&r2=303&view=diff
==============================================================================
--- trunk/q931.c (original)
+++ trunk/q931.c Thu Jan 19 16:24:41 2006
@@ -1479,12 +1479,13 @@
static FUNC_DUMP(dump_facility)
{
+ int dataat = (ie->data[0] & 0x80) ? 1 : 2;
pri_message(pri, "%c Facility (len=%2d, codeset=%d) [ ", prefix, len, Q931_IE_CODESET(full_ie));
dump_ie_data(pri, ie->data, ie->len);
pri_message(NULL, " ]\n");
if (ie->len > 1) {
pri_message(pri, "PROTOCOL %02X\n", ie->data[0] & ASN1_TYPE_MASK);
- asn1_dump(pri, &ie->data[1], ie->len - 1);
+ asn1_dump(pri, &ie->data[dataat], ie->len - dataat);
}
}
More information about the libpri-commits
mailing list