Handle sendingcomplete properly

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@45 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2003-07-26 15:14:44 +00:00
parent 5f1aba027a
commit f8d3569b56

4
q931.c
View File

@ -1648,7 +1648,6 @@ int q931_setup(struct pri *pri, q931_call *c, int transmode, int channel, int ex
c->slotmap = -1;
c->ds1no = -1;
c->nonisdn = nonisdn;
c->complete = 0;
if (exclusive)
c->chanflags = FLAG_EXCLUSIVE;
@ -1777,6 +1776,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
c->useruserprotocoldisc = -1;
strcpy(c->useruserinfo, "");
c->ourcallstate = Q931_CALL_STATE_CALL_INITIATED;
c->complete = 0;
break;
case Q931_CONNECT:
c->ourcallstate = Q931_CALL_STATE_ACTIVE;
@ -1878,7 +1878,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
pri->ev.ring.cref = c->cr;
pri->ev.ring.call = c;
pri->ev.ring.layer1 = c->userl1;
pri->ev.ring.complete = 0;
pri->ev.ring.complete = c->complete;
if (c->transmoderate != TRANS_MODE_64_CIRCUIT) {
q931_release(pri, c, PRI_CAUSE_BEARERCAPABILITY_NOTIMPL);
break;