diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3031c7928f..81f3ccb657 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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" */