diff --git a/src/media/audio/audio_rtp_session.h b/src/media/audio/audio_rtp_session.h index b60081bbf4c3c95298965f85eec7fad07265da84..c00fb8d3959e14f8cc633cad7abcc7ee45e0f3a5 100644 --- a/src/media/audio/audio_rtp_session.h +++ b/src/media/audio/audio_rtp_session.h @@ -41,8 +41,8 @@ class AudioRtpSession : public RtpSession { AudioRtpSession(const std::string& id); virtual ~AudioRtpSession(); - void start(std::unique_ptr<IceSocket> rtp_sock = nullptr, - std::unique_ptr<IceSocket> rtcp_sock = nullptr) override; + void start(std::unique_ptr<IceSocket> rtp_sock, + std::unique_ptr<IceSocket> rtcp_sock) override; void restartSender() override; void restartReceiver() override; void stop() override; diff --git a/src/media/rtp_session.h b/src/media/rtp_session.h index 6206181e0abfe142f7fb8bed1ab5b277581a3eac..2a80154ccdc6942be6e1c71069a84d559c56daa2 100644 --- a/src/media/rtp_session.h +++ b/src/media/rtp_session.h @@ -31,13 +31,15 @@ namespace ring { +class IceSocket; + class RtpSession { public: RtpSession(const std::string &callID) : callID_(callID) {} virtual ~RtpSession() {}; - virtual void start(std::unique_ptr<IceSocket> rtp_sock = nullptr, - std::unique_ptr<IceSocket> rtcp_sock = nullptr) = 0; + virtual void start(std::unique_ptr<IceSocket> rtp_sock, + std::unique_ptr<IceSocket> rtcp_sock) = 0; virtual void restartSender() = 0; virtual void restartReceiver() = 0; virtual void stop() = 0; diff --git a/src/media/video/video_rtp_session.h b/src/media/video/video_rtp_session.h index 724aee0efebcec1c138277d3de77a2e1bce79661..9c324e223de6806db9351add6312f940059539a3 100644 --- a/src/media/video/video_rtp_session.h +++ b/src/media/video/video_rtp_session.h @@ -59,8 +59,8 @@ public: const DeviceParams& localVideoParams); ~VideoRtpSession(); - void start(std::unique_ptr<IceSocket> rtp_sock = nullptr, - std::unique_ptr<IceSocket> rtcp_sock = nullptr) override; + void start(std::unique_ptr<IceSocket> rtp_sock, + std::unique_ptr<IceSocket> rtcp_sock) override; void restartSender() override; void restartReceiver() override; void stop() override; diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp index 5d6187475a6cccb517d0202975af6e139b0dc1e4..29e48611f397f81afe884cd216ce3ac291d17d12 100644 --- a/src/sip/sipcall.cpp +++ b/src/sip/sipcall.cpp @@ -861,7 +861,7 @@ SIPCall::startAllMedia() newIceSocket(ice_comp_id + 1)); ice_comp_id += 2; } else - rtp->start(); + rtp->start(nullptr, nullptr); } switch (local.type) {