[asterisk-users] Pickup calls coming from queues

Niccolò Belli darkbasic at linuxsystems.it
Mon Apr 16 05:21:58 CDT 2012


I suspected it, but it didn't work at first. I fear I didn't understand 
what the context refers to in Pickup(extension[@context]).

I will make an example: phone-100 wants to pick up a ringing phone-200 
(call comes from my-sip-provider).


This is my sip.conf

[phone-100]
context=context-100

[phone-200]
context=context-200

[my-sip-provider]
context=from-my-sip-provider


This is my extensions.conf

[context-100]
exten => test,hint,Queue:MyQueue
exten => test,1,Pickup(myphonenumber at from-my-sip-provider)
[...]

[context-200]
[...]

[from-my-sip-provider]
exten => myphonenumber,1,Queue(MyQueue,r)
same => n,Hangup()


I expected to use from-my-sip-provider as context in Pickup, 
unfortunately it didn't work.
So I tried both context-100 and context-200 as context in Pickup and 
they *both* worked! What's the logic behind Pickup's context?

Thanks,
Niccolò



More information about the asterisk-users mailing list