]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force-register-domain
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 25 Oct 2007 20:25:32 +0000 (20:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 25 Oct 2007 20:25:32 +0000 (20:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6057 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/sofia.conf.xml
src/mod/endpoints/mod_sofia/mod_sofia.h
src/mod/endpoints/mod_sofia/sofia.c

index 409336fec2f0f385f2aa51d68e3dc278319f6dfe..6873c7d539efd60765227dbd04de60acde1624a7 100644 (file)
        <!-- <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>
index e9b198e55afacd3354f3bbd836eab70d03a01fd9..a1854f29bdb6efb527edf77c1332e27eb5e1b00a 100644 (file)
@@ -227,6 +227,7 @@ struct sofia_profile {
        char *timer_name;
        char *hold_music;
        char *bind_params;
+       char *reg_domain;
        int sip_port;
        char *codec_string;
        int running;
index 53558c9a844261dffc21b6bcd2eb5ecd0fc4ba7b..0356c8c0494e3accc138b9f94cb85794d97295c0 100644 (file)
@@ -873,7 +873,8 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                                }
                                                        }
                                                }
-
+                                       } 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")) {