From c39fdd5cadbe9c6a12a57f2bce6e7953fdf82f66 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Fri, 16 Apr 2004 18:05:41 +0000 Subject: [PATCH] On EuroISDN don't send layer1/2 since some switches seem to be concerned. (bug #960) git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@89 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/q931.c b/q931.c index e1c6d9b..b258671 100755 --- a/q931.c +++ b/q931.c @@ -639,6 +639,10 @@ static int transmit_bearer_capability(struct pri *pri, q931_call *call, int msgt } ie->data[0] = 0x80 | tc; ie->data[1] = call->transmoderate | 0x80; + if ((tc & PRI_TRANS_CAP_DIGITAL)&&(pri->switchtype == PRI_SWITCH_EUROISDN_E1)) { + /* Apparently EuroISDN switches don't seem to like user layer 2/3 */ + return 4; + } if (call->transmoderate != TRANS_MODE_PACKET) { /* If you have an AT&T 4ESS, you don't send any more info */ if ((pri->switchtype != PRI_SWITCH_ATT4ESS) && (call->userl1 > -1)) {