X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=apps%2Fapp_privacy.c;h=2337c4b9f15709bff9c550d8cc27d1c317670b41;hp=8cfbd88f318e3474826bb21d6cba813b0b832353;hb=adc9e59e0ba18a9f2c049854da0d7aef8696679a;hpb=fd0b9cc522a2c1b8c5e35cede42322b6ae72795b;ds=inline diff --git a/apps/app_privacy.c b/apps/app_privacy.c index 8cfbd88..2337c4b 100755 --- a/apps/app_privacy.c +++ b/apps/app_privacy.c @@ -69,13 +69,10 @@ privacy_exec (struct ast_channel *chan, void *data) struct ast_config *cfg; LOCAL_USER_ADD (u); - if (chan->cid.cid_num) - { + if (chan->cid.cid_num && !ast_strlen_zero(chan->cid.cid_num)) { if (option_verbose > 2) ast_verbose (VERBOSE_PREFIX_3 "CallerID Present: Skipping\n"); - } - else - { + } else { /*Answer the channel if it is not already*/ if (chan->_state != AST_STATE_UP) { res = ast_answer(chan);