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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 11:51:09 CDT 2007


Author: file
Date: Fri Jul 20 11:51:09 2007
New Revision: 76056

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76056
Log:
It is impossible for the externhost variable to not exist, it is however possible for it to be empty.

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=76056&r1=76055&r2=76056
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul 20 11:51:09 2007
@@ -11208,7 +11208,7 @@
 		msg = "Disabled, no localnet list";
 	else if (externip.sin_addr.s_addr == 0)
 		msg = "Disabled, externip is 0.0.0.0";
-	else if (externhost)
+	else if (!ast_strlen_zero(externhost))
 		msg = "Enabled using externhost";
 	else
 		msg = "Enabled using externip";




More information about the asterisk-commits mailing list