[Asterisk-Users] passing variables to a macro
Lance Arbuckle
asterisk at arbuckle.org
Fri Feb 6 09:37:05 MST 2004
I was wondering if this would work....
set a variable (varX) in macro-test
call another macro [macro-subroutine]
have varX available within [macro-subroutine]
[macro-test-1]
; ${ARG1} - extension
setvar(var1=foo)
macro(subroutine,${ARG1})
[macro-subroutine]
do something with varX
Or do you have to pass all variables you want to have available within a
macro when the macro is called ?
like this:
macro(subroutine,${ARG1},${varX})
thanks
--Lance
More information about the asterisk-users
mailing list