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
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
Hello,
do you use force_rport()? Normally, the reply is routed using Via header address.
Cheers, Daniel
On 8/19/13 12:31 PM, 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
(palmface). I am always forgetting about this, it should be called where initial request is processed or also for sequential requests?
On Mon, Aug 19, 2013 at 11:39 AM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
do you use force_rport()? Normally, the reply is routed using Via header address.
Cheers, Daniel
On 8/19/13 12:31 PM, 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 listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
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
On 08/19/2013 07:00 AM, Mino Haluz wrote:
(palmface). I am always forgetting about this, it should be called where initial request is processed or also for sequential requests?
Initial.
Sequential requests and their replies are sent according to a different principle (the target URI, i.e. the Contact on both sides).
On 19.08.2013 13:04, Alex Balashov wrote:
On 08/19/2013 07:00 AM, Mino Haluz wrote:
(palmface). I am always forgetting about this, it should be called where initial request is processed or also for sequential requests?
Initial.
Sequential requests and their replies are sent according to a different principle (the target URI, i.e. the Contact on both sides).
Half-true. Replies are sent according to the Via header. Replies always and only use the Via headers for routing.
Thus, you have to call force_rport() for every request.
regards Klaus