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

FreeSWITCH SVN anthm at freeswitch.org
Wed Feb 18 06:13:02 PST 2009


Author: anthm
Date: Wed Feb 18 08:13:02 2009
New Revision: 12138

Log:
gateways will inherit the context from its parent unless manually provided

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

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	Wed Feb 18 08:13:02 2009
@@ -1034,11 +1034,15 @@
 				*caller_id_in_from = "false",
 				*extension = NULL,
 				*proxy = NULL,
-				*context = "default",
+				*context = profile->context,
 				*expire_seconds = "3600",
 				*retry_seconds = "30",
 				*from_user = "", *from_domain = "", *register_proxy = NULL, *contact_params = NULL, *params = NULL, *register_transport = NULL;
 			
+			if (!context) {
+				context = "default";
+			}
+
 			uint32_t ping_freq = 0;
 			switch_uuid_t uuid;
 			



More information about the Freeswitch-svn mailing list