<div>Sorry for not getting back to you all sooner. And thanks for all the replies thus far. I have been trying to get some feedback and results back from our developers in the office, and also to re-do&nbsp;some of the&nbsp;tests so I can capture some results to show, but it&#39;s been a bit crazy as it&#39;s nearing xmas.
<br>&nbsp;</div>
<div>In terms of the config, so far we are doing nothing special with these particular servers as you will see.</div>
<div>
<div>&nbsp;</div>
<div>
<div>INVITES are t_relayed. I use <strong>rewritehostport</strong> to forward to the IP of the SIP server, then t_relay in routing block as below:</div>
<div>&nbsp;</div>
<div>
<p>&nbsp;if (uri==myself) {</p></div>
<div>
<p>&nbsp;&nbsp;force_rport();<br>&nbsp;&nbsp;fix_nated_contact();</p>
<p>&nbsp;&nbsp;if (uri=~&quot;^sip:*@*&quot;) {<br>&nbsp;&nbsp;&nbsp;rewritehostport(&quot;aaa.bbb.ccc.ddd:5060&quot;);&nbsp; # forward to the SIP server<br>&nbsp;&nbsp;&nbsp;route(1);<br>&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;};<br></p>
<p>&nbsp;&nbsp;lookup(&quot;aliases&quot;);<br>&nbsp;&nbsp;if (!uri==myself) {<br>&nbsp;&nbsp;&nbsp;append_hf(&quot;P-hint: outbound alias\r\n&quot;); <br>&nbsp;&nbsp;&nbsp;route(1);<br>&nbsp;&nbsp;};</p>
<p>&nbsp;&nbsp;# native SIP destinations are handled using our USRLOC DB<br>&nbsp;&nbsp;if (!lookup(&quot;location&quot;)) {<br>&nbsp;&nbsp;&nbsp;sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>&nbsp;&nbsp;&nbsp;exit;<br>&nbsp;&nbsp;};<br>&nbsp;&nbsp;append_hf(&quot;P-hint: usrloc applied\r\n&quot;); 
<br>&nbsp;}; # END-OF_(&nbsp; &quot;if (uri==myself)&quot;&nbsp; )</p>
<p>&nbsp;route(1);<br>}</p>route[1] {<br>&nbsp;# send it out now; use stateful forwarding as it works reliably<br>&nbsp;# even for UDP2TCP<br>&nbsp;if (!t_relay()) {<br>&nbsp;&nbsp;sl_reply_error();<br>&nbsp;};<br>&nbsp;exit;<br>}<br>&nbsp;</div></div></div>
<div>I will post more info as soon as I have it.</div>
<div>&nbsp;</div>
<div>I will be happy to carry out any further tests you suggest.&nbsp;I am trying to come up with a standard series of tests that will eliminate as many variables as possible. As such, I am also trying to test with as many different tools as possible.
</div>
<div>&nbsp;</div>
<div>To this end, I have also done some very basic flood testing using SIPSak which sends SIP OPTIONS requests, and so far I have not noticed this problem with OPTIONS requests i.e. for every OPTIONS request there was a 200 OK back. I will have to re-test on 
<u>all</u> the servers just to confirm this.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Here&#39;s a trace captured on one of the servers a while back&nbsp;using <strong>ngrep</strong>.</div>
<div>&nbsp;</div>
<div>
<p>U 2006/11/27 14:31:47.515721 &lt;UAC&#39;s IP&gt;:5060 -&gt; &lt;OpenSER&#39;s IP&gt;:5060<br>NOTIFY sip:&lt;MY DOMAIN&gt; SIP/2.0.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d.
<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">a3281cc3-9ad08a6e@192.168.1.6
</a>.<br>CSeq: 11 NOTIFY.<br>Max-Forwards: 70.<br>Event: keep-alive.<br>User-Agent: Linksys/PAP2-2.0.12(LS).<br>Content-Length: 0.<br>.</p>
<p>############################<br>U 2006/11/27 14:31:48.013624 &lt;UAC&#39;s IP&gt;:5060 -&gt; &lt;OpenSER&#39;s IP&gt;:5060<br>NOTIFY sip:&lt;MY DOMAIN&gt; SIP/2.0.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">
192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d.<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">
a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Max-Forwards: 70.<br>Event: keep-alive.<br>User-Agent: Linksys/PAP2-2.0.12(LS).<br>Content-Length: 0.<br>.</p>
<p>######################################################<br>U 2006/11/27 14:31:49.014389 &lt;UAC&#39;s IP&gt;:5060 -&gt; &lt;OpenSER&#39;s IP&gt;:5060<br>NOTIFY sip:&lt;MY DOMAIN&gt; SIP/2.0.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">
192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d.<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">
a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Max-Forwards: 70.<br>Event: keep-alive.<br>User-Agent: Linksys/PAP2-2.0.12(LS).<br>Content-Length: 0.<br>.</p>
<p>#######################################################################################<br>U 2006/11/27 14:31:51.013908 &lt;UAC&#39;s IP&gt;:5060 -&gt; &lt;OpenSER&#39;s IP&gt;:5060<br>NOTIFY sip:&lt;MY DOMAIN&gt; SIP/2.0.
<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d.<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;.
<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Max-Forwards: 70.<br>Event: keep-alive.<br>User-Agent: Linksys/PAP2-2.0.12(LS).<br>Content-Length: 0.<br>
.</p>
<p>#################################################################################################################################################################################<br>U 2006/11/27 14:31:54.431844 &lt;OpenSER&#39;s IP&gt;:5060 -&gt; &lt;UAC&#39;s IP&gt;:5060
<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d;rport=5060;received=&lt;UAC&#39;s IP&gt;.<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.
<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;;tag=01a9973244fdde83b61ad80a93303da1.0b93.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Content-Length: 0.<br>.
</p>
<p>############################<br>U 2006/11/27 14:31:54.433384 &lt;OpenSER&#39;s IP&gt;:5060 -&gt; &lt;UAC&#39;s IP&gt;:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d;rport=5060;received=&lt;UAC&#39;s IP&gt;.
<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;;tag=01a9973244fdde83b61ad80a93303da1.0b93.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">
a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Content-Length: 0.<br>.</p>
<p>#################################################################<br>U 2006/11/27 14:31:54.634717 &lt;OpenSER&#39;s IP&gt;:5060 -&gt; &lt;UAC&#39;s IP&gt;:5060<br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.6:5060">
192.168.1.6:5060</a>;branch=z9hG4bK-9afb502d;rport=5060;received=&lt;UAC&#39;s IP&gt;.<br>From: &lt;USER1&gt; &lt;sip:&lt;MY ACCT NO.&gt;@&lt;MY DOMAIN&gt;&gt;;tag=c0eac8eb24dd8c66o1.<br>To: &lt;sip:&lt;MY DOMAIN&gt;&gt;;tag=
01a9973244fdde83b61ad80a93303da1.0b93.<br>Call-ID: <a href="mailto:a3281cc3-9ad08a6e@192.168.1.6">a3281cc3-9ad08a6e@192.168.1.6</a>.<br>CSeq: 11 NOTIFY.<br>Content-Length: 0.<br></p></div>
<div>&nbsp;</div>
<div>A few points to note:</div>
<div>1. all the packets are UDP packets</div>
<div>2. As you&nbsp;can see, there is no looping or <strong>packet-loss</strong> for that matter, as the openser server does receive all the packets. </div>
<div>3. Moreover, all the packets have the same <strong><em><u>branch number</u></em></strong> and <strong><em><u>Call-ID</u></em></strong>, which unless i&#39;m mistaken means it&#39;s a retransmission.</div>
<div>4. All packets <u>before</u> and <u>after</u> got the 200 OK reply back straight away as normal and the server just continued as if nothing had happened i.e. NOTIFY, 200 OK, NOTIFY, 200 OK, etc.</div>
<div><br>I realise these are only currently with&nbsp;NOTIFY requests, but I am trying to see if I can find any with INVITES and will post if I&nbsp;can capture&nbsp;any, but one of the developers noticed a trace with this happening with INVITES as well at one time but did not save the trace so.. :(.
</div>
<div>&nbsp;</div>
<div>The&nbsp;problem with this is that it is hard to duplicate the problem as this thing only happens every now and then and not all the time, so it is hard to trace. If it happened all the time then we could say it&#39;s a general problem or something wrong in the config, but...
</div>
<div>&nbsp;</div>
<div>
<div>Anyway, I will post more info as soon as I have it.</div></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 12/19/06, <b class="gmail_sendername">Daniel-Constantin Mierla</b> &lt;<a href="mailto:daniel@voice-system.ro">daniel@voice-system.ro</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 12/15/06 21:27, Jiri Kuthan wrote:<br>&gt; At 10:37 15/12/2006, Daniel-Constantin Mierla wrote:<br>&gt;
<br>&gt;<br>&gt;<br>&gt;&gt; On 12/14/06 17:03, samuel wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; It might be due to a DNS query....whenver a request has to be<br>&gt;&gt;&gt; forwarded to a domain, openSER makes a DNS query to resolv the IP.
<br>&gt;&gt;&gt; During this operation, the child processing the request will not<br>&gt;&gt;&gt; answer to further incoming messages.<br>&gt;&gt;&gt;<br>&gt;&gt; If proves to be because of DNS, the best is to install nscd (name service cache daemon) which will speed-up a lot DNS interaction. Having it in the system will help other applications to do DNS queries faster (
e.g., asterisk, mail servers ...). It looks to be really powerful being able to cache many services, not only DNS. It comes packaged with most of common distributions.<br>&gt;&gt;<br>&gt;<br>&gt; Actually we have tried this one and yet another one (whose name I can&#39;t recall)
<br>&gt; and there were some reliability issues. Unfortunately, I remember this very remotely,<br>&gt; cc-ed thus serusers as this debate was there once going on -- hopefuly someone<br>&gt; with better memory than myself will speak up.
<br>&gt;<br>nscd is part of GNU C Library, I am sure a lot of people will be happy<br>to learn about and many will strive to fix as soon as possible, if you<br>can describe the issues you had with it -- it is part of a core
<br>component in all Unixes.<br><br>Also, the name of the other one and the issues will help the developers<br>to make it better -- testing and feedback is the most appreciated.<br><br>Cheers,<br>Daniel<br><br><br><br>&gt; -jiri
<br>&gt;<br>&gt; --<br>&gt; Jiri Kuthan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://iptel.org/~jiri/">http://iptel.org/~jiri/</a><br>&gt;<br>&gt;<br>&gt;<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openser.org">
Users@openser.org</a><br><a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br>