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