On 04/16/2012 05:21 AM, Niccolò Belli wrote:
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ò
There is some missing information here. What is the strategy of the queue? How are the queue members listed (i.e. are they SIP channels or local channels)? My suspicion is that the queue is simultaneously dialing local channels in contexts [context-100] and [context-200]. Since there are no ringing channels in context [from-my-sip-provider] there are no calls to pick up there. However, since [context-100] and [context-200] both have ringing channels, doing a call pickup in either of these results in a successful pickup.

Mark Michelson

--
_____________________________________________________________________
-- 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