mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +00:00
remove duplicate code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -7154,9 +7154,6 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq)
|
|||||||
/* Get the target domain */
|
/* Get the target domain */
|
||||||
if ((a = strchr(uri, '@'))) {
|
if ((a = strchr(uri, '@'))) {
|
||||||
*a++ = '\0';
|
*a++ = '\0';
|
||||||
colon = strchr(a, ':'); /* Remove :port */
|
|
||||||
if (colon)
|
|
||||||
*colon = '\0';
|
|
||||||
} else { /* No username part */
|
} else { /* No username part */
|
||||||
a = uri;
|
a = uri;
|
||||||
uri = "s"; /* Set extension to "s" */
|
uri = "s"; /* Set extension to "s" */
|
||||||
|
Reference in New Issue
Block a user