Asterisk send data to Web application


#42

Up - the device has been answered. When in the up state, media can flow bidirectionally between Asterisk and the device,

https://wiki.asterisk.org/wiki/display/AST/ARI+and+Channels%3A+Manipulating+Channel+State


#43

In NewChannel, it means that it was already in an answered state when the channel data structure was created.

It is much more likely that the actually agent answer will be on an existing channel and therefore on a NewState event. Also note that, if you already answered, for example to run an IVR, there will be no NewState for the caller, on agent answer, although there should be one for the agent and there should also be one corresponding to the bridging of the channels (I forget what this is called).

The full list of states will be in include/asterisk/channel.h.


#44

@ambiorixg12 @david551,

Than you for the quick reply… Ok I’ll be back.


#45

@ambiorixg12 @david551 @jcolp

I found out that when I pick up the phone or answer the incoming call, the “DialEnd” event is raised, my question for this which one should I use “DialEnd” or the “Newchannel” Event ? …

Thank you in advance.


#46

hi @jemz

i need to show the demo of asterisk response which you have implemented. can i see the demo or can i have your email please where i can contact with you. its urgent. :slight_smile:

Thanks in advance.


#47

You have to use AMI :slight_smile:


#48

i tried different packages like PAMI, Voip etc. i get the response. but the problem which i faced is that how can i push new response in my existing response and how to use this response. if you have any reference please share.


#49


i just get response for the first time. after that i couldn’t get any further response.


#50

I used node.js. With it i created server-client application. Server part are doing two things, 1- create websocket for incoming connections from clients (webbrowsers) and connect to AMI and react on specific events. Client parts are node.js which connect to websocket which created by server and this is how it was look like.


#51