[Asterisk-Users] using variable

unplug maillisting at gmail.com
Mon Jun 26 21:13:31 MST 2006


Hi,

  How can I access the variable in marco?  Say, there is a dial plan
below.  In line 4, it will show the variable FOO=1234.  However, the
variable in line 2 is nothing.  Can I assign a varilable in macro and
access it outside a macro in the same session only?


[dialplan]
1: exten => 1234,1,Macro(test)
2: exten => 1234,2,NoOp(${FOO})

[macro-test]
3: exten => s,1,Set(FOO=1234)
4: exten => s,2,NoOp(${FOO})



More information about the asterisk-users mailing list