diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-20 15:51:37 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-20 15:51:37 +0000 |
commit | 33061c4842f1f5beaa5ef9da703db6530f44e633 (patch) | |
tree | 3ab467d8a5c6bd16aaf9ade4f6069d3ea3631774 /apps/app_directed_pickup.c | |
parent | 363b421075e8bd3758372cf02a0756bd5f36c9ae (diff) |
Use a separate variable in the channel structure to store the context that the channel was dialed from. (issue #8382 reported by jiddings)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47850 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_directed_pickup.c')
-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 78fa9feaf..9aba195ec 100644 --- a/apps/app_directed_pickup.c +++ b/apps/app_directed_pickup.c @@ -97,7 +97,7 @@ static int pickup_by_exten(struct ast_channel *chan, char *exten, char *context) while ((target = ast_channel_walk_locked(target))) { if (!strcasecmp(target->exten, exten) && - !strcasecmp(target->context, context) && + !strcasecmp(target->dialcontext, context) && can_pickup(target)) { res = pickup_do(chan, target); ast_channel_unlock(target); |