From: Joshua Colp Date: Wed, 6 Jun 2007 13:16:34 +0000 (+0000) Subject: Include macroexten while searching for a channel to pick up in case they are in a... X-Git-Tag: 1.4.5~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4ebf8b6081ef64077dac2e2e069f85be21eb472;p=thirdparty%2Fasterisk.git Include macroexten while searching for a channel to pick up in case they are in a macro. (issue #9491 reported by jamesb63) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67626 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_directed_pickup.c b/apps/app_directed_pickup.c index 9aba195ec6..1d5318f56d 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);