aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 14:43:37 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 14:43:37 +0000
commit6cb2e59df4ae4e2415240cd48fc5ba190c138fd7 (patch)
treebf8a093ddb0161a2f30ea65956e927bc256bf9c4 /channels
parent78e2eb5b9b4ce9c1bde6b84c88fc95f98716efd0 (diff)
Merged revisions 85280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85280 | file | 2007-10-10 11:42:00 -0300 (Wed, 10 Oct 2007) | 4 lines If devicestate is passed a port number strip it out. (closes issue #10930) Reported by: ibc ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85281 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 040f00898..7cfb42a2a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -16865,6 +16865,9 @@ static int sip_devicestate(void *data)
}
unref_peer(p);
} else {
+ char *port = strchr(host, ':');
+ if (port)
+ *port = '\0';
hp = ast_gethostbyname(host, &ahp);
if (hp)
res = AST_DEVICE_UNKNOWN;