Generate release complete message back to Asterisk when T308 expires twice.

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@85 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2004-04-06 14:50:19 +00:00
parent 949afd2385
commit 4743ebd26f

9
q931.c
View File

@ -1644,6 +1644,15 @@ static void pri_release_finaltimeout(void *data)
if (pri->debug & PRI_DEBUG_Q931_STATE)
pri_message("Final time-out looking for release complete\n");
c->t308_timedout++;
c->ourcallstate = Q931_CALL_STATE_NULL;
c->peercallstate = Q931_CALL_STATE_NULL;
pri->schedev = 1;
pri->ev.e = PRI_EVENT_HANGUP_ACK;
pri->ev.hangup.channel = c->channelno;
pri->ev.hangup.cref = c->cr;
pri->ev.hangup.cause = c->cause;
pri->ev.hangup.call = c;
q931_hangup(pri, c, c->cause);
}
static void pri_disconnect_timeout(void *data)