FS-10293: Fix regression from FS-9638 causing 1 way audio on FreeTDM Calls

上级 5d4ac1cd
......@@ -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)) {
......
......@@ -367,6 +367,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
goto fail;
}
switch_channel_set_flag(channel, CF_AUDIO);
span = ftdm_channel_get_span(chan);
tech_pvt = switch_core_session_alloc(*new_session, sizeof *tech_pvt);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论