I am assigned to write an application. It needs to get the caller phone number using ANI service. I am looking for an API to get the caller information using ANI.
Can I use Asterisk to get the caller number using ANI?
Does Asterisk work with all phone carriers and telephony products?
I am very new to this technology and Asterisk and appreciate your help,
So far, I found out two solutions (with a little bit programming).
Solution 1)
Connect to the Asterisk server IP port 5038 and listen to NEWCHANNEL events with an application.
Solution 2)
May be also you can configure your ATA so that it send new calls to any port on the PC connected to the ATA. Then you have write a dummy application server behaving like a mini-Asterisk (looping for waiting new calls events).
I did not try it ; but, my programmer’s backgroud tell me that it works. For doing that kind of programmation you need to have knowledge a little bit TCP/IP SOCKET programming in any programming language.