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

Freeswitch SVN anthm at freeswitch.org
Sat Jun 7 11:34:34 EDT 2008


Author: anthm
Date: Sat Jun  7 11:34:33 2008
New Revision: 8786

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

Log:
add sip_outgoing_call_id variable

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	Sat Jun  7 11:34:33 2008
@@ -930,6 +930,7 @@
 	const char *val;
 	const char *rep;
 	char *sticky = NULL;
+	const char *call_id = NULL;
 
 	rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER);
 
@@ -1156,6 +1157,8 @@
 		sofia_glue_tech_patch_sdp(tech_pvt);
 	}
 
+	call_id = switch_channel_get_variable(channel, "sip_outgoing_call_id");
+
 	nua_invite(tech_pvt->nh,
 			   NUTAG_AUTOANSWER(0),
 			   NUTAG_SESSION_TIMER(session_timeout),
@@ -1164,6 +1167,7 @@
 			   TAG_IF(!switch_strlen_zero(extra_headers), SIPTAG_HEADER_STR(extra_headers)),
 			   TAG_IF(!switch_strlen_zero(max_forwards), SIPTAG_MAX_FORWARDS_STR(max_forwards)),
 			   TAG_IF(sticky, NUTAG_PROXY(tech_pvt->record_route)),
+			   TAG_IF(call_id, SIPTAG_CALL_ID_STR(call_id)),
 			   SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
 			   SOATAG_REUSE_REJECTED(1),
 			   SOATAG_ORDERED_USER(1),



More information about the Freeswitch-svn mailing list