Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (14302 => 14303)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-07-20 16:37:40 UTC (rev 14302)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-07-20 23:33:39 UTC (rev 14303)
@@ -2646,7 +2646,7 @@
}
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);
}