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:[EMAIL PROTECTED])
exten => _**ZXX,n,Pickup(${EXTEN:[EMAIL PROTECTED])
exten => _**ZXX,n,Pickup(${EXTEN:2})
exten => _**ZXX,n,Pickup(${EXTEN:[EMAIL PROTECTED])
exten => _**ZXX,n,Pickup(${EXTEN:[EMAIL PROTECTED])
exten => _**ZXX,n,Pickup([EMAIL PROTECTED])
exten => _**ZXX,n,Pickup([EMAIL PROTECTED])
exten => _**ZXX,n,Pickup(777)
exten => _**ZXX,n,Pickup([EMAIL PROTECTED])
exten => _**ZXX,n,Pickup([EMAIL PROTECTED])

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 [EMAIL PROTECTED]: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 [EMAIL PROTECTED]: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 [EMAIL PROTECTED]:4] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") 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 [EMAIL PROTECTED]:5] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") 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 [EMAIL PROTECTED]: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 [EMAIL PROTECTED]:7] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
    -- Executing [EMAIL PROTECTED]:8] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 758.
    -- Executing [EMAIL PROTECTED]:9] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
    -- Executing [EMAIL PROTECTED]:10] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
    -- Executing [EMAIL PROTECTED]: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 [EMAIL PROTECTED]:12] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") in new stack
[Sep 19 11:43:39] NOTICE[12022]: app_directed_pickup.c:159
pickup_exec: No target channel found for 777.
    -- Executing [EMAIL PROTECTED]:13] Pickup("SIP/779-09077e38",
"[EMAIL PROTECTED]") 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     [EMAIL PROTECTED]: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

_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to