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
This commit is contained in:
parent
40ae2a030a
commit
07c4195876
5
q921.c
5
q921.c
@ -438,10 +438,15 @@ static void t200_expire(void *vpri)
|
|||||||
pri_message(pri, DBGHEAD "q921_state now is Q921_LINK_CONNECTION_RELEASED\n",DBGINFO);
|
pri_message(pri, DBGHEAD "q921_state now is Q921_LINK_CONNECTION_RELEASED\n",DBGINFO);
|
||||||
pri->q921_state = Q921_LINK_CONNECTION_RELEASED;
|
pri->q921_state = Q921_LINK_CONNECTION_RELEASED;
|
||||||
pri->t200_timer = 0;
|
pri->t200_timer = 0;
|
||||||
|
if (pri->bri && pri->master) {
|
||||||
|
q921_tei_release_and_reacquire(pri->master);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
q921_dchannel_down(pri);
|
q921_dchannel_down(pri);
|
||||||
q921_start(pri, 1);
|
q921_start(pri, 1);
|
||||||
pri->schedev = 1;
|
pri->schedev = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (pri->solicitfbit) {
|
} else if (pri->solicitfbit) {
|
||||||
if (pri->debug & PRI_DEBUG_Q921_DUMP)
|
if (pri->debug & PRI_DEBUG_Q921_DUMP)
|
||||||
pri_message(pri, "-- Retrying poll with f-bit\n");
|
pri_message(pri, "-- Retrying poll with f-bit\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user