use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ConnectionManager method getUsers.
public void getUsers(GetAllUsersCommand prc) {
Client c = manager.getESLClient();
if (c.canSend()) {
EslMessage response = c.sendSyncApiCommand(prc.getCommand(), prc.getCommandArgs());
prc.handleResponse(response, conferenceEventListener);
}
}
use of org.freeswitch.esl.client.inbound.Client in project openhab1-addons by openhab.
the class FreeswitchBinding method connect.
/**
* Connect inbound client to freeswitch
*
* @throws InboundConnectionFailure
*/
private void connect() throws InboundConnectionFailure {
disconnect();
logger.debug("Connecting to {} on port {} with pass {}", host, port, password);
inboudClient = new Client();
inboudClient.connect(host, port, password, 10);
inboudClient.addEventListener(this);
inboudClient.setEventSubscriptions("plain", String.format("%s %s %s", CHANNEl_CREATE, CHANNEL_DESTROY, MESSAGE_WAITING));
logger.debug(String.format("Connected"));
initMessageItems();
}
Aggregations