# Call Pickup issue

**URL:** <https://community.asterisk.org/t/call-pickup-issue/7103>\
**Category:** Asterisk Support\
**Created:** [June 15, 2006, 9:20pm UTC](https://community.asterisk.org/t/call-pickup-issue/7103 "2006-06-15T21:20:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gventer](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@gventer](https://community.asterisk.org/u/gventer)\
**Post date:** [June 15, 2006, 9:20pm UTC](https://community.asterisk.org/t/call-pickup-issue/7103/1 "2006-06-15T21:20:06Z")

</div>

I have noticed a strange issue with the application “Pickup”. If I dial a phone directly via a DID I can pick up the call with the following line in my diaplan

exten =\> \*7.,1,Pickup(${EXTEN:2})

But when a call comes in via a “menU” of some kind like this:  
exten =\> 1234,1,Answer  
exten =\> 1234,2,Playback(welcome)  
exten …menu etc.  
exten =\> 1234,n,Dial(SIP/100,20,tr)

and then ring the internal phone I cannot pick it up using the \*71234.

The DID just execute the standard macro that comes with the samples.

Any ideas why?

---

<div class="post-metadata">

**Author:** ![alerizwe](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@alerizwe](https://community.asterisk.org/u/alerizwe)\
**Post date:** [June 16, 2006, 5:56am UTC](https://community.asterisk.org/t/call-pickup-issue/7103/2 "2006-06-16T05:56:07Z")

</div>

You can make it work like this:  
To use pickup application for pick up use context like this :  
exten =\> s,1,GotoIfTime(13:00-14:00|_|_|\*?break,1,1)  
exten =\> s,2,NoOp(${CALLERIDNUM})  
exten =\> s,3,Answer  
exten =\> s,4,Wait(1)  
exten =\> s,5,Background(welcome)  
exten =\> s,6,WaitExten(5)  
;exten =\> s,6,Dial(SIP/332|16)  
exten =\> s,7,Goto(332,1)  
exten =\> s,8,Hangup

exten =\> 332,1,Dial(SIP/332|20|tT|)  
exten =\> 332,2,VoiceMail(332@default)  
exten =\> 332,3,Playback(vm-goodbye)  
exten =\> 332,4,Hangup

This way u can pickup 332 ringing.

---

<div class="post-metadata">

**Author:** ![gventer](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@gventer](https://community.asterisk.org/u/gventer)\
**Post date:** [June 16, 2006, 4:58pm UTC](https://community.asterisk.org/t/call-pickup-issue/7103/3 "2006-06-16T16:58:13Z")

</div>

Yes thank you, I found that it is linked to the initial exten in the diaplan that the call came into.
