Pickup Problem

Hi there,

i have a Problem with the Pickup command.

Versions:
asterisk 1.4.1 on gentoo

my extensions.conf [only the interesting part]:
[incoming_1]
exten => 123,1,Ringing
exten => 123,2,Dial(SIP/xxxx,20,r)
exten => 123,3,wait(90)
exten => 123,4,hangup

[incoming_2]
exten => 456,1,pickup(123@incoming_1)

both are sip-accounts and have pickupgroup=1 in the sip.conf
so my idea is, when anybody calls at 123 my mobile is ringing and i call
back on 456 and will be connected to the caller

the callout and all other are runnig, but at the pickup there is always:
pickup_exec: No target channel found for 123@incoming_1

I’ve already tried to insert a answer before the pickup and do a pickup
without the context but nothing runs…

any ideas why my pickup don’t it?

thanx

Juergen

This may help: voip-info.org/wiki/view/Asterisk+cmd+Pickup Looks like the bug is not registered and not fixed.

I changed the source like in the link but the problem is still alive…

ns1*CLI> core show channels
Channel Location State Application(Data)
IAX2/XXX.XX.217.52:4 79@wrn:2 Ring Wait(90)
1 active channel
1 active call

-- Executing [80@wrn:2] Pickup("IAX2/XXX.XX.217.52:4569-4", "79@wrn") in new stack

[Mar 12 09:09:08] NOTICE[30639]: app_directed_pickup.c:99 pickup_by_exten: exten: 80 - context: wrn in .
[Mar 12 09:09:08] NOTICE[30639]: app_directed_pickup.c:99 pickup_by_exten: exten: 79 - context: wrn in .
[Mar 12 09:09:08] NOTICE[30639]: app_directed_pickup.c:162 pickup_exec: No target channel found for 79.

the both lines extra came from a log-entry i’ve put in the source:
ast_log(LOG_NOTICE, “exten: %s - context: %s in %s.\n”, target->exten,context,target->dialcontext);

in pickup_by_exten as first line in the while-way.

I don’t think its a problem of the ringing-State because i commented the “can_pickup(target))” in the if-cause two lines later out.

Any ideas? :wink: