[Freeswitch-svn] [commit] r6057 - in freeswitch/trunk: conf src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Thu Oct 25 16:25:32 EDT 2007


Author: anthm
Date: Thu Oct 25 16:25:32 2007
New Revision: 6057

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

Log:
force-register-domain

Modified: freeswitch/trunk/conf/sofia.conf.xml
==============================================================================
--- freeswitch/trunk/conf/sofia.conf.xml	(original)
+++ freeswitch/trunk/conf/sofia.conf.xml	Thu Oct 25 16:25:32 2007
@@ -101,6 +101,8 @@
 	<!-- <param name="vad" value="out"/> -->
 	<!-- <param name="vad" value="both"/> -->
 	<!--<param name="alias" value="sip:10.0.1.251:5555"/>-->
+	<!--all inbound reg will look in this domain for the users -->
+	<!--<param name="force-register-domain" value="cluecon.com"/>-->
       </settings>
     </profile>
   </profiles>

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h	Thu Oct 25 16:25:32 2007
@@ -227,6 +227,7 @@
 	char *timer_name;
 	char *hold_music;
 	char *bind_params;
+	char *reg_domain;
 	int sip_port;
 	char *codec_string;
 	int running;

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	Thu Oct 25 16:25:32 2007
@@ -873,7 +873,8 @@
 								}
 							}
 						}
-
+					} else if (!strcasecmp(var, "force-register-domain")) {
+						profile->reg_domain = switch_core_strdup(profile->pool, val);
 					} else if (!strcasecmp(var, "bind-params")) {
 						profile->bind_params = switch_core_strdup(profile->pool, val);
 					} else if (!strcasecmp(var, "sip-domain")) {



More information about the Freeswitch-svn mailing list