From: Joshua Colp Date: Fri, 20 Jul 2007 16:51:09 +0000 (+0000) Subject: It is impossible for the externhost variable to not exist, it is however possible... X-Git-Tag: 1.6.0-beta1~3^2~1996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66cae9269b59e13a6f42c486be00441b5ac72161;p=thirdparty%2Fasterisk.git It is impossible for the externhost variable to not exist, it is however possible for it to be empty. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76056 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4aed9fa943..5214973b57 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11208,7 +11208,7 @@ static int sip_show_settings(int fd, int argc, char *argv[]) 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";