From db8a82793b596b8a3e28a022b023740b6b394088 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 24 Sep 2009 22:27:19 +0000 Subject: [PATCH] enforce force-reg-db-domain on subscriptions too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14970 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 ++++ 1 file changed, 4 insertions(+) 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;