[asterisk-commits] phsultan: branch 1.6.0 r175090 - in /branches/1.6.0: ./ channels/chan_gtalk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 12 08:27:59 CST 2009


Author: phsultan
Date: Thu Feb 12 08:27:59 2009
New Revision: 175090

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=175090
Log:
Merged revisions 175089 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r175089 | phsultan | 2009-02-12 15:25:03 +0100 (Thu, 12 Feb 2009) | 6 lines

Issue a warning message if our candidate's IP is the loopback address.

(closes issue #13985)
Reported by: jcovert
Tested by: phsultan

........

Modified:
    branches/1.6.0/   (props changed)
    branches/1.6.0/channels/chan_gtalk.c

Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.0/channels/chan_gtalk.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/channels/chan_gtalk.c?view=diff&rev=175090&r1=175089&r2=175090
==============================================================================
--- branches/1.6.0/channels/chan_gtalk.c (original)
+++ branches/1.6.0/channels/chan_gtalk.c Thu Feb 12 08:27:59 2009
@@ -811,6 +811,9 @@
 
 	ast_rtp_get_us(p->rtp, &sin);
 	ast_find_ourip(&us, bindaddr);
+	if (!strcmp(ast_inet_ntoa(us), "127.0.0.1")) {
+		ast_log(LOG_WARNING, "Found a loopback IP on the system, check your network configuration or set the bindaddr attribute.");
+	}
 
 	/* Setup our gtalk candidates */
 	ast_copy_string(ours1->name, "rtp", sizeof(ours1->name));




More information about the asterisk-commits mailing list