From: Brian West Date: Mon, 20 Jul 2009 23:33:39 +0000 (+0000) Subject: this should have been reverted with rev 14263 X-Git-Tag: v1.0.4~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=406fbfdefa8e9da6ec37f1bb4d49c2c72f999b74;p=thirdparty%2Ffreeswitch.git this should have been reverted with rev 14263 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14303 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 387e051c50..e3b7afe23b 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2646,7 +2646,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session } if (!strchr(dest, '@')) { - tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s@%s", dest, gateway_ptr->from_domain); + tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s@%s", dest, sofia_glue_strip_proto(gateway_ptr->register_proxy)); } else { tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s", dest); }