diff options
-rw-r--r-- | apps/app_directed_pickup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 9aba195ec..1d5318f56 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -96,7 +96,7 @@ static int pickup_by_exten(struct ast_channel *chan, char *exten, char *context) struct ast_channel *target = NULL; while ((target = ast_channel_walk_locked(target))) { - if (!strcasecmp(target->exten, exten) && + if ((!strcasecmp(target->macroexten, exten) || !strcasecmp(target->exten, exten)) && !strcasecmp(target->dialcontext, context) && can_pickup(target)) { res = pickup_do(chan, target); |