use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ConnectionManager method hangUp.
public void hangUp(DeskShareHangUpCommand huCmd) {
Client c = manager.getESLClient();
if (c.canSend()) {
System.out.println("ConnectionManager: send to FS: hangUp " + huCmd.getCommandArgs());
EslMessage response = c.sendSyncApiCommand(huCmd.getCommand(), huCmd.getCommandArgs());
huCmd.handleResponse(response, conferenceEventListener);
}
}
use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ConnectionManager method record.
public void record(RecordConferenceCommand rcc) {
Client c = manager.getESLClient();
if (c.canSend()) {
EslMessage response = c.sendSyncApiCommand(rcc.getCommand(), rcc.getCommandArgs());
rcc.handleResponse(response, conferenceEventListener);
}
}
use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ConnectionManager method broadcastRTMP.
public void broadcastRTMP(DeskShareBroadcastRTMPCommand rtmp) {
Client c = manager.getESLClient();
if (c.canSend()) {
System.out.println("ConnectionManager: send to FS: broadcastRTMP " + rtmp.getCommandArgs());
EslMessage response = c.sendSyncApiCommand(rtmp.getCommand(), rtmp.getCommandArgs());
rtmp.handleResponse(response, conferenceEventListener);
}
}
use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ExampleClient method do_connect.
public void do_connect() throws InterruptedException {
client = new Client();
client.addEventListener(new EslEventListener());
log.info("Client connecting ..");
try {
client.connect(host, port, password, 2);
} catch (InboundConnectionFailure e) {
log.error("Connect failed", e);
return;
}
log.info("Client connected ..");
//client.setEventSubscriptions( "plain", "heartbeat BACKGROUND_JOB CUSTOM" );
client.setEventSubscriptions("plain", "all");
client.addEventFilter("Event-Name", "heartbeat");
client.addEventFilter("Event-Name", "custom");
client.addEventFilter("Event-Name", "background_job");
}
use of org.freeswitch.esl.client.inbound.Client in project bigbluebutton by bigbluebutton.
the class ClientTest method do_multi_connects.
@Test
public void do_multi_connects() throws InterruptedException {
Client client = new Client();
log.info("Client connecting ..");
try {
client.connect(host, port, password, 2);
} catch (InboundConnectionFailure e) {
log.error("Connect failed", e);
return;
}
log.info("Client connected ..");
log.info("Client connecting ..");
try {
client.connect(host, port, password, 2);
} catch (InboundConnectionFailure e) {
log.error("Connect failed", e);
return;
}
log.info("Client connected ..");
client.close();
}
Aggregations