Dear list,
I'm having a problem.
I have an SBC server with two network interfaces, one external IP (X.X.248.194) and other internal IP (X.X.248.21). Messages are sent to the proxy sip server through internal ip with this configuration:
route [sip-serverr] { rewritehostport ("ip_sip_proxy: 5060"); force_send_socket (X.X.248.21: 5060); t_relay (); exit; }
When a UA sends an INVITE to the SBC, the responses (back) to UA are being sent with the correct external source IP (X.X.248.194) but if there are retransmissions of these responses, after 6 seconds, the source IP changes to the internal ip (X.X.248.21)
Does anyone from the list know how I can solve this?
Thanks,
Regards,
I am a bit confused. I suspect with SBC you mean the Kamailio proxy?
On 05.02.2014 14:54, Diego Alejandro Ozuna Escalada wrote:
When a UA sends an INVITE to the SBC, the responses (back) to UA are being sent with the correct external source IP (X.X.248.194) but if there are retransmissions of these responses, after 6 seconds, the source IP changes to the internal ip (X.X.248.21)
Are you sure it is a retransmission, or maybe it is a new branch of an existing transaction, e.g. triggered by a failure route? You can differ them by different branch id in the topmost Via header (carefully check the last character). If it is really due to a new branch created in a failure route, make sure to force the send socket also in the failure route.
PS: If you have a nice working IP setup, e.g. one external interface (used by the default route) and one internal interface (a different subnet, dedicated routes for the internal network) then you could just set mhomed=1 in kamailio.cfg and Kamailio can automatically always select the correct send-socket.
regards Klaus
Thanks por the reply,
it's like you suspect, in this scenario the kamailio proxy do some SBC functions.
I'm doing tests with mhomed parameter. I'll do a feedback after these tests.
regards.
Diego
2014-02-05 14:47 GMT-03:00 Klaus Darilion klaus.mailinglists@pernau.at:
I am a bit confused. I suspect with SBC you mean the Kamailio proxy?
On 05.02.2014 14:54, Diego Alejandro Ozuna Escalada wrote:
When a UA sends an INVITE to the SBC, the responses (back) to UA are being sent with the correct external source IP (X.X.248.194) but if there are retransmissions of these responses, after 6 seconds, the source IP changes to the internal ip (X.X.248.21)
Are you sure it is a retransmission, or maybe it is a new branch of an existing transaction, e.g. triggered by a failure route? You can differ them by different branch id in the topmost Via header (carefully check the last character). If it is really due to a new branch created in a failure route, make sure to force the send socket also in the failure route.
PS: If you have a nice working IP setup, e.g. one external interface (used by the default route) and one internal interface (a different subnet, dedicated routes for the internal network) then you could just set mhomed=1 in kamailio.cfg and Kamailio can automatically always select the correct send-socket.
regards Klaus
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