mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user