From 89a525b798faa8da871a7b4a1798c6e8d0d24354 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 20 May 2012 16:37:27 +0200 Subject: [PATCH] Only receive RTP audio data, if connected to remote. --- sip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sip.cpp b/sip.cpp index 5358fb4..ee455a8 100644 --- a/sip.cpp +++ b/sip.cpp @@ -285,7 +285,8 @@ static int rtp_sock_callback(struct lcr_fd *fd, unsigned int what, void *instanc // psip->rtp_shutdown(); return len; } - rc = rtp_decode(psip, buffer, len); + if (psip->p_s_rtp_is_connected) + rc = rtp_decode(psip, buffer, len); } return rc; -- 2.13.6