Problem with PickUpChan()

Hello
If you execute PickUpChan() when an extension is ringing like, it always jump to the Congestion()
I don’t know why… I have this:

exten=>s,1,Answer()
exten=>s,n,PickUpChan(SIP/${EXTEN})
exten=>s,n,Congestion(2)
exten=>s,n,Hangup()

If i only have this:
exten=>s,1,Answer()
exten=>s,n,PickUpChan(SIP/${EXTEN})

The call is picked up correctly. Is rare!

Using asterisk1-8.x

exten=>s,n,PickUpChan(SIP/${EXTEN})

how do you expect it to work ? the ${EXTEN} value is ‘s’ in this case. you need to pass the number you want to pickup.

Ian

If you do this IT WORK
exten=>_XXX,1,Answer()
exten=>_XXX,n,PickUpChan(SIP/${EXTEN})

If you do this IT DOESN’T WORK
exten=>_XXX,1,Answer()
exten=>_XXX,n,PickUpChan(SIP/${EXTEN})
exten=>_XXX,n,Congestion(2)
exten=>_XXX,n,Hangup()

Using asterisk 1.8.4
If don’t Answer(), the dialplan continues inmediatelly after PickUpChan() (¿who is receiving the Congestion()?)
When putting Answer() the dialplan does not continue when the ‘original’ caller hangs up

If I test the call from the console, (console dials, a sip-phone tries to pickup)
exten=>_XXX,1,Answer()
exten=>_XXX,n,PickUpChan(SIP/${EXTEN})
exten=>_XXX,n,Congestion(2)
exten=>_XXX,n,Hangup()
produces me a crash (core stop)

¿What messages are you getting?