From 33aafe9b5a9a70d66513f91b6efea6e9fa02737b Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 2 Nov 2010 19:11:01 +0000 Subject: [PATCH] B410P gets incoming call packets on ISDN but Asterisk doesn't see the call. The Cisco 1751 with VIC 2-BRI ports sends out SETUP messages on the broadcast TEI as if the BRI were PTMP even though it is configured for PTP mode. Make PTP mode also accept frames on SAPI=0, TEI=127 (Broadcast). (closes issue #18232) Reported by: lelio Patches: issue18232_v1.4.patch uploaded by rmudgett (license 664) Tested by: lelio git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@2088 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/q921.c b/q921.c index 8dad1ca..406b9d0 100644 --- a/q921.c +++ b/q921.c @@ -2638,7 +2638,8 @@ static pri_event *__q921_receive(struct pri *ctrl, q921_h *h, int len) ev = q921_handle_unmatched_frame(ctrl, h, len); } } else if (PTP_MODE(ctrl) - && h->h.sapi == ctrl->link.sapi && h->h.tei == ctrl->link.tei) { + && h->h.sapi == ctrl->link.sapi + && (h->h.tei == ctrl->link.tei || h->h.tei == Q921_TEI_GROUP)) { ev = __q921_receive_qualified(&ctrl->link, h, len); } else { ev = NULL;