Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h (14970 => 14971)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h 2009-09-24 22:27:19 UTC (rev 14970)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.h 2009-09-24 22:29:52 UTC (rev 14971)
@@ -434,6 +434,7 @@
char *tls_bind_params;
char *tls_cert_dir;
char *reg_domain;
+ char *sub_domain;
char *reg_db_domain;
char *user_agent;
char *record_template;
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14970 => 14971)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-09-24 22:27:19 UTC (rev 14970)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-09-24 22:29:52 UTC (rev 14971)
@@ -1893,6 +1893,8 @@
profile->local_network = switch_core_strdup(profile->pool, val);
} else if (!strcasecmp(var, "force-register-domain")) {
profile->reg_domain = switch_core_strdup(profile->pool, val);
+ } else if (!strcasecmp(var, "force-subscription-domain")) {
+ profile->sub_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")) {
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (14970 => 14971)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c 2009-09-24 22:27:19 UTC (rev 14970)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c 2009-09-24 22:29:52 UTC (rev 14971)
@@ -1552,8 +1552,8 @@
to_host = to->a_url->url_host;
}
- if (profile->reg_db_domain) {
- to_host = profile->reg_db_domain;
+ if (profile->sub_domain) {
+ to_host = profile->sub_domain;
}
if (sip && sip->sip_from) {