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

GB28181:注销时未及时删除流通道SrsGb28181Manger::delete_stream_channel #2224 #25

Open
winlinvip opened this issue Jan 5, 2022 · 0 comments
Assignees

Comments

@winlinvip
Copy link
Member

描述(Description)

28181注销register(expire=0)时,没有及时清理设备流通道,导致连接两次注册推流间隔太短的话,jitterbuffer报错

  1. SRS版本(Version): 4.0release; develop;

期望行为(Expect)

--- a/trunk/src/app/srs_app_gb28181_sip.cpp
+++ b/trunk/src/app/srs_app_gb28181_sip.cpp
@@ -134,6 +134,9 @@ void SrsGb28181SipSession::destroy()
     //destory all device
     std::map<std::string, SrsGb28181Device*>::iterator it;
     for (it = _device_list.begin(); it != _device_list.end(); ++it) {
+        std::string chid = it->first;
+        _srs_gb28181->delete_stream_channel(_session_id, chid);
+
         srs_freep(it->second);
     }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants