SHELL() application compatibility with AWS cli

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?

I am using Asterisk 16.5.0. Appreciate any help :slight_smile:

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.

aws cli is installed globally, i can run it on any folder
if AWS is blocked from asterisk i am doomed :frowning:

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.