| | |
| | | @GetMapping("/server_config") |
| | | public JSONObject serverConfig() { |
| | | JSONObject result = new JSONObject(); |
| | | result.put("deviceIp", sipConfig.getIp()); |
| | | result.put("deviceIp", sipConfig.getShowIp()); |
| | | result.put("devicePort", sipConfig.getPort()); |
| | | result.put("username", sipConfig.getId()); |
| | | result.put("password", sipConfig.getPassword()); |
| | |
| | | if (parentPlatformCatch == null) { |
| | | throw new ControllerException(ErrorCode.ERROR100.getCode(), "平台不存在"); |
| | | } |
| | | parentPlatform.setEnable(false); |
| | | storager.updateParentPlatform(parentPlatform); |
| | | // 发送离线消息,无论是否成功都删除缓存 |
| | | try { |
| | | commanderForPlatform.unregister(parentPlatform, parentPlatformCatch.getSipTransactionInfo(), (event -> { |