[Asterisk-java-users] Intergrating DefaultAsteriskManager
Brought to you by:
srt
From: Jan E. <jan...@pl...> - 2005-07-06 08:44:55
|
Hi, I started looking at Asterisk-Java a few days ago and so far it looks like a really capable library. It has saved me from doing the low level AMI stuff manually and that's really great. I'm looking at using DefaultAsteriskManager in my test applications, and was wondering how others that use it have done the integration into their own apps. The DefaultAsteriskManager takes care of most/all(?) events behind the scenes and my application really doesn't know what a new channel is created or a hangup happens. What is the preferred way of performing this "information gathering" without constantly polling DefaultAsteriskManager? Somehow I'd like the information to progress up the food chain. One solution could be to override the event handlers in DefaultAsteriskManager that I'm interested in and then just call the method i DefaultAsteriskManager to do the real work. This isn't too good as the methods in DefaultAsteriskManager can fail silently without any trace except a log message. Also DefaultAsteriskManager doesn't handle all events sent by Asterisk, they are just logged and then ignored, and I'd optionally have to react to some of those too. Bottom line is that Asterisk-Java seems like a really nice piece of work, I just don't yet know how to use it properly. Oh, I use the 0.1 version. Best regards, Jan Ekholm -- Jan Ekholm jan...@pl... |