auto-answer A leg when B leg is already answered in all conditions not just when A leg is both unanswered and has no media
This commit is contained in:
parent
b97e0cef29
commit
ff3c0139fc
|
@ -1304,11 +1304,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
|
||||||
switch_core_session_rwunlock(peer_session);
|
switch_core_session_rwunlock(peer_session);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (switch_channel_test_flag(peer_channel, CF_ANSWERED) && !switch_channel_test_flag(caller_channel, CF_ANSWERED)) {
|
if (switch_channel_test_flag(peer_channel, CF_ANSWERED) && !switch_channel_test_flag(caller_channel, CF_ANSWERED)) {
|
||||||
switch_channel_answer(caller_channel);
|
switch_channel_answer(caller_channel);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
switch_channel_wait_for_flag(peer_channel, CF_BROADCAST, SWITCH_FALSE, 10000, caller_channel);
|
switch_channel_wait_for_flag(peer_channel, CF_BROADCAST, SWITCH_FALSE, 10000, caller_channel);
|
||||||
switch_ivr_parse_all_events(peer_session);
|
switch_ivr_parse_all_events(peer_session);
|
||||||
|
|
Loading…
Reference in New Issue