enforce force-reg-db-domain on subscriptions too

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14970 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-09-24 22:27:19 +00:00
parent 32a9cf9141
commit db8a82793b
1 changed files with 4 additions and 0 deletions

View File

@ -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;