Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.663 diff -u -r1.663 chan_sip.c --- channels/chan_sip.c 19 Feb 2005 17:34:06 -0000 1.663 +++ channels/chan_sip.c 23 Feb 2005 21:31:43 -0000 @@ -8867,7 +8867,10 @@ if (host) { *host = '\0'; host++; - ext = tmp; + ext = strchr(host, '/'); + if (ext) { + *ext++ = '\0'; + } } else { ext = strchr(tmp, '/'); if (ext) {