<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Patrick,<br>
        <br>
        Thanks for testing - I did the backport to 1.11 too.<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 08.10.2014 23:12, Patrick Wakano wrote:<br>
    </div>
    <blockquote
cite="mid:CAPu3kNUcW13igYfhoidCocjTdEthJDeYzzwtacd_Dvuf8keBsQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bogdan!
        <div>Just tested your patch and it worked!!!</div>
        <div><br>
        </div>
        <div>Thanks a lot for your support!!</div>
        <div><br>
        </div>
        <div>Patrick</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Oct 8, 2014 at 6:22 AM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div><tt>Hi Patrick,<br>
                  <br>
                  Shortly, I found a flow in the logic of validating the
                  send socket (the dialog module is forcing an send
                  socket for the OPTIONS, taken from the dialog info).<br>
                  <br>
                  I made a fix on trunk/master - see:<br>
                     
                  <a moz-do-not-send="true"
href="https://github.com/OpenSIPS/opensips/commit/c95ddd8f282c8809a0fae233bdb57b4dddb3c628.patch"
                    target="_blank">https://github.com/OpenSIPS/opensips/commit/c95ddd8f282c8809a0fae233bdb57b4dddb3c628.patch</a><br>
                  <br>
                  Could you test to see if this solves your problem ?<br>
                  <br>
                  If you need to backport the patch and have problems
                  applying it, just let me know.<br>
                  <br>
                  Regards,<br>
                </tt>
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <div>
                  <div class="h5"> On 24.09.2014 14:45, Patrick Wakano
                    wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hello list,
                      <div><br>
                      </div>
                      <div>I was having a problem in which my Opensips
                        was not sending the Options of the dialog ping
                        mechanism. After debuging I found out that
                        Opensips could not send it because it was not
                        listening to the primary IP of the interface. I
                        am in a mhomed scenario and using Linux-HA so
                        the virtual IP managed by the heartbeat is the
                        one Opensips listens to. If I configured
                        Opensips to listen to both IPs then the dialog
                        ping works. Also the problem only happens in
                        UDP, if I use TCP then it works fine too.</div>
                      <div><br>
                      </div>
                      <div>I found this thread that may be related, but
                        with the drouting module:<br>
                      </div>
                      <div><a moz-do-not-send="true"
                          href="http://opensips.org/pipermail/users/2013-November/027203.html"
                          target="_blank">http://opensips.org/pipermail/users/2013-November/027203.html</a><br>
                      </div>
                      <div>
                        <div>So is this an Opensips error in the dialog
                          module or should I face it as a linux
                          restriction?<br>
                        </div>
                      </div>
                      <div><br>
                      </div>
                      <div>The following lines are printed on the log
                        when the dialog ping fails:<br>
                      </div>
                      <div>
                        <div> /sbin/opensips[28392]: DBG:dialog:ref_dlg:
                          ref dlg 0xb4e8e37c with 1 -&gt; 4<br>
                        </div>
                      </div>
                      <div>
                        <div> /sbin/opensips[28392]:
                          DBG:dialog:send_leg_msg: sending [OPTIONS] to
                          caller (0)</div>
                        <div> /sbin/opensips[28392]: DBG:tm:t_uac:
                          next_hop=&lt;<a moz-do-not-send="true"
                            href="http://sip:1003m@100.0.0.50:38283"
                            target="_blank">sip:1003m@100.0.0.50:38283</a>&gt;</div>
                        <div> /sbin/opensips[28392]: DBG:core:mk_proxy:
                          doing DNS lookup...</div>
                        <div> /sbin/opensips[28392]:
                          ERROR:core:get_out_socket: no socket found<br>
                        </div>
                        <div> /sbin/opensips[28392]: ERROR:tm:t_uac: no
                          corresponding socket for af 2</div>
                        <div> /sbin/opensips[28392]:
                          ERROR:dialog:send_leg_msg: failed to send the
                          in-dialog request</div>
                        <div> /sbin/opensips[28392]:
                          ERROR:dialog:dlg_ping_routine: failed to ping
                          caller</div>
                        <div> /sbin/opensips[28392]:
                          DBG:dialog:unref_dlg: unref dlg 0xb4e8e37c
                          with 1 -&gt; 3 in entry 0xb4d24d74</div>
                      </div>
                      <div>....</div>
                      <div>
                        <div> /sbin/opensips[28392]:
                          DBG:dialog:dlg_ping_routine: dialog
                          0xb4e8e37c-1537054613 has expired</div>
                        <div> /sbin/opensips[28392]:
                          DBG:dialog:init_dlg_term_reason: Setting DLG
                          term reason to [Ping Timeout] </div>
                        <div> /sbin/opensips[28392]:
                          DBG:dialog:send_leg_bye: sending BYE to caller
                          (0)</div>
                        <div> /sbin/opensips[28392]: DBG:dialog:ref_dlg:
                          ref dlg 0xb4e8e37c with 1 -&gt; 4</div>
                        <div> /sbin/opensips[28392]: DBG:tm:t_uac:
                          next_hop=&lt;<a moz-do-not-send="true"
                            href="http://sip:1003m@100.0.0.50:38283"
                            target="_blank">sip:1003m@100.0.0.50:38283</a>&gt;</div>
                        <div> /sbin/opensips[28392]: DBG:core:mk_proxy:
                          doing DNS lookup...</div>
                        <div> /sbin/opensips[28392]:
                          ERROR:core:get_out_socket: no socket found<br>
                        </div>
                        <div> /sbin/opensips[28392]: ERROR:tm:t_uac: no
                          corresponding socket for af 2</div>
                        <div> /sbin/opensips[28392]:
                          ERROR:dialog:send_leg_bye: failed to send the
                          BYE request</div>
                      </div>
                      <div><br>
                      </div>
                      <div>Thanks!</div>
                      <div><br>
                      </div>
                      <div>Patrick</div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>