Up - the device has been answered. When in the up state, media can flow bidirectionally between Asterisk and the device,
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.
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.
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.
Thanks in advance.
You have to use AMI
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.
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.