From cd8d4d68123e2aa1e9fbe28ac8da33fd2bd3c495 Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Mon, 9 Apr 2012 13:30:51 -0500 Subject: [PATCH] RESOLVE FS-4081 --- src/mod/endpoints/mod_sofia/sofia.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 6a6e8294ed..212455d3a8 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2630,9 +2630,8 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", proxy); } - gateway->register_from = switch_core_sprintf(gateway->pool, "", - from_user, !zstr(from_domain) ? from_domain : proxy, register_transport); - + gateway->register_from = switch_core_sprintf(gateway->pool, "", + from_user, !zstr(from_domain) ? from_domain : proxy); if (ping_freq) { if (ping_freq >= 5) { @@ -2640,10 +2639,8 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) gateway->ping_max = ping_max; gateway->ping_min = ping_min; gateway->ping = switch_epoch_time_now(NULL) + ping_freq; - gateway->options_to_uri = switch_core_sprintf(gateway->pool, "", - !zstr(from_domain) ? from_domain : proxy, register_transport); - //gateway->options_from_uri = switch_core_sprintf(gateway->pool, "", - // profile->extrtpip ? profile->extrtpip : profile->sipip, register_transport); + gateway->options_to_uri = switch_core_sprintf(gateway->pool, "", + !zstr(from_domain) ? from_domain : proxy); gateway->options_from_uri = gateway->options_to_uri; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: invalid ping!\n");