[Pkg-voip-commits] [janus] 138/282: Fixed broken enforcement of new RTP/RTCP range in NoSIP plugin

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit 3b77505325a12ed3dbd7114121445c01550966d0
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Fri Oct 20 15:30:07 2017 +0200

    Fixed broken enforcement of new RTP/RTCP range in NoSIP plugin
---
 plugins/janus_nosip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/janus_nosip.c b/plugins/janus_nosip.c
index 2a94a5a..a1c1330 100644
--- a/plugins/janus_nosip.c
+++ b/plugins/janus_nosip.c
@@ -1610,7 +1610,7 @@ static int janus_nosip_allocate_local_ports(janus_nosip_session *session) {
 				JANUS_LOG(LOG_ERR, "Error creating audio sockets...\n");
 				return -1;
 			}
-			int rtp_port = g_random_int_range(10000, 60000);	/* FIXME Should this be configurable? */
+			int rtp_port = g_random_int_range(rtp_range_min, rtp_range_max);
 			if(rtp_port % 2)
 				rtp_port++;	/* Pick an even port for RTP */
 			audio_rtp_address.sin_family = AF_INET;
@@ -1659,7 +1659,7 @@ static int janus_nosip_allocate_local_ports(janus_nosip_session *session) {
 				JANUS_LOG(LOG_ERR, "Error creating video sockets...\n");
 				return -1;
 			}
-			int rtp_port = g_random_int_range(10000, 60000);	/* FIXME Should this be configurable? */
+			int rtp_port = g_random_int_range(rtp_range_min, rtp_range_max);
 			if(rtp_port % 2)
 				rtp_port++;	/* Pick an even port for RTP */
 			video_rtp_address.sin_family = AF_INET;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list