[asterisk-users] Unable to pickup an extension

Danny Nicholas danny at debsinc.com
Thu Jun 17 11:17:32 CDT 2010


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)



 

  _____  

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 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(whatever at 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", "testcorp6 at 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
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100617/dcd14cd1/attachment.htm 


More information about the asterisk-users mailing list