mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-10 05:14:20 +00:00
state tweaks
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@417 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
1 parent
1d3f79cddc
commit
7d476dd303
1 file changed
+2
@@ -332,6 +332,8 @@ static __inline__ void state_advance(zap_channel_t *zchan)
|
||||
{
|
||||
if (zchan->last_state > ZAP_CHANNEL_STATE_HANGUP) {
|
||||
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_HANGUP);
|
||||
} else {
|
||||
zap_set_state_locked(zchan, ZAP_CHANNEL_STATE_DOWN);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user