Forgot to mention - the reason it is done this way is that Kamailio cannot bind to the virtual IP that ucarp is managing. It has to bind to an IP address that is available the entire time.
-----Original Message----- From: Paul Pankhurst Sent: Tuesday, March 29, 2011 10:39 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -UsersMailing List Subject: Re: [SR-Users] Outbound socket selection (HA implementation)
I have kamailio working with ucarp in an active/standby mode. The way I did it was to bind kamailio to a fixed ip address and use ip tables to forward between the ucarp address and the fixed address. Since this is effectively a NAT traversal as far as Kamailio is concerned, you have to setup appropriate record routes and the advertised address within kamailio.
Paul
-----Original Message----- From: Asgaroth Sent: Tuesday, March 29, 2011 10:31 AM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - UsersMailing List Subject: [SR-Users] Outbound socket selection (HA implementation)
Hi All,
I'm trying to setup an active/passive proxy instance with kamailio 3.1.2. I'm using ucarp (www.ucarp.org) to provide the floating ip addresses. I have installed and configured ucarp and it appears to be working as expected.
I have configured kamailio on both systems to be online all the time (using the net.ipv4.ip_nonlocal_bind kernel parameter on the "standby" server). I have configured kamailio with the listen parameter to be listening on the floating ip addresses only.
The problem now is that kamailio uses the inbound interface as the outbound socket for messages (I think this is the default, expected, behaviour).
If I enable the "mhomed" parameter then I get the following error:
ERROR: <core> [forward.c:218]: ERROR: get_out_socket: no socket found ERROR: <core> [forward.c:572]: forward_req: ERROR: cannot forward to af 2, proto 1 no corresponding listening socket ERROR: sl [sl_funcs.c:282]: ERROR: sl_reply_error used: I'm terribly sorry, server error occurred (7/SL)
I had a look around on the docuwiki and I found $fs. Would I need to force the outbound socket for each message in this case, or do I have a simple comfiguration issue?
Any thoughts/comments would be greatly appreciated.
Thanks
_______________________________________________ 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
_______________________________________________ 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