Re: listen with advertise and a custom port

Daniel-Constantin Mierla via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
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

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio World Conference, May 7-8, 2026 - Berlin, Germany -- kamailioworld.com

__________________________________________________________
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.