Call Pickup issue

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?

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.

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