summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-20 16:51:09 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-20 16:51:09 +0000
commit66cae9269b59e13a6f42c486be00441b5ac72161 (patch)
tree5f2bd73249d6e8a779ec3271e26337879cf2fd2d /channels
parent2e40a9c083b20fa40727444afbb05137dc0f42b9 (diff)
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
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4aed9fa94..5214973b5 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";