[asterisk-users] Unable to pickup an extension

Danny Nicholas danny at debsinc.com
Thu Jun 17 13:17:16 CDT 2010


The inherent problem with this is that you might have 10(100) incoming
calls.  The assignment of PICKUPMARK is dynamic, but the pickup is static.
You might use a GLOBAL variable to set PICKUPMARK like this:

[sub-settings]
exten => start,1,NoOp()
exten => start,n,Set(_PICKUPMARK=${CALLNUM})

Exten => start,n,Set(GLOBAL(CALLNUM)=${CALLNUM} +1)
exten => start,n,Return()

[example-pickup]
exten => **XX1,1,NoOp()
exten => **XX1,n,Pickup(1 at PICKUPMARK)
exten => **XX2,1,NoOp()
exten => **XX2,n,Pickup(2 at PICKUPMARK)



You would have to set CALLNUM initially and limit it, but you could use this
to pickup X calls.

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonas Kellens
Sent: Thursday, June 17, 2010 12:39 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Unable to pickup an extension

 

exten => start,n,Set(_PICKUPMARK=${CALLERID(num)})

In your example this means that the calling number (for example 3291234567
in Belgium or 49215790657 in Germany) will be set as PICKUPMARK.

If I want to pick up Phone-1 which rings on an incoming call, how can I know
on which incoming number the call was made ??

exten => **XX1,n,Pickup(4001 at PICKUPMARK)

This needs to be more dynamic as I have multiple lines and multiple users...

Jonas.


On 06/17/2010 06:17 PM, Danny Nicholas wrote: 

If you stand on one foot, this might work: (assumes you get CALLERID(num) to
be 4001 for IPphone1 and 4002 for IPphone2;  In my shop DAHDI-1 is 4001 and
DAHDI-2 is 4002)

[sub-settings]
exten => start,1,NoOp()
exten => start,n,Set(_PICKUPMARK=${CALLERID(num)})
exten => start,n,Return()

[example-pickup]
exten => **XX1,1,NoOp()
exten => **XX1,n,Pickup(4001 at PICKUPMARK)
exten => **XX2,1,NoOp()
exten => **XX2,n,Pickup(4002 at PICKUPMARK)




 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100617/8e3b4843/attachment.htm 


More information about the asterisk-users mailing list