<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"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></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 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 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 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 -> 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=<<a href="http://sip:1003m@100.0.0.50:38283" target="_blank">sip:1003m@100.0.0.50:38283</a>></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 -> 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 -> 4</div>
<div> /sbin/opensips[28392]: DBG:tm:t_uac: next_hop=<<a href="http://sip:1003m@100.0.0.50:38283" target="_blank">sip:1003m@100.0.0.50:38283</a>></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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>