Hello, everybody.
After updating Asterisk to 18 version (clean installation to new operation system) function SHELL stopped to write files.
Row in dialplan:
same => n,Set(foo=${SHELL(echo ‘123’ > /mnt/disk2/123.txt)})
CLI output:
– Executing [222@call-out:2] Set(“SIP/104-00000357”, “foo=”) in new stack
file doesn’t appear
Minwhile, row:
same => n,Set(foo=${SHELL(echo ‘123’)})
CLI output:
– Executing [222@call-out:2] Set(“SIP/104-0000035a”, "foo=123
For me it means that function SHELL at least works.
Folder is open to read/write for all. Shell comand echo ‘123’ > /mnt/disk2/123.txt creates neded file.
Can you help me what the problem is? May be SHELL function can’t work with foles in this version and I have to use function FILE instead?
Where I can see log or errors during execution of SHELL function from dialplan?