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);
|
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 */
|
/* Figure out if there is a native bridge requested through SIP x headers */
|
||||||
if (network_peer_uuid) {
|
if (network_peer_uuid) {
|
||||||
switch_core_session_t *network_peer = switch_core_session_locate(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;
|
return FTDM_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_channel_set_flag(channel, CF_AUDIO);
|
||||||
|
|
||||||
channel_caller_data->collected[0] = '\0';
|
channel_caller_data->collected[0] = '\0';
|
||||||
|
|
||||||
if (zstr(channel_caller_data->cid_name)) {
|
if (zstr(channel_caller_data->cid_name)) {
|
||||||
|
@ -367,6 +367,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_channel_set_flag(channel, CF_AUDIO);
|
||||||
|
|
||||||
span = ftdm_channel_get_span(chan);
|
span = ftdm_channel_get_span(chan);
|
||||||
|
|
||||||
tech_pvt = switch_core_session_alloc(*new_session, sizeof *tech_pvt);
|
tech_pvt = switch_core_session_alloc(*new_session, sizeof *tech_pvt);
|
||||||
|
Loading…
Reference in New Issue
Block a user