mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 03:57:14 +00:00
make hangup or end of bridge trigger unhold action for held legs
This commit is contained in:
1 parent
05214931fb
commit
ec50c05df6
2 files changed
+18
-11
No files matched your search
@@ -3160,6 +3160,10 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_hangup(switch_chan
|
||||
}
|
||||
switch_mutex_unlock(channel->state_mutex);
|
||||
|
||||
if (switch_channel_test_flag(channel, CF_LEG_HOLDING)) {
|
||||
switch_channel_mark_hold(channel, SWITCH_FALSE);
|
||||
}
|
||||
|
||||
if (!ok) {
|
||||
return channel->state;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user