From 66cae9269b59e13a6f42c486be00441b5ac72161 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Fri, 20 Jul 2007 16:51:09 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.47.2