Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred when running gb28181 with internal SIP closed. #3733

Open
CNPolaris opened this issue Jul 28, 2023 · 2 comments
Open

Error occurred when running gb28181 with internal SIP closed. #3733

CNPolaris opened this issue Jul 28, 2023 · 2 comments
Assignees
Labels
GB28181 For GB28181. TransByAI Translated by AI/GPT.

Comments

@CNPolaris
Copy link

CNPolaris commented Jul 28, 2023

Note: Please read FAQ before file an issue, see #2716

Description

When using the internal SIP of SRS and only forwarding PS streams, SRS will start with an error.

  1. SRS Version:6
    2

  2. SRS Config:

listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;

stream_caster {
    enabled on;
    caster gb28181;
    output rtmp://10.10.1.111:1935/live/[stream];
    listen 9000;
    tcp_enable  on;
    sip {
        enabled off;
        listen 5060;
                serial  34020000002000000001;
                auto_play       on;
        # @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
        candidate 10.10.1.111;
    }
}

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

http_api {
    enabled on;
    listen 1985;
        crossdomain     on;
        raw_api {
        # whether enable the HTTP RAW API.
        # default: off
        enabled             off;
        # whether enable rpc reload.
        # default: off
        allow_reload        off;
        # whether enable rpc query.
        # default: off
        allow_query         off;
        # whether enable rpc update.
        # default: off
        allow_update        off;
    }
}
stats {
    network 0;
}
rtc_server {
    enabled on;
    listen 8000; # UDP port
    # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
    candidate 10.10.1.111;
}

vhost __defaultVhost__ {
    tcp_nodelay     on;
    min_latency     on;
    
    play {
        gop_cache       off;
        queue_length    10;
        mw_latency      100;
    }

    publish {
        mr off;
    }
    rtc {
        enabled on;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
        rtmp_to_rtc on;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
        rtc_to_rtmp on;
    }
    http_remux {
        enabled on;
        mount [vhost]/[app]/[stream].flv;
    }
    hls {
        enabled on;
    }
        dvr {
        enabled      on;
        dvr_path     /root/srs-video/[app]/[stream]/[stream].[timestamp].mp4;
        dvr_plan     session;
    }
}

Replay

When using the internal SIP of SRS and only forwarding PS streams, SRS will encounter an error during startup.

Expect

How to integrate a custom SIP system with SRS to achieve PTZ control for GB28181?

TRANS_BY_GPT3

@winlinvip winlinvip changed the title gb28181关闭内部sip时运行报错 Error occurred when running gb28181 with internal SIP closed. Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
@winlinvip winlinvip self-assigned this Apr 3, 2024
@winlinvip winlinvip added the GB28181 For GB28181. label Apr 3, 2024
@winlinvip
Copy link
Member

winlinvip commented Apr 3, 2024

To support external SIP and disable SRS SIP, it will be supported by this pullrequest #3384, which is under testing and needs help from you.

@duiniuluantanqin
Copy link
Member

SRS decouples the signaling service from the streaming media service, so you can simply treat SRS as a streaming media server. Additionally, I have implemented a simple signaling service, which you can find in the trunk/3rdparty/gb28181-server directory.

You can conduct the test and provide me with feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GB28181 For GB28181. TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants