<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><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 class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/c95ddd8f282c8809a0fae233bdb57b4dddb3c628.patch">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 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 24.09.2014 14:45, Patrick Wakano wrote:<br>
</div>
<blockquote
cite="mid:CAPu3kNX+9ovou2Ty_L81YKvVu2KRk3jRGudeGeZC1y4jXpBO5g@mail.gmail.com"
type="cite">
<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">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
moz-do-not-send="true"
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
moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>