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@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ò

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to