Hello,
Asterisk 1.4.38
Linux version 2.6.9-89.31.1.EL CentOS
Trying to get variables into a dial plan from AMI. I have tried all
sorts of combinations,entering them after making a connection to ami
through telnet, of the many available examples on voip-info.org such as:
Action: Originate
Channel: sip/xxxxxxxxxx@xxxxxxx
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: test1
Exten: acs1
Priority: 1
CallerID: xxxxxxxxxx
Account: MyTest
Command: Set(var1=123456)
Command: Set(var2=54321)
also tried:
Var:
Variable:
SetVar:
Each individually for the two variables I need and both on the same line
separated by a | or a ,
Always when I hit return twice to give the \r\n\r\n The call is
successful but where I have
exten => acs1,n,NoOp(Vars = ${var1}, ${var2});
in my dialplan what I get is:
[2011-08-15 17:20:28] -- Executing [acs1@test1:2]
NoOp("SIP/xxxxxxx-00000451", "Vars = | ") in new stack
Obviously not what I was hoping for.
Any help would be greatly appreciated.
TIA,
JohnM
--
_____________________________________________________________________
-- 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