summaryrefslogtreecommitdiff
path: root/apps/app_privacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_privacy.c')
-rwxr-xr-xapps/app_privacy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_privacy.c b/apps/app_privacy.c
index cb2bb01f7..78d9d4acf 100755
--- a/apps/app_privacy.c
+++ b/apps/app_privacy.c
@@ -144,9 +144,8 @@ privacy_exec (struct ast_channel *chan, void *data)
if (option_verbose > 2)
ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID to %s\n",phone);
} else {
- /*Send the call to n+101 priority, where n is the current priority*/
- if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
- chan->priority+=100;
+ /* Send the call to n+101 priority, where n is the current priority */
+ ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
}
if (cfg)
ast_config_destroy(cfg);