Kind of depends on which RFC you’re talking about.

As Fred asked – do you have `force_rport` set?  This is defined in 
RFC3581<https://www.ietf.org/rfc/rfc3581.txt>.  In an *ideal* world, your UAC 
would put the `rport` parameter (without value) in it’s Via header.   Kamailio 
can be told to “consider this request like there’s an `rport` in the top most 
via header” by setting `force_rport`.  This is what you want based on your 
description below.

Regards,
Kaufman



From: Antonio via sr-users <[email protected]>
Sent: Sunday, March 10, 2024 11:08 AM
To: Fred Posner <[email protected]>
Cc: Kamailio (SER) - Users Mailing List <[email protected]>; Antonio 
<[email protected]>
Subject: [SR-Users] Re: SIP Redirect Server


CAUTION: This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

Please close request as I found out that this is required behaviour according 
to RFC




[https://www.gravatar.com/avatar/3cad51c8c080640120f89eb5b895ad21/?s=160&msw=160&msh=160]
Antony
[email protected]<mailto:[email protected]>
+380669197533<tel:+380669197533>
+48727830247<tel:+48727830247>


On Sun, 10 Mar 2024 at 15:00, Fred Posner <[email protected]<mailto:[email protected]>> 
wrote:
Do you have force_rport anywhere in the config?

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




On Mar 10, 2024, at 8:37 AM, Antonio via sr-users 
<[email protected]<mailto:[email protected]>> 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>


--
[https://www.gravatar.com/avatar/3cad51c8c080640120f89eb5b895ad21/?s=160&msw=160&msh=160]
Antony
[email protected]<mailto:[email protected]>
+380669197533<tel:+380669197533>
+48727830247<tel:+48727830247>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to 
[email protected]<mailto:[email protected]>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to