[Asterisk-java-users] Channels in asterisk
Brought to you by:
srt
From: Paulo V. J. <pau...@po...> - 2006-09-01 16:32:22
|
Hi, I'd like get a list of channels in a asterisk server, like command ( show channels concise ). I made a class that implements ManagerResponseHandler and I passed this with the command to the manager. ManagerResponse originateResponse; CommandAction action = new CommandAction(); action.setCommand("show channels concise"); managerConnection.login(); MyResponseHandler responseHandler = new MyResponseHandler(); managerConnection.sendAction(action, responseHandler); In MyResponseHandle --> handleResponse(); I made the treatment and create the list of channels. My question is: is there another easy way to get the list of channels in a server? Thanks. |