this dialplan works as intended:
same => n,Set(result=${SHELL(echo “hello world”)})
however when you replace it with a working AWS cli command, such as:
same => n,Set(result=${SHELL(aws …)})
it returns blank. Im sure the aws command is correct because i do NoOp(aws …) and can copy paste it directly to shell and it works. What seems to be the problem here?
echo is built-in to Linux/Unix shells, so you can always use it without a path name. Assuming aws is implemented as a normal shell command, you may need to provide a full path name.
You appear to be saying that aws is not a normal shell command. All normal shell commands that are not built-in exist in a directory somewhere, which can be explicitly named…
If it’s not a normal shell command, I think you will have to wait for a someone who uses aws and and also has an understanding of the basic mechanics of shell commands.