--- libpri/q931.c 2003-12-05 15:10:33.000000000 -0800 +++ libpri_mancill/q931.c 2003-12-08 21:59:31.000000000 -0800 @@ -843,7 +843,11 @@ static void dump_user_user(q931_ie *ie, int len, char prefix) { - + int x; + pri_message("%c User-User Information (len=%2d) [ ", prefix, ie->len); + for (x=0;xlen;x++) + pri_message("%c", ie->data[x] & 0x7f); + pri_message(" ]\n"); } @@ -1934,7 +1938,7 @@ /* This is the weird maintenance stuff. We majorly KLUDGE this by changing byte 4 from a 0xf (SERVICE) to a 0x7 (SERVICE ACKNOWLEDGE) */ - h->raw[3] -= 0x8; + h->raw[h->crlen + 2] -= 0x8; q931_xmit(pri, h, len, 1); return 0; } else if (h->pd != Q931_PROTOCOL_DISCRIMINATOR) {