Hello.
This is what I have :
suppose ${SIPaccounts}=SIP/testcorp5&SIP/testcorp6
exten => group,1,Set(_PICKUPMARK=${SIPaccounts})
exten => group,n,Dial(${SIPaccounts})
This is what happens when I try to pickup an extension :
[Jun 16 20:39:33] -- Executing [...@sub-routing:13]
Set("SIP/testcorp4-00000005",
"*_PICKUPMARK=SIP/testcorp5&SIP/testcorp6*") in new stack
[Jun 16 20:39:38] -- Executing [...@sub-routing:14]
Dial("SIP/testcorp4-00000005", "SIP/testcorp5&SIP/testcorp6|30") in new
stack
[Jun 16 20:39:38] -- Called testcorp5
[Jun 16 20:39:38] -- Called testcorp6
[Jun 16 20:39:38] -- SIP/testcorp6-00000008 is ringing
[Jun 16 20:39:38] -- SIP/testcorp5-00000007 is ringing
...
[Jun 16 20:39:40] -- Executing [*...@from-testcorp:8]
Pickup("SIP/testcorp1-00000009", "*testco...@pickupmark*") in new stack
[Jun 16 20:39:40] NOTICE[2936]: app_directed_pickup.c:159 pickup_exec:
*No target channel* found for testcorp6.
[Jun 16 20:39:40] -- Executing [*...@from-testcorp:9]
NoOp("SIP/testcorp1-00000009", "") in new stack
[Jun 16 20:39:40] -- Executing [*...@from-testcorp:10]
Pickup("SIP/testcorp1-00000009", "*SIP/testco...@pickupmark*") in new stack
[Jun 16 20:39:40] NOTICE[2936]: app_directed_pickup.c:159 pickup_exec:
*No target channel* found for SIP/testcorp6.
So again my question: how to use Pickup() when I have multiple
SIPaccounts in the Dial()-statement ??
The question remains.
Jonas
On 06/16/2010 12:25 PM, Rob Coward wrote:
Scroll approx. one 3rd of the way down the page to where there is a
large bold bit of text saying:
Example using PICKUPMARK for Asterisk 1.4
[macro-inbound]
exten => s,1,Set(_PICKUPMARK=${MACRO_EXTEN})
exten => s,n,Dial(SIP/SomeSipPhone,20,rwt)
Something similar may work in your case perhaps ?
Rob
--
_____________________________________________________________________
-- 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