Make sure retranstimer is set to 0
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@135 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
1
q931.c
1
q931.c
@@ -2112,6 +2112,7 @@ int q931_connect(struct pri *pri, q931_call *c, int channel, int nonisdn)
|
|||||||
/* Setup timer */
|
/* Setup timer */
|
||||||
if (c->retranstimer)
|
if (c->retranstimer)
|
||||||
pri_schedule_del(pri, c->retranstimer);
|
pri_schedule_del(pri, c->retranstimer);
|
||||||
|
c->retranstimer = 0;
|
||||||
if ((pri->localtype == PRI_CPE) && (!pri->subchannel))
|
if ((pri->localtype == PRI_CPE) && (!pri->subchannel))
|
||||||
c->retranstimer = pri_schedule_event(pri, T_313, pri_connect_timeout, c);
|
c->retranstimer = pri_schedule_event(pri, T_313, pri_connect_timeout, c);
|
||||||
return send_message(pri, c, Q931_CONNECT, connect_ies);
|
return send_message(pri, c, Q931_CONNECT, connect_ies);
|
||||||
|
|||||||
Reference in New Issue
Block a user