[asterisk-users] Executing shell commands via AMI

Tony Mountifield tony at mountifield.org
Thu Mar 17 05:43:56 CDT 2011


In article <4D812911.6080401 at venturevoip.com>,
Matt Riddell <lists at venturevoip.com> wrote:
> On 17/03/11 9:53 AM, Vinícius Fontes wrote:
> > No increased security, lots of hassle, all because there's an
> > undocumented "feature" that is supposed to increase security but just
> > takes functionality away.
> 
> If you really want to you could add some dialplan like:
> 
> [dangerous]
> exten => s,1,System(${somecommand})
> 
> and use the manager to set the somecommand variable on a call you send 
> to the "dangerous" context.
> 
> Up to you.

I seem to remember the Asterisk GUI using this technique too. Although
perhaps it had canned shell commands in the dialplan rather than allowing
anything through.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list