mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-25 10:54:45 +00:00
hangup pickup chans with no answer if they are the only ones left
This commit is contained in:
parent
353e35e1e5
commit
2249e1dfc6
@ -780,6 +780,16 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
|
|||||||
|
|
||||||
end:
|
end:
|
||||||
|
|
||||||
|
if (rval == 0 && pickups) {
|
||||||
|
for (i = 0; i < len; i++) {
|
||||||
|
if (originate_status[i].peer_channel && switch_channel_test_flag(originate_status[i].peer_channel, CF_PICKUP) &&
|
||||||
|
switch_channel_up(originate_status[i].peer_channel)) {
|
||||||
|
switch_channel_hangup(originate_status[i].peer_channel, SWITCH_CAUSE_NO_ANSWER);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (pindex > -1 && caller_channel && switch_channel_ready(caller_channel) && !switch_channel_media_ready(caller_channel) &&
|
if (pindex > -1 && caller_channel && switch_channel_ready(caller_channel) && !switch_channel_media_ready(caller_channel) &&
|
||||||
switch_channel_media_ready(originate_status[pindex].peer_channel)) {
|
switch_channel_media_ready(originate_status[pindex].peer_channel)) {
|
||||||
inherit_codec(caller_channel, originate_status[pindex].peer_session);
|
inherit_codec(caller_channel, originate_status[pindex].peer_session);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user