From 48fc2198651f53c2834f836781c6cc032e47617e Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 4 Mar 2009 20:31:20 +0000 Subject: [PATCH] Make sure we only have 4 octects on unrestricted 64k data calls. (closes issue #14507) Reported by: jsmith Patches: 64k-data.patch uploaded by jsmith (license 15) Tested by: jsmith (closes issue #13118) Reported by: radpeter git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@701 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/q931.c b/q931.c index 6f81ce0..59c5440 100644 --- a/q931.c +++ b/q931.c @@ -825,6 +825,12 @@ static FUNC_SEND(transmit_bearer_capability) /* Apparently EuroISDN switches don't seem to like user layer 2/3 */ return 4; } + + if ((tc & PRI_TRANS_CAP_DIGITAL) && (call->transmoderate == TRANS_MODE_64_CIRCUIT)) { + /* Unrestricted digital 64k data calls don't use 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)) {