ossrs / srs-gb28181

GB28181 server based on SRS
https://ossrs.net
MIT License
83 stars 41 forks source link

GB28181: 连接大华的硬盘录像机 时间长了 会掉几路,重新注册就好了,srs上有没有能自动刷新注册的 #2467 #16

Open winlinvip opened 2 years ago

winlinvip commented 2 years ago

描述(Description)

描述你遇到了什么问题(Please description your issue here)

  1. SRS版本(Version): feature/gb28181
  2. SRS的日志如下(Log):
  3. SRS的配置如下(Config):
    
    # main config for srs.
    # @see full.conf for detail config.

listen 1935; max_connections 1000; srs_log_tank file; srs_log_file ./objs/srs.log; daemon on;

http_api { enabled on; listen 1985; }

http_server { enabled on; listen 8080; dir ./objs/nginx/html; }

stats { network 0; }

stream_caster { enabled on; caster gb28181; output rtmp://127.0.0.1:1935/live/[stream];

listen              9000;

tcp_enable            on;

rtp_port_min        58200;

rtp_port_max        58300;

wait_keyframe       on;

rtp_idle_timeout    30;

audio_enable        off;

jitterbuffer_enable  off;

host       192.168.1.5;

auto_create_channel   off;

sip {
    enabled on;

    listen              5060;

    serial              34020000002000000001;

    realm               3402000000;

    ack_timeout         30;

    keepalive_timeout   120;

    auto_play           on;

    invite_port_fixed     on;

    query_catalog_interval  60;
}

}

rtc_server { enabled on;

listen          8000;

candidate       192.168.1.5;

}

vhost defaultVhost {

rtc {
    enabled     on;
    bframe      discard;
}

hls {
    enabled         on;
    hls_path        ./objs/nginx/html;
    hls_fragment    10;
    hls_window      60;
}

http_remux {
    enabled     on;
    mount       [vhost]/[app]/[stream].flv;
}

}



**重现(Replay)**

> 重现Bug的步骤(How to replay bug?)
 运行时间长了 通道就掉线了

**期望行为(Expect)**

> 有啥配置可以重新自动注册下,或者怎样能解决不稳定的情况