make hangup or end of bridge trigger unhold action for held legs

This commit is contained in:
Anthony Minessale committed 2014-02-21 13:26:04 -06:00
1 parent 05214931fb
commit ec50c05df6
2 files changed
+18 -11

No files matched your search

+4
View File
@@ -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;
}