[Asterisk-Users] Asterisk Manager

Paulo Mannheimer paulohm at instant.com.br
Thu Oct 16 14:08:25 MST 2003


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: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Chee Foong
Sent: terça-feira, 14 de outubro de 2003 04:53
To: asterisk-users at lists.digium.com
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: <wasim at convergence.com.pk>
To: "Chee Foong" <cheefoong at inovas.com>
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
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemcli2.diff
Type: application/octet-stream
Size: 3787 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20031016/c01dcc11/systemcli2.obj


More information about the asterisk-users mailing list