From: Anthony Minessale Date: Thu, 24 Sep 2009 22:27:19 +0000 (+0000) Subject: enforce force-reg-db-domain on subscriptions too X-Git-Tag: v1.0.6~1812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db8a82793b596b8a3e28a022b023740b6b394088;p=thirdparty%2Ffreeswitch.git enforce force-reg-db-domain on subscriptions too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14970 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 0d41f044ec..30dff37caa 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1552,6 +1552,10 @@ void sofia_presence_handle_sip_i_subscribe(int status, 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;