]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
An empty string is an empty callerid ... so zap it. This closes issue #10502, which...
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 24 Aug 2007 22:59:52 +0000 (22:59 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 24 Aug 2007 22:59:52 +0000 (22:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80878 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_zapateller.c

index 06941b16a51eae015f3d1dc500ae835ae3544894..5a209e3152b2ce45bc6823305d534e64ebfeb995 100644 (file)
@@ -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;
        }