Macro parameters


#1

Hi im trying to exceute the next macro

[macro-IncreaseCounterLines]
;;;;;;;;;;;;;;;;;;;;;; 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


#2

thanks was abou asterisk version


#3

Try this:

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