Is there a way to force the use of a specific RTP ports rang

Hello everyone,

Is there a way to force the use of a specific RTP ports range for a given trunk/provider?

I know my general RTP range is defined in the rtp.conf file, let’s say i have two different SIP providers, provider A requires port range 5000-65535 and provider B requires 46000-52000

Questions is: How can I force that RTP traffic exchange with provider B to only use the range aforementioned?

In other platforms like Avaya I can do it using something called network region where i can set a codec, RTP range, transport protocol and then associate a trunk with this region, is anything similar in Asterisk?

Thank you in advance for your help.

Regards

I don’t believe so, and there is no good reason why an ITSP would impose such a restriction on the remote (to it) port numbers; web sites don’t limit HTTP connection source ports to a limited range.