mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
If devicestate is passed a port number strip it out.
(closes issue #10930) Reported by: ibc git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -15630,6 +15630,9 @@ static int sip_devicestate(void *data)
|
||||
}
|
||||
ASTOBJ_UNREF(p,sip_destroy_peer);
|
||||
} else {
|
||||
char *port = strchr(host, ':');
|
||||
if (port)
|
||||
*port = '\0';
|
||||
hp = ast_gethostbyname(host, &ahp);
|
||||
if (hp)
|
||||
res = AST_DEVICE_UNKNOWN;
|
||||
|
Reference in New Issue
Block a user