[asterisk-commits] file: trunk r85281 - in /trunk: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 10 09:43:37 CDT 2007


Author: file
Date: Wed Oct 10 09:43:37 2007
New Revision: 85281

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85281
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=85281&r1=85280&r2=85281
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Oct 10 09:43:37 2007
@@ -16865,6 +16865,9 @@
 		}
 		unref_peer(p);
 	} 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