Don't expect CONNECT_ACK after we send CONNECT if we're the network and they're the user.

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@70 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Martin Pycko 2003-12-09 15:55:48 +00:00
parent a36186ce49
commit 0961ecb4b0

3
q931.c
View File

@ -1666,7 +1666,8 @@ 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 = pri_schedule_event(pri, T_313, pri_connect_timeout, c); if (pri->localtype == PRI_CPE)
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);
} }