[asterisk-commits] file: branch 1.4 r85280 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 10 09:42:01 CDT 2007
Author: file
Date: Wed Oct 10 09:42:00 2007
New Revision: 85280
URL: http://svn.digium.com/view/asterisk?view=rev&rev=85280
Log:
If devicestate is passed a port number strip it out.
(closes issue #10930)
Reported by: ibc
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=85280&r1=85279&r2=85280
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Wed Oct 10 09:42:00 2007
@@ -15630,6 +15630,9 @@
}
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;
More information about the asterisk-commits
mailing list