Here is a patch that I posted to Mark a couple of days ago. Haven't tested it too much.
It basically implements the system command through the manager interface. Due to security issues, you have to create a system.conf file at /etc/asterisk with the commands that you wish to allow. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chee Foong Sent: ter�a-feira, 14 de outubro de 2003 04:53 To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Asterisk Manager Hello mate, I tried that, i get No such command 'System(ls)'. I can't even make it work on CLI. I am able to execute linux command (via CLI) by prefix command with a "!". I would like to know how to do it throut the manager appllication. Thanks for you reply. CF ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Chee Foong" <[EMAIL PROTECTED]> Sent: Tuesday, October 14, 2003 2:08 PM Subject: Re: [Asterisk-Users] Asterisk Manager > On Tue, 14 Oct 2003, Chee Foong wrote: > > > Can I execute linux command like(ls, mkdir) through the Manager interface? > > nain*CLI> show application system > nain*CLI> > -= Info about application 'System' =- > > [Synopsis]: > Execute a system command > > [Description]: > System(command): Executes a command by using system(). Returns -1 > on failure to execute the specified command. If the command itself > executes but is in error, and if there exists a priority n + 101, > where 'n' is the priority of the current instance, then the channel > will be setup to continue at that priority level. Otherwise, > System returns 0. > > -- > Mirza Wasim Baig | Principal Consultant | Convergence Business Systems > PK #48, St 32, Sector F-6/1, Islamabad, Pakistan 44000 | US: +1(800)460-1446 > VOX: +92(51)282-0628 | FAX: +92(51)282-0621 | GSM: +92(300)850-8070 > > This mail is confidential & intended solely for the use of the > addressee. > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
systemcli2.diff
Description: Binary data
