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!
Hello,
On 18.12.25 16:58, Володимир Іванець via sr-users wrote:
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 <http://10.0.40.13:5060> advertise X.X.X.X:5080 name "sock1" listen=udp:10.42.3.1:5060 <http://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 <http://10.0.40.13:5060> advertise "X.X.X.X:5080" name "sock1"Is there a correct way to achieve this?
it is nothing to add in the SIP replies related to the local sockets. What exactly do you mean it should be added for Contact and Record-Route for replies? Maybe you can give the SIP messages with what happens and what you would expect?!?
Cheers, Daniel