Add force-register-db-domain which works in conjunction with force-register-domain.

force-register-domain will only force auth to the domain specified.
force-register-db-domain will store it in the db with the forced domain.

Examples:

    <param name="force-register-db-domain" value="cluecon.com"/>
    <param name="force-register-domain" value="cluecon.com"/>

/b




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9487 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2008-09-08 22:38:37 +00:00
parent 1b048f00c3
commit f341d9c79a
3 changed files with 21 additions and 11 deletions
+4
View File
@@ -1205,6 +1205,8 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
}
} else if (!strcasecmp(var, "force-register-domain")) {
profile->reg_domain = switch_core_strdup(profile->pool, val);
} else if (!strcasecmp(var, "force-register-db-domain")) {
profile->reg_db_domain = switch_core_strdup(profile->pool, val);
} else if (!strcasecmp(var, "hold-music")) {
profile->hold_music = switch_core_strdup(profile->pool, val);
} else if (!strcasecmp(var, "session-timeout")) {
@@ -1543,6 +1545,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, "force-register-db-domain")) {
profile->reg_db_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")) {