[asterisk-users] Re: System from AMI
Alexander Lopez
Alex.Lopez at OpSys.com
Thu Mar 29 15:33:50 MST 2007
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/1 at dummy
Context: dummy
Exten: 2
Priority: 1
In extensions.conf
[dummy]
Exten => _X,1,Wait(2)
Exten => _X,2,NoOp
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Lee Jenkins
> Sent: Thursday, March 29, 2007 2:57 PM
> To: tomislav.parcina at email.t-com.hr; Asterisk Users Mailing List -
Non-
> 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
> > all credentials. What I'm asking is what Action allows me to execute
> > system command.
> >
> > What I tried is this:
> > Action: Command
> > Command: ! ls
> >
> > Response: Follows
> > Privilege: Command
> > --END COMMAND--
>
> Oh, OK. I misunderstood your original question. I have not used the
> bang command, but according to the wiki, it's a problem in the way
it's
> implemented:
> http://www.voip-
> info.org/wiki/index.php?page=Asterisk+Manager+API+Action+Command
>
>
>
>
>
> --
>
> Warm Regards,
>
> Lee
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list