RTP Question

Is it possible to configure which RTP port ranges use on each SIP Extension?

Something like:

[2021]
type=friend
defaultuser=2021
secret=mypassword
rtpmedia=10000-20000
port = 5070
context = from-internal

[2021]
type=friend
defaultuser=2021
secret=mypassword
rtpmedia=30000-40000
port = 5070
context = from-internal

Does exists a parameter that do this per extension?

* I know I can do this accessing the Phone web-interface and change the RTP ports

These are devices, not extensions. Each side controls the port number range for its own side. SIP has no means of telling the other side what port number it should use at its side.

Howdy,

Negative, that’s not an option in either chan_sip or chan_pjsip.