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 <[EMAIL PROTECTED]> 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 _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
