<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>After some stracing of opensips&nbsp;I found that the reinvites where not making it to opensips then&nbsp;tracked the issue down to fail2ban :/</p>
<p><br>
</p>
<p>solution:</p>
<p></p>
<div>aptitude remove ufw fail2ban</div>
<div><br>
</div>
<div>I am going back to hand crafted iptables rules <img alt="😊" class="EmojiInsert" style="vertical-align: bottom;" src="cid:ff878697-ace6-4487-ab3b-a23718e8592e"></div>
<div><br>
</div>
<p></p>
<p>thanks for the help.</p>
<p><br>
</p>
<p>Kevin</p>
</div>
<div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:nowrap;"><br /><table cellpadding="0" cellspacing="0" border="0" style="background-color:#FFFFFF;border-collapse:collapse;font-size:0;line-height:18.33px;"><tr><td align="left" style="padding:0 0 15px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:14.67px;color:#808080;font-style:normal;font-weight:bold;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;color:#065897;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;">Kevin&nbsp;Stewart</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:normal;white-space:normal;">&nbsp;|&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;">Senior&nbsp;VOIP&nbsp;Network&nbsp;Engineer</td></tr></table></td></tr><tr style="line-height:13.33px;"><td align="left" style="padding:0 0 10px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:bold;">D:&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;"><a href="tel:+64%209%20919%206120" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">+64&nbsp;9&nbsp;919&nbsp;6120</strong></a></td><td align="left" style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;white-space:normal;">&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:bold;">E:&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;"><a href="mailto:Kevin.Stewart@m2group.co.nz" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:underline;"><strong style="font-weight:normal;">Kevin.Stewart@m2group.co.nz</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:bold;">M:&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;"><a href="tel:+64%2021%20879%20057" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">+64&nbsp;21&nbsp;879&nbsp;057</strong></a></td><td align="left" style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;white-space:normal;">&nbsp;&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:bold;">W:&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;"><a href="http://vocus.co.nz" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:underline;"><strong style="font-weight:normal;">vocus.co.nz</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;font-weight:bold;">A:&nbsp;</td><td align="left" style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica Neue,Arial,sans-serif;">PO&nbsp;Box&nbsp;108-109,&nbsp;Symonds&nbsp;St,&nbsp;Auckland&nbsp;1150</td></tr></table></td></tr></table></td></tr><tr style="line-height:normal;"><td align="left" style="padding:0 0 10px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="center" style="vertical-align:middle;"><a href="http://www.vocus.co.nz" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image989000.jpg@4473FA54.3B19F843" width="340" height="75" border="0" alt="" style="min-width:340px;font-size:0;" /></a></td></tr></table></td></tr></table><br /></div><hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> users-bounces@lists.opensips.org &lt;users-bounces@lists.opensips.org&gt; on behalf of Bogdan-Andrei Iancu &lt;bogdan@opensips.org&gt;<br>
<b>Sent:</b> Tuesday, 14 June 2016 9:53:53 p.m.<br>
<b>To:</b> OpenSIPS users mailling list; Kevin Stewart<br>
<b>Subject:</b> Re: [OpenSIPS-Users] B2BUA not responding to reinvites</font>
<div>&nbsp;</div>
</div>
<div><tt>Hello Kevin,<br>
<br>
Once the B2B session started, the sequential request will not land to your script as they will be captured by B2B before the script (and handled according to the XML script).<br>
<br>
Still, with debug level 6 you should see various messages from OpenSIPS when the B2B would handle the re-INVITE.<br>
<br>
Are you sure the re-INVITE is actually reaching OpenSIPS on the right IP and port ?<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>
<div class="moz-cite-prefix">On 14.06.2016 09:49, Kevin Stewart wrote:<br>
</div>
<blockquote cite="mid:PS1PR04MB0905233607D3ECA9AD5BBB79E1540@PS1PR04MB0905.apcprd04.prod.outlook.com" type="cite">
<div>I am trying to implement a simple topology hiding B2BUA with opensips 1.11.5<br>
<br>
most things work except that re invites for session expiry are being ignored.<br>
<br>
I assume that I am missing something in my config.<br>
<br>
the strange thing is that I see no debug to syslog when the Invites come in even with debug set to 9.<br>
<br>
the basic config is a client on port 5061 (C) inviting the B2BUA on port 5066(B) with then invites the main server on another host on port 5060(A).<br>
I do not expect and inbount calls from A<br>
<br>
C invites B, B invites A all proceeds normally until after 15 minutes A invites B and is ignored then sends bye a number of times.<br>
none of the reinvites or byes are reported in the logs.<br>
<br>
C then hangs up sending a bye to B, B sends a bye to A and gets 481 Unknown Dialog.<br>
<br>
below is my config<br>
<br>
route{<br>
if ( !mf_process_maxfwd_header(&quot;10&quot;) )<br>
{<br>
sl_send_reply(&quot;483&quot;,&quot;To Many Hops&quot;);<br>
drop();<br>
};<br>
<br>
if (is_method(&quot;OPTIONS&quot;))<br>
{<br>
#xlog(&quot;L_NOTICE&quot;, &quot;$ci|end|unsupported method&quot;);<br>
sl_send_reply(&quot;404&quot;, &quot;Not found&quot;);<br>
exit;<br>
}<br>
<br>
if(is_method(&quot;INVITE&quot;)){<br>
xlog(&quot;L_NOTICE&quot;,&quot;got invite&quot;);<br>
if($sp==&quot;5061&quot;){<br>
xlog(&quot;L_NOTICE&quot;,&quot;got invite 5061&quot;);<br>
xlog(&quot;L_NOTICE&quot;,&quot;[$mi] before B2B request\n&quot;);<br>
$ru=&quot;sip:&quot;&#43;$tU&#43;&quot;@172.22.2.140:5060&quot;;<br>
b2b_init_request(&quot;top hiding&quot;);<br>
xlog(&quot;L_INFO&quot;,&quot;[$mi] after B2B request\n&quot;);<br>
}else{<br>
xlog(&quot;L_NOTICE&quot;,&quot;got invite $sp&quot;);<br>
xlog(&quot;L_INFO&quot;,&quot;[$mi] not from 5061\n&quot;);<br>
}<br>
exit;<br>
}else{<br>
xlog(&quot;L_ERR&quot;,&quot;got request method $rm from $si: $fU, $tU&quot;);<br>
sl_send_reply(&quot;501&quot;, &quot;Not Implemented&quot;);<br>
exit;<br>
}<br>
}</div>
<div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:nowrap;">
<br>
<table style="background-color:#FFFFFF;border-collapse:collapse;font-size:0;line-height:18.33px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding:0 0 15px;vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:14.67px;color:#808080;font-style:normal;font-weight:bold;text-decoration:none;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;text-align:left;color:#065897;font-family:Helvetica,Helvetica
                        Neue,Arial,sans-serif;" align="left">
