git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5739
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
}
+ 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);
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)))) {