Macro parameters


Hi im trying to exceute the next macro

;;;;;;;;;;;;;;;;;;;;;; begin macro-IncreaseCounterLines ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;${ARG1} = LocalCallCounter
exten => s,1,Noop(Begin Macro IncreaseCounterLines)
exten => s,2,SetVar(CallIdentifier=${IDENTIFICADOR})
exten => s,3,DBput(DCCOUNT/${CallIdentifier}=${ARG1})
exten => s,4,SetGlobalVar(CALLS_COUNTER=$[${CALLS_COUNTER}+${ARG1}])
exten => s,5(End),Noop((’>>>>>> CALL ID= ‘${IDENTIFICADOR}’ >> CALLS COUNT= '${CALLS_COUNTER} ‘>>’)
exten => s,6,Noop(End Macro IncreaseCounterLines)
;;;;;;;;;;;;;;;;;;;;;; end macro-IncreaseCounterLines ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

with the following line:

exten => s,18,Dial(${ARG4}|35|M(IncreaseCounterLines^${LocalCallCounter})) ; Dial to the ARG4

but when i call macro the asterislk console says:

WARNING[1924]: app_macro.c:90 macro_exec: No such context ‘macro-IncreaseCounterLines^2’ for macro ‘IncreaseCounterLines^2’

Some body knows about it??



thanks was abou asterisk version


Try this:

exten => s,18,Dial(${ARG4}|35|M(IncreaseCounterLines,${LocalCallCounter})) ; Dial to the ARG4