We’re building a call center based on Asterisk. We need to monitor extension status (aka, busy, available etc). I know this can be done using jabber. But can we just write a java programm at asterisk server side to achieve this? How does the program get the ext status from asterisk?
One way is to listen for events on the * ami interface, see asterisk-java.org/development/tutorial.html , section “Hello Events!”.
BTW, we’re going to have java program at extension side (on a windows pc) to do popups. It registers for the event “incoming call”. My question is that when a call comes in, will the incoming call event be delivered to every java (assoicated with each extension), or just the one that the call is made to?
Every client connected to the ami interface should get all events (in manager.conf, for a client, you can enable/disable the event types it receives).