add sofia_profile_name chanvar to sip channels

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5739 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-09-21 19:20:15 +00:00
parent 5bea2ea06c
commit fc6f5e6b14
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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)))) {