-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
GB: The camera's SIP-related information has been configured, but it cannot go online properly. #3300
Comments
Use go test, after starting, SRS exits directly.
SRS log
|
The SIP server ID can currently be ignored. You should try switching to the gb-2016 version, as the 2011 version is currently not supported.
|
srs-bench will cause SRS to crash because the packet is too small, and when reserved overlaps, memcpy cannot be used, memmove should be used instead. srs_error_t SrsLazyGbMediaTcpConn::do_cycle() {
uint32_t reserved = 0;
for (;;) {
uint16_t length = 0; // If it's 30
if ((err = conn_->read_fully(buffer_ + reserved, length, NULL)) != srs_success) {
reserved = b.left(); // If it's 20
if (reserved) {
b.read_bytes((char*)buffer_, reserved); // Crash here.
pack_->media_reserved_++;
} When this situation occurs, int length = 30;
char buffer[length];
char* p = buffer + 10;
int reserved = 20;
memcpy(buffer, p, reserved); Solution: Changing it to Once again, thanks to @chen-guanghua for introducing the asan tool, which helped uncover many potential issues.
|
@hlmyq What system is your SRS server running on? Ubuntu20? Or CentOS7? Did you compile SRS yourself?
|
Using CentOS, I compiled SRS myself and enabled the GB28181 protocol.
Winlin ***@***.***> wrote on Thursday, December 15, 2022 at 19:23:
@hlmyq <https://github.com/hlmyq>
What kind of SRS server are you using? Ubuntu 20? Or CentOS? Did you compile SRS yourself?
—
Reply to this email directly, view it on GitHub
<#3300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQXU2NBN6X5XORWXCRIELDWNL5RPANCNFSM6AAAAAAS3WG6FA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
`TRANS_BY_GPT3`
|
I'll take a look at the GB version.
Haibo Chen ***@***.***> wrote on Wednesday, December 14, 2022, at 10:26 AM:
The SIP server ID can currently be ignored. Try switching to the GB-2016 version, as the 2011 version is not supported at the moment.
—
Reply to this email directly, view it on GitHub
<#3300 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQXU2NY4G7Z5ETKYLR4B3DWNEV6BANCNFSM6AAAAAAS3WG6FA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
`TRANS_BY_GPT3`
|
Description
Set up a server on the national standard camera.
Default SIP server ID:
34020000002000000001
SIP domain:
3402000000
Camera number:
34020000001320000001
SRS Version:
xxxxxx
SRS/5.0.107(Bee)
SRS Log:
Replay (重现)
Please describe how to replay the bug? (重现Bug的步骤)
xxxxxx
xxxxxx
xxxxxx
Expect (Expected Behavior)
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: