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...@pickupmark)
exten => **XX2,1,NoOp()
exten => **XX2,n,Pickup(2...@pickupmark)
You would have to set CALLNUM initially and limit it, but you could use this
to pickup X calls.
_____
From: [email protected]
[mailto:[email protected]] 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(4...@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(4...@pickupmark)
exten => **XX2,1,NoOp()
exten => **XX2,n,Pickup(4...@pickupmark)
--
_____________________________________________________________________
-- 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