forked from Mirrors/freeswitch
FS-10293: Fix regression from FS-9638 causing 1 way audio on FreeTDM Calls
This commit is contained in:
parent
5d4ac1cd3b
commit
dabab9f25a
|
@ -1718,6 +1718,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
|||
|
||||
our_chan = switch_core_session_get_channel(*new_session);
|
||||
|
||||
switch_channel_set_flag(our_chan, CF_AUDIO);
|
||||
|
||||
/* Figure out if there is a native bridge requested through SIP x headers */
|
||||
if (network_peer_uuid) {
|
||||
switch_core_session_t *network_peer = switch_core_session_locate(network_peer_uuid);
|
||||
|
@ -1847,6 +1849,8 @@ ftdm_status_t ftdm_channel_from_event(ftdm_sigmsg_t *sigmsg, switch_core_session
|
|||
return FTDM_FAIL;
|
||||
}
|
||||
|
||||
switch_channel_set_flag(channel, CF_AUDIO);
|
||||
|
||||
channel_caller_data->collected[0] = '\0';
|
||||
|
||||
if (zstr(channel_caller_data->cid_name)) {
|
||||
|
|
|
@ -366,6 +366,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
|||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't open span or channel.\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
switch_channel_set_flag(channel, CF_AUDIO);
|
||||
|
||||
span = ftdm_channel_get_span(chan);
|
||||
|
||||
|
|
Loading…
Reference in New Issue