Do you have force_rport anywhere in the config?

-- Fred Posner
Sent from mobile
Phone: +1 (352) 664-3733
qxork.com



On Mar 10, 2024, at 8:37 AM, Antonio via sr-users <sr-users@lists.kamailio.org> wrote:


Hi everyone
I have a small question:
i want to set up a basic SIP Redirect Server
so I install Kamailio v5.3
and  comment  default  request route and set simple

request_route {
rewritehostport("1.2.3.4");
sl_send_reply("302", "Moved Temporarily");
}

but for some reason, Kamailio does not care about the port and sends a reply to 5060
<image.png>


i also tried to delete   rewritehostport
but it only deletes Contact: from the reply
but reply  itself is still sent to  5060 port
<image.png>



--
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: