[asterisk-users] Re: System from AMI

2007-04-04 Thread Tomislav Parcina
Richard Lyman wrote: Action: Originate Channel: Local/[EMAIL PROTECTED] Context: dummy Exten: 2 Priority: 1 In extensions.conf [dummy] Exten = _X,1,System(*some command*) remember your permissions OK, thank you! -- Tomislav Parcina [EMAIL PROTECTED]

[asterisk-users] Re: System from AMI

2007-03-30 Thread Tomislav Parcina
Richard Lyman wrote: if you are unable to get '!' to work... there are other ways of doing this. manager originate can do this, use a local channel and point it at either a context/exten with an echo/system call, You mean like this? [testdelete] exten = myexten,1,System(rm /tmp/test.txt)

[asterisk-users] Re: System from AMI

2007-03-30 Thread Tomislav Parcina
Richard Lyman wrote: Action: Originate Application: System Data: /path/to/script Channel: Local/[EMAIL PROTECTED] Context: dummy Exten: 2 Priority: 1 In extensions.conf [dummy] Exten = _X,1,Wait(2) Exten = _X,2,NoOp fyi: manager originate is channel + context + exten + priority OR channel

Re: [asterisk-users] Re: System from AMI

2007-03-30 Thread Richard Lyman
Tomislav Parcina wrote: Richard Lyman wrote: *snipped fyi: manager originate is channel + context + exten + priority OR channel + application + data not both. So, you are saying that this should look like this? Action: Originate Channel: Local/[EMAIL PROTECTED] Application: System Data:

[asterisk-users] Re: System from AMI

2007-03-29 Thread Tomislav Parcina
Lee Jenkins wrote: You have to login into the AMI server with proper credentials and send commands. Hi Lee! Thank you for your mail. I do login to the Asterisk 5038 port and I have all credentials. What I'm asking is what Action allows me to execute system command. What I tried is this:

Re: [asterisk-users] Re: System from AMI

2007-03-29 Thread Richard Lyman
Tomislav Parcina wrote: Lee Jenkins wrote: You have to login into the AMI server with proper credentials and send commands. *snipped OK, maybe he doesn't show output, so I have tried this: Action: Command Command: ! rm /tmp/test.txt Response: Follows Privilege: Command --END COMMAND-- But

Re: [asterisk-users] Re: System from AMI

2007-03-29 Thread Lee Jenkins
Tomislav Parcina wrote: Lee Jenkins wrote: You have to login into the AMI server with proper credentials and send commands. Hi Lee! Thank you for your mail. I do login to the Asterisk 5038 port and I have all credentials. What I'm asking is what Action allows me to execute system command.

RE: [asterisk-users] Re: System from AMI

2007-03-29 Thread Alexander Lopez
- Commercial Discussion Subject: Re: [asterisk-users] Re: System from AMI Tomislav Parcina wrote: Lee Jenkins wrote: You have to login into the AMI server with proper credentials and send commands. Hi Lee! Thank you for your mail. I do login to the Asterisk 5038 port and I have

Re: [asterisk-users] Re: System from AMI

2007-03-29 Thread Lee Jenkins
Alexander Lopez wrote: It is a HUGE workaround but in concept it should work. You will need to build completion confirmation into your script as you will always get a success code from the manager. Action: Originate Application: System Data: /path/to/script Channel: Local/[EMAIL PROTECTED]

Re: [asterisk-users] Re: System from AMI

2007-03-29 Thread Richard Lyman
Alexander Lopez wrote: It is a HUGE workaround but in concept it should work. You will need to build completion confirmation into your script as you will always get a success code from the manager. Action: Originate Application: System Data: /path/to/script Channel: Local/[EMAIL PROTECTED]

RE: [asterisk-users] Re: System from AMI

2007-03-29 Thread Alexander Lopez
: [asterisk-users] Re: System from AMI Alexander Lopez wrote: It is a HUGE workaround but in concept it should work. You will need to build completion confirmation into your script as you will always get a success code from the manager. Action: Originate Application: System Data: /path