Play Message with Macro

I want to play a message with a macro e.g. (1234)

in rpt.conf I have
macro=macro
[macro]
1234=cmd,/usr/bin/command.sh

I can execute the command and play the message successfully at the bash prompt with
/usr/bin/command.sh

From the CLI> prompt the following does NOT work
CLI> rpt fun *51234

What am I missing?

Roger
WA1NVC

The asterisk user has to have permission to run the script.

Manually run the script as the asterisk user and see if it works:

sudo -u asterisk /usr/bin/command.sh

You may also want to review ASL3 Manual: Permissions

What is the correct way to play a voice message using DTMF?

Obviously I am not doing it right as what I did does not work.

Roger
WA1NVC

1234=localplay,/path/to/sound/file

Then *1234

1 Like