sipster icon indicating copy to clipboard operation
sipster copied to clipboard

Unable to configure RTP port range

Open mgoga opened this issue 8 years ago • 3 comments

With sipster/pjsip sucessfully installed I would like to follow through the basic sipster example and record the sound from a sip connection to that sip server. Now if I run this on a local arch linux machine the sound gets recorded fully, but if I do the same on a docker machine, that I start with

docker run -p 5060:5060/udp -it myContainer

the SIP connection works, but there is no sound recorded.

A friend told me that SIP uses RTP for sound transport and that this protocol binds UDP ports from 16384 to 32767.

Now if I do

docker run -p 5060:5060/udp -p 16384-32767:16384-32767/udp -it myContainer

this takes ages and crashes eventually.

Is there a way to narrow down the RTP port range in sipster or pjsip?

mgoga avatar Nov 08 '16 09:11 mgoga

Running into the same problem...

IwanLD avatar Nov 11 '16 20:11 IwanLD

The RTP port range is configurable. You need to pass port and portRange in the transport config.

mscdex avatar Nov 11 '16 20:11 mscdex

The RTP port range is configurable. You need to pass port and portRange in the transport config.

how to do this in node.js with your sipster?

figozhu avatar Dec 23 '18 11:12 figozhu