For a list of supported commands type help
on Asterisk's command line.
In response to a CommandAction you will receive a CommandResponse that contains the CLI output.
Example:
CommandAction commandAction = new CommandAction("iax2 show peers"); CommandResponse response = (CommandResponse) c.sendAction(commandAction); for (String line : response.getResult()) { System.out.println(line); }Where
c
is an instance of {@link org.asteriskjava.manager.ManagerConnection}.
@author srt
@version $Id$
@see org.asteriskjava.manager.response.CommandResponse
|
|