Ast Coder
2012-Feb-24 04:08 UTC
[asterisk-users] Where can I find some good examples of listening to AMI events via PHP & how to listen to a specific event?
Hi everyone, I got HTTP AMI working fine here. For example this dials 1-415-999-8888 and then sends to Extension 9999 at from-internal: http://192.168.0.100:8088/asterisk/manager?action=command&originate&DAHDI/g0/14159998888&extension&9999 at from-internal However, I want to have some control over this call. I want to be notified the moment this call is hangup. I guess there would be a hangup event generated. I am not sure if that would be done through action:waitevent? or if there is another method. I am also looking for some php samples on listening for these events as I am trying to create a Web GUI for a dialer that will allow me to show status of a call in real-time like "Call In Progress", "Call Ended", etc... I see that too many events are generated and I am wondering if there is an easy way of listening for a particular event? Would that be ActionID? if so, how to use it? Thanks a lot -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120223/f10e5f9a/attachment.htm>
virendra bhati
2012-Feb-24 11:23 UTC
[asterisk-users] Where can I find some good examples of listening to AMI events via PHP & how to listen to a specific event?
hi, it will help you .. http://www.micpc.com/eventmonitor/ On Fri, Feb 24, 2012 at 9:38 AM, Ast Coder <asteriskcoding at gmail.com> wrote:> Hi everyone, > > I got HTTP AMI working fine here. For example this dials 1-415-999-8888and then sends to Extension 9999 at from-internal > : > > > http://192.168.0.100:8088/asterisk/manager?action=command&originate&DAHDI/g0/14159998888&extension&9999 at from-internal > > However, I want to have some control over this call. I want to be notified > the moment this call is hangup. I guess there would be a hangup event > generated. I am not sure if that would be done through action:waitevent? or > if there is another method. > > I am also looking for some php samples on listening for these events as I > am trying to create a Web GUI for a dialer that will allow me to show > status of a call in real-time like "Call In Progress", "Call Ended", etc... > > I see that too many events are generated and I am wondering if there is an > easy way of listening for a particular event? Would that be ActionID? if > so, how to use it? > > Thanks a lot > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Thanks and regards Virendra Bhati +91-8885268942 Software Engineer E-mail-: virbhati at gmail.com Skype id:- virbhati2 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120224/960cbd60/attachment.htm>