Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (14969 => 14970)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c 2009-09-24 22:21:44 UTC (rev 14969)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c 2009-09-24 22:27:19 UTC (rev 14970)
@@ -1552,6 +1552,10 @@
to_host = to->a_url->url_host;
}
+ if (profile->reg_db_domain) {
+ to_host = profile->reg_db_domain;
+ }
+
if (sip && sip->sip_from) {
from_user = sip->sip_from->a_url->url_user;
from_host = sip->sip_from->a_url->url_host;