FS-11504: [core] do not send reneg event if call is not answered

This commit is contained in:
Brian West 2018-11-05 15:03:14 -06:00 committed by Andrey Volk
parent c546154d67
commit e06ed5ad19
1 changed files with 2 additions and 1 deletions

View File

@ -2115,7 +2115,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
return SWITCH_STATUS_FALSE;
}
if ((flow = switch_core_session_media_flow(session, SWITCH_MEDIA_TYPE_AUDIO)) != SWITCH_MEDIA_FLOW_SENDRECV) {
if (switch_channel_test_flag(channel, CF_ANSWERED) &&
(flow = switch_core_session_media_flow(session, SWITCH_MEDIA_TYPE_AUDIO)) != SWITCH_MEDIA_FLOW_SENDRECV) {
switch_core_session_message_t msg = { 0 };
msg.message_id = SWITCH_MESSAGE_INDICATE_MEDIA_RENEG;