]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7211 #comment another exception #resolve
authorBrian West <brian@freeswitch.org>
Wed, 28 Jan 2015 20:16:12 +0000 (14:16 -0600)
committerBrian West <brian@freeswitch.org>
Wed, 28 Jan 2015 20:16:12 +0000 (14:16 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index a9793b9fe0d5dec857c0357b089d851172dd818b..098d7a5b3af07451a1520f74d4f83cf96d558845 100644 (file)
@@ -4518,7 +4518,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                                c++;
                                tech_pvt->e_dest = switch_core_session_strdup(nsession, c);
                        }
-               } else if (!mod && (host = strchr(dest, '%'))) {
+               } else if (!mod && !strchr(dest, '@') && (host = strchr(dest, '%'))) {
                        char buf[1024];
                        *host = '@';
                        tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);