remove duplicate code
authorLuigi Rizzo <rizzo@icir.org>
Sat, 3 Jun 2006 20:40:54 +0000 (20:40 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 3 Jun 2006 20:40:54 +0000 (20:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31814 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 3031c79..81f3ccb 100644 (file)
@@ -7154,9 +7154,6 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
        /* Get the target domain */
        if ((a = strchr(uri, '@'))) {
                *a++ = '\0';
-               colon = strchr(a, ':'); /* Remove :port */
-               if (colon)
-                       *colon = '\0';
        } else {        /* No username part */
                a = uri;
                uri = "s";      /* Set extension to "s" */