Jonas Kellens
2010-Jun-14 15:45 UTC
[asterisk-users] Unable to pickup an extension, trying everything
Hello list, I try to pick up a ringing extension but nothing works. To be clear, I'm trying to pick up extension 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:4] Pickup("SIP/testcorp3-00000041", "10 at 123456") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:5] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:6] Pickup("SIP/testcorp3-00000041", "10") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:7] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:8] Pickup("SIP/testcorp3-00000041", "10 at from-TESTCORP") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:9] Pickup("SIP/testcorp3-00000041", "testcorp1 at 123456") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:10] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:11] Pickup("SIP/testcorp3-00000041", "testcorp1") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:12] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:13] Pickup("SIP/testcorp3-00000041", "testcorp1 at from-TESTCORP") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:14] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:15] Pickup("SIP/testcorp3-00000041", "testcorp1 at testcorp") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:16] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:17] Pickup("SIP/testcorp3-00000041", "10 at testcorp") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:18] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:19] Pickup("SIP/testcorp3-00000041", "10 at sub-intern") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:20] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:21] Pickup("SIP/testcorp3-00000041", "testcorp1 at sub-intern") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:22] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:23] Pickup("SIP/testcorp3-00000041", "10 at sub-routing") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:24] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:25] Pickup("SIP/testcorp3-00000041", "testcorp1 at sub-routing") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:26] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:27] Set("SIP/testcorp3-00000041", "PICKUPMARK=10") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:28] Pickup("SIP/testcorp3-00000041", "10 at PICKUPMARK") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. These are the channels : asterisk*CLI> core show channels Channel Location State Application(Data) SIP/testcorp1-000000 s at from-TESTCORP:1 Ringing AppDial((Outgoing Line)) IAX2/testlocal-1612 s at sub-routing:13 Ring Dial(SIP/testcorp1|30) 2 active channels 1 active call I don't know what the "target channel" is and I try every context that I have defined in my dialplan.. I try to pickup extension 10 or also the SIPaccount testcorp1 (which is reachable through extension 10). Why is this not working ???? Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100614/aa2703e0/attachment.htm
Peder
2010-Jun-14 18:00 UTC
[asterisk-users] Unable to pickup an extension, trying everything
sip.conf and extensions.conf would be helpful as well as knowing what version you are running. Based on what you went, I would say you have a config error, but I can't tell where without seeing the config. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens Sent: Monday, June 14, 2010 10:46 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Unable to pickup an extension, trying everything Hello list, I try to pick up a ringing extension but nothing works. To be clear, I'm trying to pick up extension 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:4] Pickup("SIP/testcorp3-00000041", "10 at 123456") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:5] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:6] Pickup("SIP/testcorp3-00000041", "10") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:7] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:8] Pickup("SIP/testcorp3-00000041", "10 at from-TESTCORP") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:9] Pickup("SIP/testcorp3-00000041", "testcorp1 at 123456") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:10] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:11] Pickup("SIP/testcorp3-00000041", "testcorp1") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:12] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:13] Pickup("SIP/testcorp3-00000041", "testcorp1 at from-TESTCORP") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:14] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:15] Pickup("SIP/testcorp3-00000041", "testcorp1 at testcorp") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:16] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:17] Pickup("SIP/testcorp3-00000041", "10 at testcorp") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:18] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:19] Pickup("SIP/testcorp3-00000041", "10 at sub-intern") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:20] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:21] Pickup("SIP/testcorp3-00000041", "testcorp1 at sub-intern") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:22] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:23] Pickup("SIP/testcorp3-00000041", "10 at sub-routing") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:24] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:25] Pickup("SIP/testcorp3-00000041", "testcorp1 at sub-routing") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for testcorp1. [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:26] NoOp("SIP/testcorp3-00000041", "") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:27] Set("SIP/testcorp3-00000041", "PICKUPMARK=10") in new stack [Jun 14 17:37:34] -- Executing [**10 at from-TESTCORP:28] Pickup("SIP/testcorp3-00000041", "10 at PICKUPMARK") in new stack [Jun 14 17:37:34] NOTICE[16555]: app_directed_pickup.c:159 pickup_exec: No target channel found for 10. These are the channels : asterisk*CLI> core show channels Channel Location State Application(Data) SIP/testcorp1-000000 s at from-TESTCORP:1 Ringing AppDial((Outgoing Line)) IAX2/testlocal-1612 s at sub-routing:13 Ring Dial(SIP/testcorp1|30) 2 active channels 1 active call I don't know what the "target channel" is and I try every context that I have defined in my dialplan.. I try to pickup extension 10 or also the SIPaccount testcorp1 (which is reachable through extension 10). Why is this not working ???? Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100614/5492fde0/attachment.htm
Jonas Kellens
2010-Jun-15 07:12 UTC
[asterisk-users] Unable to pickup an extension, trying everything
I have read some info on PICKUPMARK and that I need to set this when a call comes in. But what happens when there are multiple calls coming in ?? How will Pickup(10 at PICKUPMARK) know which channel to pick up ?? In stead of PICKUPMARK (which is a global variable) I would rather like to use a more context-sensitive approach if possible. Jonas. On 06/15/2010 01:34 AM, Philipp von Klitzing wrote:> Quickly: > > Do some reading on PICKUPMARK: You need to set this on the channel that > you want to pick up, not the channel that is doing the pickup. > > Philipp >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/e04001f4/attachment.htm
Philipp von Klitzing
2010-Jun-15 12:38 UTC
[asterisk-users] Unable to pickup an extension, trying everything
Hi!> But what happens when there are multiple calls coming in ?? > > How will Pickup(10 at PICKUPMARK) know which channel to pick up ?? > > In stead of PICKUPMARK (which is a global variable) I would rather like to > use a more context-sensitive approach if possible.Do not make PICKUPMARK a global variable - use it as a normal channel variable instead (and prefix it with _ (or even __) when you see fit to provide channel variable inheritance). Philipp
Jonas Kellens
2010-Jun-15 13:16 UTC
[asterisk-users] Unable to pickup an extension, trying everything
Philipp, thank you for your willingness to help me. In a previous mail I gave a part of my dialplan: an incoming call rings a group of extensions/SIPaccounts : [sub-routing] <snip> exten => s,n(group),NoOp() exten => s,n,Macro(GetGroupDetails,${ganaarID}) exten => s,n,GoToIf($["${sequencenr}"=="1"]?callit) exten => s,n,Answer() exten => s,n(callit),Dial(${SIPaccounts},${timeout}) <-------------------------------- !!!! exten => s,n,GoToIf($["${DIALSTATUS}"!="ANSWER"]?nextstep:hangup) <snip> So the following happens : exten => s,n,Dial(SIP/testcorp1&SIP/testcorp2) ; dial multiple ext or exten => s,n,Dial(SIP/testcorp1) ; dial one ext I want to pick up the calling extension, in this case extension 10 (testcorp1) or 20 (testcorp2), or extension 10 (testcorp1). How to do this ?? To proceed with your answer on PICKUPMARK, where do I put this ??? Remark : internal calls no problem (like calling extension 10 from extension 20, and pick up extension 10 from extension 30) But calls coming from external... impossible ! Jonas. On 06/15/2010 02:38 PM, Philipp von Klitzing wrote:> Hi! > > Do not make PICKUPMARK a global variable - use it as a normal channel > variable instead (and prefix it with _ (or even __) when you see fit to > provide channel variable inheritance). > > Philipp >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/b686bafe/attachment.htm