diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 773a27c6c965f98a4c2c0166cca7386ffce25917..deca8f3de5fa8e0a05c4d0feeb7067761d0270c0 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -198,8 +198,8 @@ static int pickup_by_mark(struct ast_channel *chan, const char *mark) int find_by_mark(struct ast_channel *c) { const char *tmp; return (tmp = pbx_builtin_getvar_helper(c, PICKUPMARK)) && - !strcasecmp(tmp, mark) && - can_pickup(c); + !strcasecmp(tmp, mark) && + can_pickup(c); } struct ast_channel *target = ast_channel_search_locked(find_by_mark);