How to get the caller number with java application

trixboxFun
Posts: 2
Member Since:
2010-12-24

Hi,
I installed trixbox2.8. I want, when i have an incoming call, connect to asterisk and get the caller number with java application. I use asterisk-java api and i connect to asterisk successfully but i don't know how get the caller number.
And I don't know how to get other informations from MySQL.



SkykingOH
Posts: 9675
Member Since:
2007-12-17
Your question does not have

Your question does not have an answer. If you are connected to the Asterisk API via your java connector you should have access to all call events.

Have you read the Asterisk documentation? www.asteriskdocs.org ?

What information do you want from the SQL database? It does not store any real time information, just configuration. To familiarize yourself with the schema install myphpsqladmin package and you can browse the databases and tables.

--

Scott

aka "Skyking"



trixboxFun
Posts: 2
Member Since:
2010-12-24
OK thank u, 1- For mysql, i

OK thank u,
1- For mysql, i have connected to the server and see all data saved in databases of trixbox.
2- I simulate an incoming call to asterisk by dialing 7777 and i forward the call to an internal extension, but the incoming call don't have an DID number,is-it possible to simulate an incoming call with a DID number?
and, in my opinion, i have to use server/client socket to see the trafic in asterisk ? what do you think?

thx



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.