提交 fc6f5e6b authored 作者: Anthony Minessale's avatar Anthony Minessale

add sofia_profile_name chanvar to sip channels

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5739 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5bea2ea0
......@@ -1868,6 +1868,8 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
}
}
switch_channel_set_variable(channel, "sofia_profile_name", profile->name);
if (!switch_strlen_zero(sip->sip_from->a_display)) {
char *tmp;
tmp = switch_core_session_strdup(session, sip->sip_from->a_display);
......
......@@ -559,6 +559,9 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
holdstr = switch_test_flag(tech_pvt, TFLAG_SIP_HOLD) ? "*" : "";
if (!switch_channel_get_variable(channel, "sofia_profile_name")) {
switch_channel_set_variable(channel, "sofia_profile_name", tech_pvt->profile->name);
}
SWITCH_STANDARD_STREAM(stream);
if ((hi = switch_channel_variable_first(channel, switch_core_session_get_pool(tech_pvt->session)))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论