[asterisk-commits] phsultan: trunk r175089 - /trunk/channels/chan_gtalk.c

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


Author: phsultan
Date: Thu Feb 12 08:25:03 2009
New Revision: 175089

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=175089
Log:
Issue a warning message if our candidate's IP is the loopback address.

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

Modified:
    trunk/channels/chan_gtalk.c

Modified: trunk/channels/chan_gtalk.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_gtalk.c?view=diff&rev=175089&r1=175088&r2=175089
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Thu Feb 12 08:25:03 2009
@@ -812,6 +812,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