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
This commit is contained in:
Mark Spencer 2004-04-16 18:05:41 +00:00
parent f2eb8afb7f
commit c39fdd5cad

4
q931.c
View File

@ -639,6 +639,10 @@ static int transmit_bearer_capability(struct pri *pri, q931_call *call, int msgt
} }
ie->data[0] = 0x80 | tc; ie->data[0] = 0x80 | tc;
ie->data[1] = call->transmoderate | 0x80; 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 (call->transmoderate != TRANS_MODE_PACKET) {
/* If you have an AT&T 4ESS, you don't send any more info */ /* If you have an AT&T 4ESS, you don't send any more info */
if ((pri->switchtype != PRI_SWITCH_ATT4ESS) && (call->userl1 > -1)) { if ((pri->switchtype != PRI_SWITCH_ATT4ESS) && (call->userl1 > -1)) {