From dd9ba5b8a547ea397be11c3d6696353e61fe709b Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 16 Jun 2004 17:16:37 +0000 Subject: [PATCH] Allow number complete to be forced on SETUP git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@115 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 8e06dac..e8c8bac 100755 --- a/q931.c +++ b/q931.c @@ -1237,7 +1237,9 @@ static FUNC_RECV(receive_sending_complete) static FUNC_SEND(transmit_sending_complete) { - if (!pri->overlapdial && ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) || (pri->switchtype == PRI_SWITCH_EUROISDN_T1))) { + if ((pri->overlapdial && call->complete) || /* Explicit */ + (!pri->overlapdial && ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) || + /* Implicit */ (pri->switchtype == PRI_SWITCH_EUROISDN_T1)))) { /* Include this single-byte IE */ return 1; } @@ -2060,6 +2062,7 @@ int q931_setup(struct pri *pri, q931_call *c, struct pri_sr *req) c->slotmap = -1; c->nonisdn = req->nonisdn; c->newcall = 0; + c->complete = req->numcomplete; if (req->exclusive) c->chanflags = FLAG_EXCLUSIVE; else