[asterisk-users] Executing system commands through Manager API
Steve Edwards
asterisk.org at sedwards.com
Thu Aug 19 17:56:47 CDT 2010
On Thu, 19 Aug 2010, Carlos Chavez wrote:
> I am making a web interface so users can manage their voicemail.
> The only problem I have is that since the Web server and Asterisk run as
> different users I need to run some commands through Asterisk so I can
> manipulate the voicemail files.
>
> I know that from the CLI I can user the "!" commando to run any
> external shell command but when I try to do it from the Manager API
> using "Command" I cannot get it to work. Since the web server cannot
> erase or modify files I need to go through Asterisk to execute rm or mv.
>
> Is there an easier way to do this (without changing the user for
> Apache)? Is it possible to use the ! command from the Manager?
1) Change the user for Asterisk.
2) man sudo
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list