Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (15098 => 15099)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-10-06 12:03:52 UTC (rev 15098)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-10-06 15:30:30 UTC (rev 15099)
@@ -2739,6 +2739,7 @@
tech_pvt->transport = gateway_ptr->register_transport;
+
/*
* Handle params, strip them off the destination and add them to the
* invite contact.
@@ -2782,6 +2783,16 @@
tech_pvt->dest = switch_core_session_sprintf(nsession, "sip:%s", dest);
}
+ if ((host = switch_core_session_strdup(session, tech_pvt->dest))) {
+ char *p = strchr(host, '@');
+ if (p) {
+ host = p+1;
+ } else {
+ host = NULL;
+ dest_to = NULL;
+ }
+ }
+
if (params) {
tech_pvt->invite_contact = switch_core_session_sprintf(nsession, "%s;%s", gateway_ptr->register_contact, params);
} else {