[asterisk-users] Macro only accepts 1 argument

jonas kellens jonas.kellens at telenet.be
Sun Dec 27 11:27:30 CST 2009


Hello list !

This is my call to the macro :

exten => 36,n,Macro(mymacro,${KNUMMER},yo)

This is where {ARG1} and {ARG2} are used inside the macro :

exten => s,n,Voicemail(${ARG1}@${ARG2},s)

This the output on the CLI :

VoiceMail("IAX2/zoiper-13958", "908001@|s")

The variable ${KNUMMER} is set in the dialplan and well replaced by
908001. But {ARG2} is not replaced by 'yo'...

Why is the macro not accepting my second argument ???

It should be possible according to
http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Macro

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091227/2fd90d52/attachment.htm 


More information about the asterisk-users mailing list