[commit] r13911 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: brian Date: Tue Jun 23 12:52:46 2009 New Revision: 13911 Log: mod_sofia: use the register proxy for the R-URI on register when register-proxy is set (MODSOFIA-12) Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Tue Jun 23 12:52:46 2009 @@ -1374,7 +1374,7 @@ params = switch_core_sprintf(gateway->pool, ";transport=%s", register_transport); } - gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s;transport=%s", proxy, register_transport); + gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s;transport=%s", register_proxy ? register_proxy : proxy, register_transport); gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>", from_user, from_domain, register_transport); sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;
participants (1)
-
FreeSWITCH SVN