It is impossible for the externhost variable to not exist, it is however possible...
authorJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 16:51:09 +0000 (16:51 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 16:51:09 +0000 (16:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76056 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4aed9fa..5214973 100644 (file)
@@ -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";