Open phoenixZZZ opened 1 year ago
The reason for this problem is that Ubuntu 20.04 by default enables IPV6, but SRS does not support IPV6 address resolution. Temporary solution:
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
However, it is still hoped that SRS can support IPV6 access as soon as possible, not just limited to IPV4.
TRANS_BY_GPT3
Thank you for the answer, @phoenixZZZ.
Do GB devices need to support IPv6? Let's discuss whether local network IPv6 is sufficient.
TRANS_BY_GPT3
I took a look and found that Hikvision's devices now support IPv6. However, I have never used it before, so I'm checking out other people's feedback.
TRANS_BY_GPT3
You can see from the logs that the IP address included in the address provided for device registration has now become IPv6.
http://2408:8210:30:9071:7e8a:e1ff:fed7:54ea/sip:34020000002000000001@3402000000
This feature is not initiated by the hardware, but rather Ubuntu 20 has enabled the use of IPv6 by default. If IPv6 is not disabled during deployment, there will be a default IPv6 address present.
The devices I am using are not from Hikvision, but rather I am testing Dahua cameras and some camera modules. They do not recognize IPv6 addresses, so device registration is not functioning properly. Testing is being conducted in a local area network environment.
TRANS_BY_GPT3
In this case, considering the compatibility of old devices, should we proactively disable IPv6 instead of supporting it, right?
TRANS_BY_GPT3
Hmm, but the best solution is not to disable IPv6 at the system level, but to handle it in SRS: Only use IPv4 addresses and not IPv6; if there is no IPv4 in the system, SRS will throw an exception and require user intervention.
Is this approach better?
TRANS_BY_GPT3
Description
Please description your issue here
SRS Version: docker-srs:registry.cn-hangzhou.aliyuncs.com/ossrs/srs:5
SRS Log:
Replay
Please describe how to replay the bug?
Step 1: Run docker using the image of SRS5 to test GB28181.
Step 2: Errors were encountered during both bench testing and real machine testing. Here is the execution of bench.
Expect
Expected to successfully register the GB28181 device, but encountered the error "Resource temporarily unavailable". Has anyone encountered this issue before? Please help with a solution.
TRANS_BY_GPT3