From: Brian West Date: Wed, 30 Dec 2009 02:24:52 +0000 (+0000) Subject: XML-14 X-Git-Tag: v1.0.6~883 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d7aa83590159b591cb88965533ebd0e61335a32;p=thirdparty%2Ffreeswitch.git XML-14 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16090 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 a6e2a3783f..59b723e6b6 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -3139,6 +3139,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session tech_pvt->dest = switch_core_session_strdup(nsession, dest); } else if ((host = strchr(dest, '%'))) { char buf[1024]; + *dest++ = '\0'; *host = '@'; tech_pvt->e_dest = switch_core_session_strdup(nsession, dest); *host++ = '\0';