提交 42d2c4ad authored 作者: Michael Jerris's avatar Michael Jerris

revert, give up for the night

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10130 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 db777415
......@@ -2116,14 +2116,6 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
sofia_glue_attach_private(nsession, profile, tech_pvt, dest);
if (!(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
if (tech_pvt->bcng_pt) {
tech_pvt->cng_pt = tech_pvt->bcng_pt;
} else if (!tech_pvt->cng_pt) {
tech_pvt->cng_pt = profile->cng_pt;
}
}
if (tech_pvt->local_url) {
switch_channel_set_variable(nchannel, "sip_local_url", tech_pvt->local_url);
if (profile->pres_type) {
......
......@@ -413,6 +413,14 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
tech_pvt->dtmf_type = profile->dtmf_type;
if (!(tech_pvt->profile->pflags & PFLAG_SUPPRESS_CNG)) {
if (tech_pvt->bcng_pt) {
tech_pvt->cng_pt = tech_pvt->bcng_pt;
} else if (!tech_pvt->cng_pt) {
tech_pvt->cng_pt = profile->cng_pt;
}
}
tech_pvt->session = session;
tech_pvt->channel = switch_core_session_get_channel(session);
switch_core_session_set_private(session, tech_pvt);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论