From 4743ebd26f34b963ffd7914ac5c551dacdc5f589 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 6 Apr 2004 14:50:19 +0000 Subject: [PATCH] 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 --- q931.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/q931.c b/q931.c index b94f21c..e1c6d9b 100755 --- a/q931.c +++ b/q931.c @@ -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)