Hello Mino,

Kamailio responds to the port that is declared by the sender in the Via header, which is evidently 5060.

If you want to override this, call force_rport() somewhere in your INVITE handling, prior to sending the reply. This forces replies to go to the port from which the INVITE was actually sent (on the transport layer), rather than what's specified in the SIP messaging.

-- Alex

On 08/19/2013 06:31 AM, Mino Haluz wrote:

Hi,

I really do not know what is happening but when I'm sending SIP INVITE
form port other than 5060, if it reaches
sl_send_reply("403","Forbidden") response is sent to 5060 and not to the
source port of the initial INVITE.

I am not changing anyhow $du or $rd ...

Mino


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to