Re: [Asterisk-java-users] API Capabilities
Brought to you by:
srt
From: Albert B. <ape...@gm...> - 2012-07-16 13:17:34
|
Hi, reading your explanation I think that what you need is to integrate the AMI interface to your system. AMI stands for Asterisk Manager Interface. This interface let your app connect to an Asterisk server and start getting events on different call status ( NewChannel, SetVariable, Hangup, etc ) for you to store and do what you need with them. Through AMI you can also originate calls by bridging channels initiated by you. AMI together with AGI is the best way to implement almost any application. Albert. 2012/7/14 Jeremy Schaeffer <je...@ph...> > I ran across asterisk-java looking for a solution. Looking at the > example and javadoc it looks like it can do what I am looking to do, but > want to post the application and see if there are any thoughts. I have a > java call accounting program that I have been working on for over 4 > years and it functions well. It uses mysql for data storage and > integrates with our current pbx. We are moving to a different platform > that I am using a asterisk box to proxy our trunks (PRI and sip) to two > different ip/pri pbx's that we sell. Asterisk does the job, but what I > would like to do in integrate my current java application to asterisk to > provide call accounting information as well as call control. Basically I > would like the asterisk box (with java) to take the incoming call, > lookup the incoming call by its dnis (number dialed) by looking the > number up in a mysql database (db access I know in java) and then tell > asterisk what sip trunk (or pri) to route the call to (another pbx). And > in the reverse, receive the call from the other pbx's and route the call > base on who the call came from (based on outbound caller id, another > mysql lookup) possibly change the caller id, and then send the call over > the pri or ip trunk selected. All the while writing the call information > (numbers, start time, end time, trunks involved, call direction, etc...) > to another mysql database table. Would this java api be able to perform > those functions? By the example it looks like I can have my java app > handle the call and move it to the proper place, but does the thread > drop once it connects the call or does it hold on or can I put a hook > (or listener) in so I can write the call information to the database > after the call terminates? I have been working with java for quite some > time but I am very new to asterisk, I am not sure if I should just do > this using asterisk natively or use java-asterisk where I am more > familiar with the java programming api. Thanks for the input!! - Jeremy > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- (@_@) There are only 10 types of people in the world: Those who understand binary and those who don't @apetob at Twitter |