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]
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)
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
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:
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:
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
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.
-
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
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]
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]
: [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
11 matches
Mail list logo