aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authordhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-24 22:59:52 +0000
committerdhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-24 22:59:52 +0000
commite307a3f7f43562018f957e3442c1b19cfd4a1aed (patch)
treeb57297a0f5ec12dc70f98a9de7347160ec980cf2 /apps
parentc1158ac29ea5024dc5dfc707029a37bc5f6e6949 (diff)
An empty string is an empty callerid ... so zap it. This closes issue #10502, which was pointed out by dswartz. Thank you, and may the swartz be with you
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80878 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_zapateller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_zapateller.c b/apps/app_zapateller.c
index 06941b16a..5a209e315 100644
--- a/apps/app_zapateller.c
+++ b/apps/app_zapateller.c
@@ -85,7 +85,7 @@ static int zapateller_exec(struct ast_channel *chan, void *data)
res = ast_safe_sleep(chan, 500);
}
}
- if (chan->cid.cid_num && nocallerid) {
+ if (!ast_strlen_zero(chan->cid.cid_num) && nocallerid) {
ast_module_user_remove(u);
return res;
}