Macro with Dial command

Hi,

I have dialplan

[call-first]
exten => s,1,Answer()
exten => s,n,Noop(exten = ${EXTEN})
exten => s,n,Dial(Local/XXX,gM(update-status,${VAR1},${VAR2}))

and have macro

[macro-update-status]
exten => s,1,Macro(dumpvars)
exten => s,1,Noop(${ARG1})
exten => s,1,Noop(${ARG2})
exten => s,n,AGI(dail_success.php)
exten => s,n,MacroExit()

but if call success I am getting ARG1 & ARG2 is empty

Someone please help

There is no evidence that they have been set!

As the macro is run on the destination channel, you will need to make them global or have at least one “_”.

Macros are deprecated.

Can you please explain, I am not able to follow you, macro is running and the ARG1 & ARG2 are getting null

I also missed that you have three priority 1’s and the dumpvars macro isn’t defined.

Your abstract of the dialplan is incomplete.