mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
handle failure on chan open on new setup msg
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@418 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
7d476dd303
commit
e1f3a14ad8
@ -238,8 +238,12 @@ static L3INT zap_isdn_931_34(void *pvt, L2UCHAR *msg, L2INT mlen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (fail) {
|
if (fail) {
|
||||||
zap_log(ZAP_LOG_CRIT, "FIX ME! %s\n", zap_channel_state2str(zchan->state));
|
if (zchan) {
|
||||||
// add me
|
zap_log(ZAP_LOG_CRIT, "FIX ME! %s\n", zap_channel_state2str(zchan->state));
|
||||||
|
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
|
||||||
|
} else {
|
||||||
|
zap_log(ZAP_LOG_CRIT, "Failed to open channel for new setup message\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user