[Freeswitch-svn] [commit] r5739 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Fri Sep 21 15:20:16 EDT 2007


Author: anthm
Date: Fri Sep 21 15:20:15 2007
New Revision: 5739

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c

Log:
add sofia_profile_name chanvar to sip channels

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Fri Sep 21 15:20:15 2007
@@ -1868,6 +1868,8 @@
 			}
 		}
 
+		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);

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Fri Sep 21 15:20:15 2007
@@ -559,6 +559,9 @@
 
 	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)))) {



More information about the Freeswitch-svn mailing list