On 26/09/2023 15:30, Duarte Rocha via sr-users wrote:
Thanks for the reply.
I want to be able to get different port ranges for some costumers
since some of them can only their firewall to a small destination port
range .
You could run multiple RTPEngine instances each using different RTP port
ranges and different control ports, and choose which rtpengine to use
based on your user requirements.
Example, the below would configure two rtpengine sets in Kamailio. One
which listens on control port localhost:12221 and one on localhost:12222
modparam("rtpengine", "rtpengine_sock","udp:localhost:12221=1
udp:localhost:12222=2")
Then in your routes use
set_rtpengine_set("1"); or set_rtpengine_set("2");
..to define which set this call should use.
In your rtpengine.conf, the two would be identical except fore the
following:
_*rtpengine-01:*_
listen-ng = 127.0.0.1:12221
port-min = 10000
port-max = 20000
_*rtpengine-02:*_
listen-ng = 127.0.0.1:12222
port-min = 20001
port-max = 30000
-Barry Flanagan