Anyone got an example of the sendAction in Java ? I’ve searched all the sites etc, I would like to list all the current active channels. “show channels verbose”…
//managerConnection.addEventHandler(new net.sf.asterisk.manager.event.DialEvent(){});
// connect to Asterisk and log in
managerConnection.login();
// send the originate action and wait for a maximum of 30 seconds for Asterisk
// to send a reply
originateResponse = managerConnection.sendAction(originateAction, 30000);
The sendAction method requires a OriginateAction reference and not String reference