P
P
protsey2018-01-05 14:16:19
Asterisk
protsey, 2018-01-05 14:16:19

Why does System only run in Asterisk console mode?

Good afternoon. Debian 9 + Asterisk 13, a rudimentary dialplan that executes a couple of system commands after disconnection.

.....
exten => _.,n,Dial(SIP........)
exten => _.,n,Hangup()
......
exten => h,1,System(echo .....)
exten => h,n,System(rm -rf /home/user/......)
...

All this only works if you stop asterisk and run it via asterisk -vvvgc in console mode.
/bin/echo didn't help.
In those descriptions of System () that I read, no mention of rights and other nuances was mentioned. What did I miss? There is little experience with the asterisk, so it may well be some kind of trifle, please do not kick much) Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protsey, 2018-01-05
@protsey

I wrote a question and immediately came to the answer. Still right. In /etc/default/asterisk I changed AST_USER="asterisk" to AST_USER="root" and everything worked. Let's dig in this direction.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question