Kevin&nbsp;Stewart</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
Neue,Arial,sans-serif;font-weight:normal;white-space:normal;" align="left">
&nbsp;|&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                        Neue,Arial,sans-serif;" align="left">
Senior&nbsp;VOIP&nbsp;Network&nbsp;Engineer</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="line-height:13.33px;">
<td style="padding:0 0 10px;vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:0;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;font-weight:bold;" align="left">
D:&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;" align="left">
<a moz-do-not-send="true" href="tel:&#43;64%209%20919%206120" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">&#43;64&nbsp;9&nbsp;919&nbsp;6120</strong></a></td>
<td style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica
Neue,Arial,sans-serif;white-space:normal;" align="left">
&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;font-weight:bold;" align="left">
E:&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;" align="left">
<a moz-do-not-send="true" href="mailto:Kevin.Stewart@m2group.co.nz" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:underline;"><strong style="font-weight:normal;"></a><a class="moz-txt-link-abbreviated" href="mailto:Kevin.Stewart@m2group.co.nz">Kevin.Stewart@m2group.co.nz</a></strong></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;font-weight:bold;" align="left">
M:&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;" align="left">
<a moz-do-not-send="true" href="tel:&#43;64%2021%20879%20057" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">&#43;64&nbsp;21&nbsp;879&nbsp;057</strong></a></td>
<td style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica
Neue,Arial,sans-serif;white-space:normal;" align="left">
&nbsp;&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;font-weight:bold;" align="left">
W:&nbsp;</td>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;" align="left">
<a moz-do-not-send="true" href="http://vocus.co.nz" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:underline;"><strong style="font-weight:normal;">vocus.co.nz</strong></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:10.66px;color:#065897;font-style:normal;font-weight:normal;text-decoration:none;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:top;text-align:left;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;font-weight:bold;" align="left">
A:&nbsp;</td>
<td style="vertical-align:top;text-align:left;color:#808080;font-family:Helvetica,Helvetica
                                Neue,Arial,sans-serif;" align="left">
PO&nbsp;Box&nbsp;108-109,&nbsp;Symonds&nbsp;St,&nbsp;Auckland&nbsp;1150</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr style="line-height:normal;">
<td style="padding:0 0 10px;vertical-align:top;" align="left">
<table style="border-collapse:collapse;font-size:0;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="vertical-align:middle;" align="center"><a moz-do-not-send="true" href="http://www.vocus.co.nz" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img alt="" style="min-width:340px;font-size:0;" width="340" border="0" height="75" src="cid:part5.09070902.08000600@opensips.org"></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<br>
</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>
</div>
</body>
</html>