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)
_____
From: [email protected]
[mailto:[email protected]] On Behalf Of Jonas Kellens
Sent: Thursday, June 17, 2010 11:01 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Unable to pickup an extension
If I have one incoming call that rings IPphone-1 and another incoming call
that rings IPphone-2, then the Set(_PICKUPMARK=whatever) is overwritten.
When I do a pickup I'm always picking up the conversation that rang
IPphone-2.
Is there a way to pick up the first conversation to IPphone-1 ??
Dialplan :
[incoming]
exten => 1234567,1,NoOp()
exten => 1234567,n,GoSub(sub-settings,start,1)
exten => 1234567,n,Dial(SIP/IPphone-1)
exten => 3456789,1,NoOp()
exten => 3456789,n,GoSub(sub-settings,start,1)
exten => 3456789,n,Dial(SIP/IPphone-2)
[sub-settings]
exten => start,1,NoOp()
exten => start,n,Set(_PICKUPMARK=whatever)
exten => start,n,Return()
[example-pickup]
exten => **XX,1,NoOp()
exten => **XX,n,Pickup(whate...@pickupmark)
So I first call 1234567 (I see IPphone-1 ringing with BLF-settings) and then
5 seconds later I call 3456789 (I see IPphone-2 ringing with BLF-settings).
I want to pickup IPphone-1, but I always have the conversation to IPphone-2.
Does anyone see a workaround ??
Jonas.
On 06/16/2010 09:26 PM, Philipp von Klitzing wrote:
Set("SIP/testcorp4-> 00000005","_PICKUPMARK=SIP/testcorp5&SIP/testcorp6")
Pickup("SIP/testcorp1-00000009", "testco...@pickupmark")
Can you see the difference? That's what you need to change so that it
matches. "SIP/testcorp5&SIP/testcorp6" is not the same as "testcorp6".
Philipp
--
_____________________________________________________________________
-- 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