Summary:ASTERISK-11171: Pickup of calls in queue not possible
Reporter:jbauer (jbauer)Labels:
Date Opened:2008-01-07 09:55:51.000-0600Date Closed:2008-01-08 12:39:07.000-0600
Versions:Frequency of
Environment:Attachments:( 0) 11700.diff
( 1) console_output_with_patch.txt
( 2) console_output.txt
( 3) pickup_context.txt
Description:777 => queue extension
201 => caller
758 => queue agent
779 => "pickuper"

Extension 201 calls queue 777, queue agent 758 is in ringing state but 779 cannot pickup the call:

app_directed_pickup.c:161 pickup_exec: No target channel found for 758
app_directed_pickup.c:161 pickup_exec: No target channel found for 777


queue application is called from context ext-queues, so in my understanding call should be pickuped with Pickup(${EXTEN:2}@ext-queues) or Pickup(777@ext-queues) but in both cases target channel cannot be found.

show channels shows this while SIP/758 is ringing:

asterisk*CLI> show channels
Channel              Location             State   Application(Data)
SIP/758-084aa238     (None)               Ringing AppQueue((Outgoing Line))
SIP/201-082d83e0     777 <at> from-internal:11 Up      Queue(777|t|||300)
2 active channels
1 active call
Comments:By: Joshua C. Colp (jcolp) 2008-01-07 10:00:16.000-0600

Directed pickup was made for the simple scenario of a device calling another device, it was never written to be used with queues... it would require some voodoo magic. Even then it would be as if the queue member picked up, is that what you want?

By: jbauer (jbauer) 2008-01-07 10:20:58.000-0600

I want queue members and non queues members to pickup calls from the queue if they are in the same call/pickup group. Is there any chance to get this working?

By: Joshua C. Colp (jcolp) 2008-01-07 10:22:05.000-0600

Directed pickup is different then call groups and pickup groups, it has no knowledge of them.

By: Caio Begotti (caio1982) 2008-01-07 10:34:49.000-0600

I'm not really interested on it, but just to add a possible use case that just came up: imagine you're on call with somebody from Evil Company and you want to file a complaint to the Ombudsman of this company.

It's not really correct or useful to use ChanSpy/ExtenSpy here, so a ombudsman would pickup call center calls for further analyzing and talk to the costumers out of the queue. Makes sense?

By: jbauer (jbauer) 2008-01-08 06:08:41.000-0600

Apart from call/pickup groups is there a possibilty to pickup calls in a queue with the pickup application or is this really impossible ? And if directed pickup was not written to be used with queues is there any other application that makes this possible? I know of many call center environments where this feature is requested so i really think that this would make sense.

By: Joshua C. Colp (jcolp) 2008-01-08 09:04:33.000-0600

Please try the attached patch.

By: jbauer (jbauer) 2008-01-08 10:30:33.000-0600

The patch works! Thank your very much! I get some warnings that one channel is already going to masquerade the other channel (see attached console output). I am going to test this more and give you more feedback.

By: Joshua C. Colp (jcolp) 2008-01-08 10:40:41.000-0600

It is because you keep falling through trying. You have one Pickup that works, and then you go to the next Pickup which also works. The only thing is that since no frames have yet passed the masquerade operation (which Pickup uses) did not happen yet from the first Pickup and the second one gets confused.

By: Digium Subversion (svnbot) 2008-01-08 12:33:12.000-0600

Repository: asterisk
Revision: 97093

U   branches/1.4/apps/app_queue.c

r97093 | file | 2008-01-08 12:33:12 -0600 (Tue, 08 Jan 2008) | 4 lines

Make app_queue calls work with directed pickup.
(closes issue ASTERISK-11171)
Reported by: jbauer



By: Digium Subversion (svnbot) 2008-01-08 12:39:07.000-0600

Repository: asterisk
Revision: 97103

_U  trunk/
U   trunk/apps/app_queue.c

r97103 | file | 2008-01-08 12:39:06 -0600 (Tue, 08 Jan 2008) | 12 lines

Merged revisions 97093 via svnmerge from

r97093 | file | 2008-01-08 14:36:40 -0400 (Tue, 08 Jan 2008) | 4 lines

Make app_queue calls work with directed pickup.
(closes issue ASTERISK-11171)
Reported by: jbauer