<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>HI Volga,<br><div><br>I haven't used mhomed=1 param, Apologies not sure how to help there.<br></div></div><div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_2032917873" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, 10 July 2018, 4:51:12 PM GMT+5:30, <volga629@networklab.ca> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Hello Pasan,<br clear="none">The whole issue is mhomed=1 it can't determine correct socket or don't <br clear="none">have logic to work with vip addresses. I have to use on LAN side<br clear="none"><br clear="none">force_send_socket(udp:vip1:5060);<br clear="none"><br clear="none">But issue right now if one node goes down and vip is relocated to <br clear="none">another node, how to determine which socket to use to send call from <br clear="none">correct soure ip ?<br clear="none"><br clear="none"><br clear="none">volga629<br clear="none"><div class="yqt8767866592" id="yqtfd90698"><br clear="none">On Tue, Jul 10, 2018 at 6:44 AM, Pasan Meemaduma via Users <br clear="none"><<a shape="rect" ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br clear="none">> Hi Volga,<br clear="none">> <br clear="none">> Its a very common question about non local address binding in linux. <br clear="none">> did you set following via sysctl ?<br clear="none">> net.ipv4.ip_nonlocal_bind=1<br clear="none">> <br clear="none">> <br clear="none">> <br clear="none">> On Monday, 9 July 2018, 11:20:04 PM GMT+5:30, <a shape="rect" ymailto="mailto:volga629@networklab.ca" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a> <br clear="none">> <<a shape="rect" ymailto="mailto:volga629@networklab.ca" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> Hello Everyone,<br clear="none">> Trying build test cluster active/active with 3 vips for each node<br clear="none">> separate virtual ip with keepalived<br clear="none">> And opensips failing to bound vip ip for corresponding vm<br clear="none">> This is interface config with vip<br clear="none">> <br clear="none">> 4: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state<br clear="none">> UNKNOWN group default qlen 1000<br clear="none">> link/ether 00:50:56:a2:d5:0c brd ff:ff:ff:ff:ff:ff<br clear="none">> inet 10.100.104.4/28 brd 10.100.104.15 scope global ens37<br clear="none">> valid_lft forever preferred_lft forever<br clear="none">> inet 10.100.104.7/28 scope global secondary ens37<br clear="none">> ---> Keepalived VIP<br clear="none">> valid_lft forever preferred_lft forever<br clear="none">> inet6 fe80::b279:d4d6:45a1:6dd6/64 scope link<br clear="none">> valid_lft forever preferred_lft forever<br clear="none">> inet6 fe80::f9a7:9cc4:6a27:4cde/64 scope link dadfailed tentative<br clear="none">> valid_lft forever preferred_lft forever<br clear="none">> <br clear="none">> <br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]: Forwarding REGISTER to<br clear="none">> main registrar ~> [<sip:<a shape="rect" ymailto="mailto:100@68.113.217.123" href="mailto:100@68.113.217.123">100@68.113.217.123</a>:5060>]<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:core:get_out_socket: no socket found<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:mid_registrar:uri2sock: no corresponding socket for af 2<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:mid_registrar:overwrite_req_contacts: failed to obtain next hop<br clear="none">> socket, ci=<a shape="rect" ymailto="mailto:0_3830065743@192.168.1.13" href="mailto:0_3830065743@192.168.1.13">0_3830065743@192.168.1.13</a><br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:mid_registrar:mid_reg_req_fwded: failed to overwrite Contact <br clear="none">> URIs<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:core:get_out_socket: no socket found<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1 (no<br clear="none">> corresponding listening socket)<br clear="none">> Jul 9 12:34:42 sbc01 /usr/sbin/opensips[6019]:<br clear="none">> ERROR:tm:t_forward_nonack: failure to add branches<br clear="none">> <br clear="none">> <br clear="none">> Listen<br clear="none">> <br clear="none">> listen=udp:10.100.104.7:5060 vip1<br clear="none">> listen=udp:10.100.104.8:5060 vip2<br clear="none">> listen=udp:10.100.104.9:5060 vip3<br clear="none">> listen=bin:10.100.104.7:5585 bin cluster<br clear="none">> <br clear="none">> Any idea what what will be possible cause ?<br clear="none">> <br clear="none">> volga629<br clear="none">> <br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> Users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br clear="none">> <a shape="rect" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br clear="none"><br clear="none"></div></div></div>
</div>
</div></div></body></html>