From 07c41958768ed77c91443d6bfd63b9f7da69511b Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Fri, 9 Jan 2009 17:58:28 +0000 Subject: [PATCH] Add additional case where T200 expires greater than N200 times and we need to release and reacquire the TEI. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@656 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/q921.c b/q921.c index 27dcf14..b784a83 100644 --- a/q921.c +++ b/q921.c @@ -438,9 +438,14 @@ static void t200_expire(void *vpri) pri_message(pri, DBGHEAD "q921_state now is Q921_LINK_CONNECTION_RELEASED\n",DBGINFO); pri->q921_state = Q921_LINK_CONNECTION_RELEASED; pri->t200_timer = 0; - q921_dchannel_down(pri); - q921_start(pri, 1); - pri->schedev = 1; + if (pri->bri && pri->master) { + q921_tei_release_and_reacquire(pri->master); + return; + } else { + q921_dchannel_down(pri); + q921_start(pri, 1); + pri->schedev = 1; + } } } else if (pri->solicitfbit) { if (pri->debug & PRI_DEBUG_Q921_DUMP)