listen with advertise and a custom port

Володимир Іванець via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CAOQgkjbW20rjmoLqbbf4Gbh3-kuzSrHb3As0yrhhMGgvAZWWkQ@mail.gmail.com>
Hello everyone!

I was testing a few infrastructure scenarios and found interesting behavior
that may be not correct. So I decided to ask.

I'm running a few day old Kamailio build from master branch. Listeners are:

listen=udp:10.0.40.13:5060 advertise X.X.X.X:5080 name "sock1"
listen=udp:10.42.3.1:5060 name "sock2"

Replies to the incoming requests to sock1 are updated with X.X.X.X address
but the custom port is not added. I tried changing the local port too but
Record-Route and Contact headers did not have a custom port added.

The only way I was able to force Kamailio to use a custom port was to make
it a part of an address by including both in quotes:

listen=udp:10.0.40.13:5060 advertise "X.X.X.X:5080" name "sock1"


Is there a correct way to achieve this?

Thanks a lot!

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.