Compare commits

...

4 Commits

Author SHA1 Message Date
好青年_GEILIVABLE
f8d65887c8
Pre Merge pull request !38 from 好青年_GEILIVABLE/N/A 2025-04-22 03:24:33 +00:00
lin
a433003f74 增加异常处理 2025-04-22 11:24:20 +08:00
lin
dd32f4b07a 增加sip信令超时时间 2025-04-22 09:52:31 +08:00
好青年_GEILIVABLE
ed7ff6db55
update docker/docker-compose.yml.
Signed-off-by: 好青年_GEILIVABLE <420050757@qq.com>
2024-12-31 05:33:41 +00:00
3 changed files with 20 additions and 3 deletions

View File

@ -9,6 +9,16 @@ services:
environment:
TZ: "Asia/Shanghai"
command: redis-server /etc/redis/redis_default.conf --appendonly yes
mysql:
image: mysql:5.7
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: mysql@tafei
MYSQL_DATABASE: wvp2
LANG: C.UTF-8
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
wvp:
build:
context: ./wvp
@ -33,7 +43,7 @@ services:
environment:
TZ: "Asia/Shanghai"
# [必须修改] 本机的IP
WVP_HOST: 172.18.0.61
WVP_HOST: 111.67.197.136
WVP_PWD: aseqw_+hiy123
WVP_DOMAIN: 6101130049
WVP_ID: 61011300490000000001
@ -45,5 +55,8 @@ services:
WVP_JVM_CONFIG: -Xms128m -Xmx256m
ASSIST_CONFIG:
WVP_CONFIG:
DB_HOST: mysql
DB_PASSWORD: mysql@tafei
depends_on:
- redis
- mysql

View File

@ -27,12 +27,12 @@ public class SipConfig {
private String id;
private String password;
Integer ptzSpeed = 50;
Integer registerTimeInterval = 120;
private boolean alarm = false;
private long timeout = 500;
private long timeout = 1000;
}

View File

@ -2,6 +2,7 @@ package com.genersoft.iot.vmp.gb28181.service.impl;
import com.genersoft.iot.vmp.common.InviteSessionType;
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.conf.exception.ControllerException;
import com.genersoft.iot.vmp.conf.exception.ServiceException;
import com.genersoft.iot.vmp.gb28181.bean.*;
import com.genersoft.iot.vmp.common.enums.ChannelDataType;
@ -145,6 +146,9 @@ public class GbChannelPlayServiceImpl implements IGbChannelPlayService {
deviceChannelPlayService.play(channel, record, callback);
} catch (PlayException e) {
callback.run(e.getCode(), e.getMsg(), null);
} catch (ControllerException e) {
log.error("[点播失败] {}({}), {}", channel.getGbName(), channel.getGbDeviceId(), e.getMsg());
callback.run(Response.BUSY_HERE, "busy here", null);
} catch (Exception e) {
log.error("[点播失败] {}({})", channel.getGbName(), channel.getGbDeviceId(), e);
callback.run(Response.BUSY_HERE, "busy here", null);