]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Include macroexten while searching for a channel to pick up in case they are in a...
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:16:34 +0000 (13:16 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:16:34 +0000 (13:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67626 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_directed_pickup.c

index 9aba195ec6a9d42a4633ebb9daa0a6a56c277422..1d5318f56dd5610f1ce9376b1fc8b706461bfe40 100644 (file)
@@ -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);