From cf456d41e28c7b5853d45bb96f69a9c2da23bc79 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Sat, 16 Oct 2010 04:34:39 +0000 Subject: [PATCH] Dump Q.931 message using the TEI value the message came in with. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2042 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/q921.c b/q921.c index 2a69dc2..6dd3c46 100644 --- a/q921.c +++ b/q921.c @@ -2090,7 +2090,7 @@ static pri_event *q921_iframe_rx(struct pri *ctrl, q921_h *h, int len) * Q.921 is dumping its frames they will be in the correct order. */ if (ctrl->debug & PRI_DEBUG_Q931_DUMP) { - q931_dump(ctrl, ctrl->tei, (q931_h *) h->i.data, len - 4, 0); + q931_dump(ctrl, h->h.tei, (q931_h *) h->i.data, len - 4, 0); } delay_q931_receive = 1; @@ -2377,7 +2377,7 @@ static pri_event *__q921_receive_qualified(struct pri *ctrl, q921_h *h, int len) case 0x00: /* UI-frame */ if (ctrl->debug & PRI_DEBUG_Q931_DUMP) { - q931_dump(ctrl, ctrl->tei, (q931_h *) h->u.data, len - 3, 0); + q931_dump(ctrl, h->h.tei, (q931_h *) h->u.data, len - 3, 0); } res = q931_receive(ctrl, ctrl->tei, (q931_h *) h->u.data, len - 3); if (res != -1 && (res & Q931_RES_HAVEEVENT)) {