<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Tali,<br>
<br>
Do you see any errors/warning in the log when the 401 is handled ?
If you say that the test is ok if you wait/eliminate the first set
of tests, I would say that there is something wrong with the
testing setup and you get some "interferences" between the 2 sets
of tests (maybe at the TCP connection layer or at the SIP layer).<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 10/23/2017 03:50 PM, Gillon, Tali
via Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAN7N6-H4=1m6y1HAtNvviXSj_4O_cXXtk7+y21Bs1JtePOg2xA@mail.gmail.com">
<div dir="ltr">Hi,
<div>i have the following scenario:</div>
<div><br>
</div>
<div>We have in our tests client and server and between them we
have the opensips server.</div>
<div>The client sends register request to opensips server and
opensips server is supposed to forward it to our server.</div>
<div>Our server sends the answer to opensips server and opensips
server forwards it to client back:</div>
<div><br>
</div>
<div>In the first test the client sends register and the
registrar sends error back (the sip server is a mediator
between them):</div>
<div><br>
</div>
<div>client ---------register-------------------> opensips
server ------------register------------> Our server</div>
<div><br>
</div>
<div>client <-----------404------------------------opensips
server <----------404-------------------- Our server</div>
<div><br>
</div>
<div>The test repeats 3 times each time with a different error
code : 404, 405, 408</div>
<div><br>
</div>
<div>The second test is a simple test of register process:</div>
<div>client sends register to opensips, opensips forwards it to
our server,</div>
<div>Our server returns 401 (asks for authentication) to
opensips and opensips is <b>supposed</b> </div>
<div>to forward it to the client but it never happens.</div>
<div><br>
</div>
<div>I must say that if the first test runs only twice and not
3 times it won't happen and all the tests will pass.</div>
<div><br>
</div>
<div>Also, If I put sleep between the first test and the second
test the test passes also.</div>
<div><br>
</div>
<div>could you check it?</div>
<div>I attached the pcap file.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Tali</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</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>