[asterisk-users] Executing system commands through Manager API

Sherwood McGowan sherwood.mcgowan at gmail.com
Thu Aug 19 22:10:01 CDT 2010

On Thu, Aug 19, 2010 at 5:56 PM, Steve Edwards
<asterisk.org at sedwards.com> wrote:
> 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
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users

Another possibility would be to use the IMAP or ODBC storage option
for Voicemail? Just a thought :)

More information about the asterisk-users mailing list