[asterisk-users] Manager API ! (System) command

lenz lenz-ml at oinko.net
Wed Oct 10 06:56:06 CDT 2007


Yes - use the manager API to do an Originate by setting variable $CMD to  
the shell code you want to execute, and then call a piece of dialplan  
where the shellout will be executed through the System( $CMD ) command.  
Note that this would enable an attacker to execute arbitrary commands with  
the privileges of the Asterisk user, so  think carefully if there isn't  
some other way to do it.... :)
l.

In data Wed, 10 Oct 2007 06:04:02 +0200, robert home  
<rlsutton1 at optusnet.com.au> ha scritto:

> I need to issue some system commands via the Asterisk manager API. From  
> the CLI the ! (system command) works fine, but when connected via the  
> manager API it fails.
>
> Does anyone know why, or of a work around?
>
> Thanks
> Robert



-- 
Home of QueueMetrics - http://queuemetrics.com




More information about the asterisk-users mailing list