- fix type
- bind only to localhost
This commit is contained in:
parent
7b2d02d07d
commit
0d96ec7563
@ -115,7 +115,7 @@ public class FreeswitchConferenceEventListener implements ConferenceEventListene
|
||||
FreeswitchStatusReplyEvent evt = (FreeswitchStatusReplyEvent) event;
|
||||
vcs.freeswitchStatusReplyEvent(evt.sendCommandTimestamp,
|
||||
evt.status,
|
||||
evt.receivedResponsTimestatmp);
|
||||
evt.receivedResponseTimestamp);
|
||||
} else if (event instanceof FreeswitchHeartbeatEvent) {
|
||||
FreeswitchHeartbeatEvent hbearEvt = (FreeswitchHeartbeatEvent) event;
|
||||
vcs.freeswitchHeartbeatEvent(hbearEvt.heartbeat);
|
||||
|
@ -6,14 +6,14 @@ public class FreeswitchStatusReplyEvent extends VoiceConferenceEvent {
|
||||
|
||||
public final List<String> status;
|
||||
public Long sendCommandTimestamp;
|
||||
public Long receivedResponsTimestatmp;
|
||||
public Long receivedResponseTimestamp;
|
||||
|
||||
public FreeswitchStatusReplyEvent(Long sendCommandTimestamp,
|
||||
List<String> status,
|
||||
Long receivedResponsTimestatmp) {
|
||||
Long receivedResponseTimestamp) {
|
||||
super("unused");
|
||||
this.status = status;
|
||||
this.sendCommandTimestamp = sendCommandTimestamp;
|
||||
this.receivedResponsTimestatmp = receivedResponsTimestatmp;
|
||||
this.receivedResponseTimestamp = receivedResponseTimestamp;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,6 @@ public class CheckFreeswitchStatusCommand extends FreeswitchCommand {
|
||||
private static Logger log = LoggerFactory.getLogger(CheckFreeswitchStatusCommand.class);
|
||||
|
||||
private long sendCommandTimestamp = 0L;
|
||||
private long receivedResponsTimestatmp = 0L;
|
||||
|
||||
public CheckFreeswitchStatusCommand(String room, String requesterId) {
|
||||
super(room, requesterId);
|
||||
@ -31,13 +30,12 @@ public class CheckFreeswitchStatusCommand extends FreeswitchCommand {
|
||||
}
|
||||
|
||||
public void handleResponse(EslMessage response, ConferenceEventListener eventListener) {
|
||||
receivedResponsTimestatmp = System.currentTimeMillis();
|
||||
Gson gson = new Gson();
|
||||
log.info(gson.toJson(response.getBodyLines()));
|
||||
FreeswitchStatusReplyEvent statusEvent = new FreeswitchStatusReplyEvent(
|
||||
sendCommandTimestamp,
|
||||
response.getBodyLines(),
|
||||
receivedResponsTimestatmp);
|
||||
System.currentTimeMillis());
|
||||
eventListener.handleConferenceEvent(statusEvent);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ redis {
|
||||
}
|
||||
|
||||
http {
|
||||
interface = "0.0.0.0"
|
||||
interface = "127.0.0.1"
|
||||
interface = ${?INTERFACE}
|
||||
port = 9000
|
||||
port = ${?PORT}
|
||||
|
Loading…
Reference in New Issue
Block a user