diff --git a/trunk/src/app/srs_app_gb28181.cpp b/trunk/src/app/srs_app_gb28181.cpp index d0110198c..bbcd78db6 100644 --- a/trunk/src/app/srs_app_gb28181.cpp +++ b/trunk/src/app/srs_app_gb28181.cpp @@ -1011,6 +1011,11 @@ std::string SrsGb28181RtmpMuxer::remote_ip() return ""; } +const SrsContextId& SrsGb28181RtmpMuxer::get_id() +{ + return _srs_context->get_id(); +} + std::string SrsGb28181RtmpMuxer::desc() { return "GBConn"; diff --git a/trunk/src/app/srs_app_gb28181.hpp b/trunk/src/app/srs_app_gb28181.hpp index 37e36418e..4793708b0 100644 --- a/trunk/src/app/srs_app_gb28181.hpp +++ b/trunk/src/app/srs_app_gb28181.hpp @@ -348,6 +348,7 @@ private: public: virtual srs_error_t cycle(); virtual std::string remote_ip(); + virtual const SrsContextId& get_id(); virtual std::string desc(); public: virtual srs_error_t on_rtp_video(SrsSimpleStream* stream, int64_t dts); diff --git a/trunk/src/app/srs_app_gb28181_sip.cpp b/trunk/src/app/srs_app_gb28181_sip.cpp index a1ca6c5a8..c03577a93 100644 --- a/trunk/src/app/srs_app_gb28181_sip.cpp +++ b/trunk/src/app/srs_app_gb28181_sip.cpp @@ -301,6 +301,11 @@ std::string SrsGb28181SipSession::remote_ip() return _peer_ip; } +const SrsContextId& SrsGb28181RtmpMuxer::get_id() +{ + return _srs_context->get_id(); +} + std::string SrsGb28181SipSession::desc() { return "SipConn"; diff --git a/trunk/src/app/srs_app_gb28181_sip.hpp b/trunk/src/app/srs_app_gb28181_sip.hpp index f4aa7432e..6e5eb393d 100644 --- a/trunk/src/app/srs_app_gb28181_sip.hpp +++ b/trunk/src/app/srs_app_gb28181_sip.hpp @@ -144,6 +144,7 @@ public: public: virtual srs_error_t cycle(); virtual std::string remote_ip(); + virtual const SrsContextId& get_id(); virtual std::string desc(); private: virtual srs_error_t do_cycle();