[Freeswitch-trunk] [commit] r13914 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
brian at freeswitch.org
Tue Jun 23 12:38:15 PDT 2009
Author: brian
Date: Tue Jun 23 14:38:14 2009
New Revision: 13914
Log:
addition register_proxy issues
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 14:38:14 2009
@@ -1395,11 +1395,11 @@
if (!strncasecmp(proxy, "sip:", 4)) {
- gateway->register_proxy = switch_core_strdup(gateway->pool, proxy);
- gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, proxy + 4);
+ gateway->register_proxy = switch_core_strdup(gateway->pool, register_proxy ? register_proxy : proxy);
+ gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy + 4 : proxy + 4);
} else {
- gateway->register_proxy = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
- gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, proxy);
+ gateway->register_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy ? register_proxy : proxy);
+ gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy : proxy);
}
gateway->expires_str = switch_core_strdup(gateway->pool, expire_seconds);
More information about the Freeswitch-trunk
mailing list