sipster
sipster copied to clipboard
Unable to configure RTP port range
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?
Running into the same problem...
The RTP port range is configurable. You need to pass port
and portRange
in the transport config.
The RTP port range is configurable. You need to pass
port
andportRange
in the transport config.
how to do this in node.js with your sipster?