[asterisk-dev] handling system commands in AMI
Philipp Kempgen
philipp.kempgen at amooma.de
Fri Jun 5 11:50:05 CDT 2009
Tzafrir Cohen schrieb:
> On Fri, Jun 05, 2009 at 07:54:21AM -0500, Russell Bryant wrote:
>>
>> On Jun 5, 2009, at 1:43 AM, Nánássy Dániel wrote:
>> > there is a bug (or a missing feature?) with the Command action. It
>> > does not handle the "!" command (e.g. Action: Command\r\nCommand: !
>> > echo "something"; sleep 5\r\n\r\n), however this system command can
>> > be exectuted in cli.
>> This feature is left out intentionally for security reasons.
>
> Specifically: '!' or '!command' in 'asterisk -r' shell runs a local
> shell rather than a shell on the remote Asterisk process. It's not
> something that should even go over the wire.
> So you can just as well implement this on the remote side without
> touching Asterisk's code :-)
In what scenario would I want to use "!" then?
Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de
--
More information about the asterisk-dev
mailing list