<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>a solution: you can decrease/increase the debug parameter value
      via mi/rpc based on whether the ip is assigned or not to the host,
      like:</p>
    <p>kamctl mi debug -2</p>
    <p>The increase it to the default when the ip is assigned.<br>
    </p>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 29/06/16 11:47, jay binks wrote:<br>
    </div>
    <blockquote
cite="mid:CAO47HpcVjKO5QprqF-zX6_tH1so3WXvJJYACFeX8+Ug_rcxfGA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Nah these are physical hosts in colocated DC space.
        <div><br>
        </div>
        <div>so just for clarity, the issue is not with the floating IP.</div>
        <div>that works perfect, as does keepalived and <span
            style="font-size:12.8px">net.ipv4.ip_nonlocal_bind =1</span></div>
        <div><br>
        </div>
        <div>my ONLY issue is that the non master host logs a LOT of
          messages,</div>
        <div>because it dosnt have the floating IP ( and thus cant send
          SIP OPTIONS, originating from the floating IP )</div>
        <div><br>
        </div>
        <div>I realise this cant be fixed..  I just want to hide the log
          messages :P</div>
        <div>EG: tell kamailio its in "nonlocal_bind" mode, so... yea
          dont log the <span style="font-size:12.8px">udp_send failed
            messages in my original message.</span></div>
        <div><br>
        </div>
        <div> </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 29 June 2016 at 19:09, Carsten Bock
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            quick question:<br>
            Floating IP? Are you on Digital Ocean?<br>
            <br>
            DigitalOcean has an issue with UDP checksums on Floating
            IPs. They've<br>
            been working on a fix, but that's not yet resolved.<br>
            <br>
            Quote from our Ticket:<br>
            "We're definitely working on fixing this, but have managed
            to track<br>
            the issue upstream into open-vswitch itself! We're working
            on fixing<br>
            it, but it'll take longer. Turns out, we're not the only
            ones to see<br>
            this - we found a similar bug going on on the Google cloud!"<br>
            <br>
            Thanks,<br>
            Carsten<br>
            <div>
              <div class="h5"><br>
                2016-06-29 9:55 GMT+02:00 jay binks <<a
                  moz-do-not-send="true"
                  href="mailto:jaybinks@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a></a>>:<br>
                > So here are my listen lines.<br>
                ><br>
                > listen=127.0.0.1<br>
                > listen=1.2.3.4<br>
                > listen=1.2.3.5<br>
                ><br>
                > perhaps I can remove the localhost listen, but I
                doubt thats relevant here.<br>
                ><br>
                > I have changed the IPS for the next 2 listen lines
                just so my IP's are not<br>
                > on the list archive.<br>
                ><br>
                > 1.2.3.4 is my floating IP<br>
                ><br>
                > 1.2.3.5 is a fixed IP on the box.<br>
                ><br>
                > The kamailio messages im talking about are
                complaining because that<br>
                > particular box is not the master, and does not have
                the floating ip at that<br>
                > point of time.<br>
                ><br>
                ><br>
                ><br>
                ><br>
                ><br>
                ><br>
                > On 28 June 2016 at 15:03, Joel Serrano | VOZELIA
                <<a moz-do-not-send="true"
                  href="mailto:joel@vozelia.com">joel@vozelia.com</a>>
                wrote:<br>
                >><br>
                >> Hi Jay,<br>
                >><br>
                >> Can you paste your listen= lines from
                kamailio.cfg?<br>
                >><br>
                >> Best regards,<br>
                >> Joel.<br>
                >><br>
                >> ----- Original Message -----<br>
                >> > From: "jay binks" <<a
                  moz-do-not-send="true"
                  href="mailto:jaybinks@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a></a>><br>
                >> > To: "Kamailio (SER) - Users Mailing List"<br>
                >> > <<a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
                >> > Sent: Sunday, June 26, 2016 8:40:47 PM<br>
                >> > Subject: Re: [SR-Users] (no subject)<br>
                >><br>
                >> > I cant believe I sent this without a
                subject... OOPS !<br>
                >> > if I might re-post ( with a subject ) if
                there are no replies in a few<br>
                >> > days.<br>
                >><br>
                >> > On 25 June 2016 at 10:40, jay binks < <a
                  moz-do-not-send="true"
                  href="mailto:jaybinks@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:jaybinks@gmail.com">jaybinks@gmail.com</a></a>
                > wrote:<br>
                >><br>
                >> >> Hi Guys,<br>
                >><br>
                >> >> Im using a keepalived solution between
                2 kamailio boxes, with<br>
                >> >> net.ipv4.ip_nonlocal_bind =1 .<br>
                >><br>
                >> >> On the "non master" I pretty much
                constantly get these logs in syslog.<br>
                >> >> What Im looking for is a way to
                suppress these because they are<br>
                >> >> expected in my<br>
                >> >> configuration.<br>
                >><br>
                >> >> is there any way to tell kamailio to
                not log this... ( or at least, not<br>
                >> >> at CRIT<br>
                >> >> and ERROR )<br>
                >><br>
                >> >> Jun 25 10:32:53 lb2
                /usr/sbin/kamailio[24869]: ERROR: tm<br>
                >> >> [../../forward.h:208]:<br>
                >> >> msg_send(): udp_send failed<br>
                >><br>
                >> >> Jun 25 10:32:53 lb2
                /usr/sbin/kamailio[24869]: ERROR: <core><br>
                >> >> [udp_server.c:576]:<br>
                >> >> udp_send():
                sendto(sock,0x7fc0732d5ab0,380,0,xxx.xxx.xxx.xxx:5060,16):<br>
                >> >> Invalid<br>
                >> >> argument(22)<br>
                >><br>
                >> >> Jun 25 10:32:53 lb2
                /usr/sbin/kamailio[24869]: CRITICAL: <core><br>
                >> >> [udp_server.c:581]: udp_send():
                invalid sendtoparameters#012one<br>
                >> >> possible reason<br>
                >> >> is the server is bound to localhost
                and#012attempts to send to the net<br>
                >><br>
                >> >> --<br>
                >> >> Sincerely<br>
                >><br>
                >> >> Jay<br>
                >><br>
                >> >>
                _______________________________________________<br>
                >> >> SIP Express Router (SER) and Kamailio
                (OpenSER) - sr-users mailing list<br>
                >> >> <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                >> >> <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                >><br>
                >> > --<br>
                >> > Sincerely<br>
                >><br>
                >> > Jay<br>
                >><br>
                >> >
                _______________________________________________<br>
                >> > SIP Express Router (SER) and Kamailio
                (OpenSER) - sr-users mailing list<br>
                >> > <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                >> > <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                >><br>
                >> _______________________________________________<br>
                >> SIP Express Router (SER) and Kamailio (OpenSER)
                - sr-users mailing list<br>
                >> <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                >> <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                ><br>
                ><br>
                ><br>
                ><br>
                > --<br>
                > Sincerely<br>
                ><br>
                > Jay<br>
                ><br>
                > _______________________________________________<br>
                > SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                > <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                > <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                ><br>
                <br>
                <br>
                <br>
                --<br>
              </div>
            </div>
            Carsten Bock<br>
            CEO (Geschäftsführer)<br>
            <br>
            ng-voice GmbH<br>
            Millerntorplatz 1<br>
            20359 Hamburg / Germany<br>
            <br>
            <a moz-do-not-send="true" href="http://www.ng-voice.com"
              rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
            mailto:<a moz-do-not-send="true"
              href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
            <br>
            Office <a moz-do-not-send="true"
              href="tel:%2B49%2040%205247593-40" value="+4940524759340">+49
              40 5247593-40</a><br>
            Fax <a moz-do-not-send="true"
              href="tel:%2B49%2040%205247593-99" value="+4940524759399">+49
              40 5247593-99</a><br>
            <br>
            Sitz der Gesellschaft: Hamburg<br>
            Registergericht: Amtsgericht Hamburg, HRB 120189<br>
            Geschäftsführer: Carsten Bock<br>
            Ust-ID: DE279344284<br>
            <br>
            Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
            <a moz-do-not-send="true"
              href="http://www.ng-voice.com/imprint/" rel="noreferrer"
              target="_blank">http://www.ng-voice.com/imprint/</a><br>
            <div class="HOEnZb">
              <div class="h5"><br>
                _______________________________________________<br>
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Sincerely<br>
          <br>
          Jay</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>