[asterisk-dev] Need help in how to get notified of events from client

Moises Silva moises.silva at gmail.com
Thu Nov 23 18:24:07 MST 2006


Hi, your question will be answered more properly on asterisk-users
mailing list. Also you can start reading this:

http://www.voip-info.org/wiki/view/Asterisk+manager+API

Kind Regards

- Moisés Silva

On 11/21/06, Ly, Phung My <pmly at fcg.com> wrote:
> Hi
> I research about AMI,I configure manager.conf:
> ; AMI - The Asterisk Manager Interface
> ; Asterisk call management support and PBX event supervision
> [general]
> enabled = yes
> port = 5038
> bindaddr = 0.0.0.0
> ;--------------------------
> [PhungLy]
> secret = mysecret
> deny=0.0.0.0/0.0.0.0
> permit=172.16.49.14/255.255.255.0
> permit=127.0.0.1
> ;------------------------------------
> ; Authorization for various classes
> read = system,call,log,verbose,command,agent,user,config
> write = system,call,log,verbose,command,agent,user,config
>
> After that I run 'asterisk -r'. However I don't understand how to get
> notified of events through it and how to control it from client as well as how to design GUI from client to connect asterisk server via AMI
> Please help me
> Thank you very much
>
>
> -----Original Message-----
> From: asterisk-dev-bounces at lists.digium.com
> [mailto:asterisk-dev-bounces at lists.digium.com]On Behalf Of Tzafrir Cohen
> Sent: Sunday, November 19, 2006 6:00 PM
> To: asterisk-dev at lists.digium.com
> Subject: Re: [asterisk-dev] Need help in how to originate call from c
> toasterisk ie controlling asterisk cli commands through c.
>
>
> On Thu, Nov 16, 2006 at 03:00:55PM +0000, rajesh singh wrote:
> >
> >
> >   Hi
> >
> >    I m trying to interface asterisk with c for
> > controlling their cli through c but only i can start
> > the asterisk server through using execv after that c
> > cant execute command to asterisk.
> >
>
> The code of the Asterisk CLI handling (the remote part) is in various
> files in main/ . Mostly asterisk.c itself. When you run 'asterisk -r'
> asterisk connects via a unix domain socket (asterisk.ctl). So it is
> basically possible to reimplement it with a different program to command
> Asterisk. However:
>
> A better documented interface with similar functionality is the Asterisk
> Manager Interface, to which you connect throuch a standard TCP socket on
> port 5038 (by default). You should be able to issue CLI commands and get
> notified of events through it.
>
> In short, the functionality you need is probably already there. Try
> asking in the -users list if youi still have problems.
>
> --
>                Tzafrir Cohen
> icq#16849755                    jabber:tzafrir at jabber.org
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
> This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>
>


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"


More information about the asterisk-dev mailing list