ajhua camera can not connect to srs
!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized
the Ask AI feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or
questions that are overly simple or already addressed in the documentation will be removed without any
response.
Describe the bug ajhua camera can not connect to srs
Version SRS/6.0.134(Hang), MIT -- Windows Platform
To Reproduce Steps to reproduce the behavior:
- DownLoad and Install SRS-Windows-x86_64-6.0-d6-setup.exe
- Modify configuration file /conf/push.gb28181.conf
listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;
stream_caster {
enabled on;
caster gb28181;
output rtmp://127.0.0.1/live/[stream];
listen 9000;
# Deprecated config, moved to sip.candidate, see gb28181.conf
# @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
host 192.168.2.47;
sip {
enabled on;
listen 5060;
serial 61030000002001000001;
realm 6103000000;
ack_timeout 30;
keepalive_timeout 120;
#print_sip_message on;
auto_play on;
candidate 192.168.2.47;
}
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
http_api {
enabled on;
listen 1985;
}
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 192.168.2.47;
}
vhost __defaultVhost__ {
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;
}
}
-
Start SRS Service
-
Configure camera
5.View Results
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
The server currently only supports SIP over TCP, and it appears that your device does not support this.
TRANS_BY_GPT4
You should use external SIP server (like srs-sip or other GB28181 SIP servers) and configure SRS to only handle media relay:
- Use external SIP server to handle device registration and signaling (supports UDP)
- External SIP server creates media streams to SRS via HTTP API (
POST /gb/v1/publish/) - SRS receives PS/RTP media over TCP and converts to RTMP
Verdict: This is a known limitation, not a bug. SRS currently only supports GB28181 media transport, not full SIP protocol stack with UDP support.