Revision
14244
Author
anthm
Date
2009-07-14 10:00:26 -0500 (Tue, 14 Jul 2009)

Log Message

MODSOFIA-16

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (14243 => 14244)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2009-07-14 14:40:44 UTC (rev 14243)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	2009-07-14 15:00:26 UTC (rev 14244)
@@ -2658,6 +2658,10 @@
 		}
 		
 		gateway_ptr->ob_calls++;
+		
+		if (!switch_strlen_zero(gateway_ptr->from_domain)) {
+			switch_channel_set_variable(nchannel, "sip_invite_domain", gateway_ptr->from_domain);
+		}
 
 		if (gateway_ptr->ob_vars) {
 			switch_event_header_t *hp;

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h (14243 => 14244)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h	2009-07-14 14:40:44 UTC (rev 14243)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h	2009-07-14 15:00:26 UTC (rev 14244)
@@ -356,6 +356,7 @@
 	char *register_context;
 	char *expires_str;
 	char *register_url;
+	char *from_domain;
 	sofia_transport_t register_transport;
 	uint32_t freq;
 	time_t expires;