what is default rtp port range

2,320 views
Skip to first unread message

Metehan Metin

unread,
Dec 8, 2017, 6:42:25 AM12/8/17
to meetecho-janus
I was checking janus.plugin.sip.cfg file and i saw this lines at below

;Range of ports to use for RTP/RTCP (default=10000-60000)
rtp_port_range = 20000-40000

I just set up janus v0.2.5 and i didn't change anything.
i confused which one is default 10000-60000 or 20000-40000


Mirko Brankovic

unread,
Dec 8, 2017, 7:30:20 AM12/8/17
to meetecho-janus
I guess the janus.cfg is important one, so [media] section

[media]
;rtp_port_range = 20000-40000
but if you don't get anything set, I guess, jugging by the comment, a full range of 0 to 65535 will be used 

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko

Metehan Metin

unread,
Dec 8, 2017, 8:21:03 AM12/8/17
to meetecho-janus


8 Aralık 2017 Cuma 15:30:20 UTC+3 tarihinde Mirko Brankovic yazdı:
I guess the janus.cfg is important one, so [media] section

[media]
;rtp_port_range = 20000-40000
but if you don't get anything set, I guess, jugging by the comment, a full range of 0 to 65535 will be used 
On Fri, Dec 8, 2017 at 12:42 PM, Metehan Metin <mete...@gmail.com> wrote:
I was checking janus.plugin.sip.cfg file and i saw this lines at below

;Range of ports to use for RTP/RTCP (default=10000-60000)
rtp_port_range = 20000-40000

I just set up janus v0.2.5 and i didn't change anything.
i confused which one is default 10000-60000 or 20000-40000


--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko

In fact i am living one way audio problem some calls(not every call). My sip santral rtp port range is between 10000-12000.
 i think problem causing because of this. I want to be sure janus and my sip santral using same rtp port range for media.
Do u know how can i check which rtp port is using for media in a call?(Should i look janus gateway logs?)

Mirko Brankovic

unread,
Dec 8, 2017, 8:40:10 AM12/8/17
to meetecho-janus
From browser point of view, easiest is to use chrome://webrtc-internals/
and look for the:
Conn-audio-1-0 (googCandidatePair)

There will be more than 1-0, for each candidate one, but bolded should be the active one that is sending and receiving packets

To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko
Message has been deleted

Metehan Metin

unread,
Dec 8, 2017, 9:41:16 AM12/8/17
to meetecho-janus


8 Aralık 2017 Cuma 16:40:10 UTC+3 tarihinde Mirko Brankovic yazdı:

I checked Conn-audio-1-0 (googCandidatePair) and i saw <janus_gw_ip>:40593(etc.)
Then i changed janus.plugin.sip.cfg rtp_port_range = 1000-12000 and didn't change anything.

But when i tried Janus.cfg [media] rtp_port_range = 1000-12000, it worked.
The port was <janus_gw_ip>:10000. I hope it fixes my one way audio problem.

Thanks for Help  Mirko

Mirko Brankovic

unread,
Dec 8, 2017, 11:24:52 AM12/8/17
to meetecho-janus
Np hope it helped ;)

To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.

Lorenzo Miniero

unread,
Dec 11, 2017, 5:30:18 AM12/11/17
to meetecho-janus
I think you guys are talking of different things, since the SIP plugin was mentioned. When the SIP plugin is used, there are two different RTP ranges: the one for WebRTC users, and the one for RTP on the SIP side. They are NOT the same thing. You configure the former in janus.cfg, and the latter in janus.plugin.sip.cfg. The default for both, when nothing is specified, is "use whatever port is available", or whatever the OS is configured to return when asking for a random port.

L.
Message has been deleted

Metehan Metin

unread,
Dec 11, 2017, 7:46:00 AM12/11/17
to meetecho-janus


11 Aralık 2017 Pazartesi 13:30:18 UTC+3 tarihinde Lorenzo Miniero yazdı:

I tought SIP and Webrtc ports configuring  janus.cfg . In fact i want to configure sip rtp ports. Because i am living one way audio problem.
Should i change  janus.plugin.sip.cfg for sip ports ?
Also could i check with admin api which sip ports using for media  ?

Lorenzo Miniero

unread,
Dec 11, 2017, 8:33:31 AM12/11/17
to meetecho-janus
Il giorno lunedì 11 dicembre 2017 13:46:00 UTC+1, Metehan Metin ha scritto:

I tought SIP and Webrtc ports configuring  janus.cfg . In fact i want to configure sip rtp ports. Because i am living one way audio problem.
Should i change  janus.plugin.sip.cfg for sip ports ?


Yes.

 
Also could i check with admin api which sip ports using for media  ?


No, you won't find info on those ports in the Admin API, as it's a plugin specific thing and the SIP plugin doesn't add them. If you want that, you'll have to modify the query_session callback in the SIP plugin code so that the ports are listed too.

L. 

Mirko Brankovic

unread,
Dec 11, 2017, 8:43:12 AM12/11/17
to meetecho-janus
Just do the tcpdump or ngrep and see what was negotiated

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.

Metehan Metin

unread,
Dec 12, 2017, 9:10:01 AM12/12/17
to meetecho-janus


11 Aralık 2017 Pazartesi 16:33:31 UTC+3 tarihinde Lorenzo Miniero yazdı:

I editted janus.sip.c. I added a log line.

https://github.com/metehanm4/janus-gateway/blob/master/plugins/janus_sip.c#L3520-L3522

I logged local_audio_rtp_port as error to see easly.

When i change janus.plugin.sip.cfg rtp port the local_audio_rtp_port was changeing.

Thanks for help Lorenzo
Reply all
Reply to author
Forward
0 new messages