[asterisk-users] Unable to pickup an extension

Jonas Kellens jonas.kellens at telenet.be
Thu Jun 17 12:44:59 CDT 2010


exten =>  **XX

--> This is a local extension, a certain phone which is monitored with 
BLF-lights. So if I press the button I want the phone call that made 
this phone ring, not another phone.

exten =>  1234567,n,Set(_PICKUPMARK=${EXTEN:5})

--> If I set the PICKUPMARK-variable the same as the DID that is called, 
how can I know which DID that is set in the context [example-pickup] ?? 
My phone, who tries to do the pickup, creates a new channel, and the 
PICKUPMARK-channel variable is of course not inherited to this newly 
created channel...


Jonas.


On 06/17/2010 06:44 PM, Philipp von Klitzing wrote:
> Do this, for example:
>
>    
>> exten =>  1234567,1,NoOp()
>> exten =>  1234567,n,Set(_PICKUPMARK=${EXTEN:5})
>> exten =>  1234567,n,Dial(SIP/IPphone-1)
>>
>> exten =>  3456789,1,NoOp()
>> exten =>  3456789,n,Set(_PICKUPMARK=${EXTEN:5})
>> exten =>  3456789,n,Dial(SIP/IPphone-2)
>>
>> [example-pickup]
>> exten =>  **XX,1,NoOp()
>> exten =>  **XX,n,Pickup(${EXTEN:2}@PICKUPMARK)
>>      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100617/87044781/attachment.htm 


More information about the asterisk-users mailing list