[asterisk-users] Howto pickup call from queue?
Jack
jack.ssh at gmail.com
Wed Sep 19 04:51:42 CDT 2007
Hi all,
how can I pickup a call from a queue? Which context parameter do I
have to specify? The context that calls the queues application is
ext-queues. This is what I tried so long (777 is the extension of the
queue I want to pickup from):
exten => _**ZXX,1,Noop(Attempt to Pickup ${EXTEN:2} by ${CALLERID(num)})
exten => _**ZXX,n,Pickup(${EXTEN:2}@from-did-direct)
exten => _**ZXX,n,Pickup(${EXTEN:2}@from-internal)
exten => _**ZXX,n,Pickup(${EXTEN:2})
exten => _**ZXX,n,Pickup(${EXTEN:2}@ext-queues)
exten => _**ZXX,n,Pickup(${EXTEN:2}@PICKUPMARK)
exten => _**ZXX,n,Pickup(777 at from-did-direct)
exten => _**ZXX,n,Pickup(777 at from-internal)
exten => _**ZXX,n,Pickup(777)
exten => _**ZXX,n,Pickup(777 at ext-queues)
exten => _**ZXX,n,Pickup(777 at PICKUPMARK)
This is the CLI output when trying to pickup a call (call from 779 to
queue, agent SIP/758 is ringing):
-- SIP/758-082d3418 is ringing
Extension Changed 779 new state InUse for Notify User 773
-- Executing [**758 at from-internal:1] NoOp("SIP/779-09077e38",
"Attempt to Pickup 758 by 779") in new stack
Extension Changed 779 new state InUse for Notify User 776
-- Executing [**758 at from-internal:2] Pickup("SIP/779-09077e38",
"758") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
Extension Changed 779 new state InUse for Notify User 758
Extension Changed 779 new state InUse for Notify User 774
-- Executing [**758 at from-internal:4] Pickup("SIP/779-09077e38",
"758 at from-did-direct") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
Extension Changed 779 new state InUse for Notify User 759
-- Executing [**758 at from-internal:5] Pickup("SIP/779-09077e38",
"758 at from-internal") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
Extension Changed 779 new state InUse for Notify User 745
-- Executing [**758 at from-internal:6] Pickup("SIP/779-09077e38",
"758") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
-- Executing [**758 at from-internal:7] Pickup("SIP/779-09077e38",
"758 at ext-queues") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
-- Executing [**758 at from-internal:8] Pickup("SIP/779-09077e38",
"758 at PICKUPMARK") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
-- Executing [**758 at from-internal:9] Pickup("SIP/779-09077e38",
"777 at from-did-direct") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
-- Executing [**758 at from-internal:10] Pickup("SIP/779-09077e38",
"777 at from-internal") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
-- Executing [**758 at from-internal:11] Pickup("SIP/779-09077e38",
"777") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
-- Executing [**758 at from-internal:12] Pickup("SIP/779-09077e38",
"777 at ext-queues") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
-- Executing [**758 at from-internal:13] Pickup("SIP/779-09077e38",
"777 at PICKUPMARK") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
== Auto fallthrough, channel 'SIP/779-09077e38' status is 'UNKNOWN'
Show Channels shows this (call from 201 to queue, 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
Asterisk version is 1.4.10.1 with FreePBX 2.3.0.3.
Thanks for your help.
Regards, Jack
More information about the asterisk-users
mailing list