<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
Well, then your only onption might be to get a hub and connect an other machine to it running tcpdump/ngrep instead of running it locally. Also, look at your switches, maybe they have port mirriring ?<BR>
<BR>
On Thu, 2008-12-11 at 17:22 +0100, Aurelien Grimaud wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Well, it seems hard to reproduce with ngrep running ..
It seems like the timing is not the same anymore and ngrep slow down the 
computer just enough for bug not to trigger.
I tried many times and the result is that when ngrep is not running, the 
bug shows up, while wth ngrep it stay hidden.
I hope last log from sipp were enough.

However, this retransmission should not disturb the remote user and 
while nasty race should be handled, this is minor for me.
My real problem, concerns transaction module too and is more troubling.
This is the one I related in 
<A HREF="http://lists.kamailio.org/pipermail/users/2008-December/020882.html">http://lists.kamailio.org/pipermail/users/2008-December/020882.html</A>

I use this timer triggering to fail over another end user and implement 
serial forking.
If the timer triggers while it should not, I will initiate a second call 
to another destination, which is wrong.

Any idea on this one ?

This is while trying to reproduce it that I found those weird 
retransmission.
I'll try and trigger this initial bug again.

Regards

Aurelien

Aurelien Grimaud a &#233;crit :
&gt; Sure, meanwhile here are messages provided by sipp
&gt; UAS side and UAC side.
&gt; UAC contains only the 10 calls done
&gt; UAS contains much more as I was trying to reproduce it with 1 call at 
&gt; a time.
&gt;
&gt; Aurelien
&gt;
&gt; Daniel-Constantin Mierla a &#233;crit :
&gt;&gt; Can you please make the test again and send along with the debug 
&gt;&gt; messages the sip trace?
&gt;&gt;
&gt;&gt; ngrep -d any -qt -W byline port 5060
&gt;&gt;
&gt;&gt; I want to check the sip messages as well.
&gt;&gt;
&gt;&gt; Thank you,
&gt;&gt; Daniel
&gt;&gt;
&gt;&gt;
&gt;&gt; On 12/11/08 16:19, Aurelien Grimaud wrote:
&gt;&gt;&gt; Answer waiting for approval : logs too big !
&gt;&gt;&gt;
&gt;&gt;&gt; Here is a lighter one.
&gt;&gt;&gt;
&gt;&gt;&gt; My answer was
&gt;&gt;&gt;&gt; Thanks for the patch.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; With 1 call at a time, the bug does not trigger anymore.
&gt;&gt;&gt;&gt; However, with 2 calls at a time it was triggered again on BYE.
&gt;&gt;&gt;&gt; Attached log is result of my testing.
&gt;&gt;&gt;&gt; 1 sipp as uac make 10 calls with 2 simultaneous calls allowed.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; The call callid=7-22285-127.0.0.1 request resending of BYE message 
&gt;&gt;&gt;&gt; at 14:21:07.563004, though we have a 200 ok on BYE at 
&gt;&gt;&gt;&gt; 14:21:07.156865 (pid=21493)
&gt;&gt;&gt;&gt; Bye request (pid=21495) was not finished to be treated at the time 
&gt;&gt;&gt;&gt; 200 ok was received.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; This was done with my module active.
&gt;&gt;&gt;&gt; I'll make new tests without it.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Regards,
&gt;&gt;&gt;&gt; Aurelien 
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Daniel-Constantin Mierla a &#233;crit :
&gt;&gt;&gt;&gt; ... disregard the previous patch, please use this one. It was not 
&gt;&gt;&gt;&gt; the latest. Thanks,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On 12/10/08 23:52, Daniel-Constantin Mierla wrote:
&gt;&gt;&gt;&gt;&gt; Hello,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On 12/09/08 20:41, Aurelien Grimaud wrote:
&gt;&gt;&gt;&gt;&gt;&gt; Daniel-Constantin Mierla a &#233;crit :
&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt; On 12/09/08 18:52, Aurelien Grimaud wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I am able to reproduce it with 1 call / second without my 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; module on BYE requests.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; here are traces.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;       
&gt;&gt;&gt;&gt;&gt;&gt;&gt; there is a race (at least), indeed. It happens when there is 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; fast reply. I am going to send you a patch soon for testing, you 
&gt;&gt;&gt;&gt;&gt;&gt;&gt; use svn branch 1.4 or the tarball?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;     
&gt;&gt;&gt;&gt;&gt;&gt; Great, I use the kamailio-1.4.2-notls tarball.
&gt;&gt;&gt;&gt;&gt;&gt; But I can test any SVN branch / trunk if you wish.
&gt;&gt;&gt;&gt;&gt;&gt;   
&gt;&gt;&gt;&gt;&gt; can you test the attached patch with SVN trunk? Let me know the 
&gt;&gt;&gt;&gt;&gt; results. Pay attention to see if breaks something else, not just 
&gt;&gt;&gt;&gt;&gt; if fixes the reported issue. I let there some debug messages, to 
&gt;&gt;&gt;&gt;&gt; help troubleshooting, if the fix is ok, I'll remove them before 
&gt;&gt;&gt;&gt;&gt; committing.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Aurelien
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; ps: I added the ms on Logs.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Aurelien
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Daniel-Constantin Mierla a &#233;crit :
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On 12/09/08 17:56, Klaus Darilion wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;    
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Daniel-Constantin Mierla schrieb:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;          
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Hello,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; On 12/09/08 17:31, Klaus Darilion wrote:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Aurelien Grimaud schrieb:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                      
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Fair enough.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; If no one already experienced this strange behavior, it 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; should be my module ...
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; I'll try to make it again without my module.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                                       
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; See my other email.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;  
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                      
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; However, in the log, after the 200 response, there is a 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; cleanup_uac_timers: RETR/FR timers reset.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; So those timers are cleared.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                                       
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; But the problem is, that the process which handles the 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; INVITE has not finished yet and those (re)SETS the timer.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; @Daniel - Have you investigated the problem?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                               
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; so this is the half of the issue reported via:
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; <A HREF="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2105813&amp;group_id=139143&amp;atid=743020">https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2105813&amp;group_id=139143&amp;atid=743020</A> 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                       
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; yes.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Can it be related to other modules which register callbacks 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (e.g. pua module or Aurelien's module?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;                 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; what is the requests/second rate when the issue appears?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; At first look, between sending and setting retransmission 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; timer, there is no much processing for the request. The 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; callback executed there is in use by siptrace, are you using 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; this module?
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;         
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; This one got lost, but as I started to fix the other half 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; (replying using proper mode to do retransmission), will 
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; investigate this as well ...
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;             
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt;&gt; Users mailing list
&gt;&gt;&gt;&gt;&gt;&gt; <A HREF="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</A>
&gt;&gt;&gt;&gt;&gt;&gt; <A HREF="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</A>
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; ------------------------------------------------------------------------ 
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt; Users mailing list
&gt;&gt;&gt;&gt;&gt; <A HREF="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</A>
&gt;&gt;&gt;&gt;&gt; <A HREF="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</A>
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;
&gt; ------------------------------------------------------------------------
&gt;
&gt; _______________________________________________
&gt; Devel mailing list
&gt; <A HREF="mailto:Devel@lists.kamailio.org">Devel@lists.kamailio.org</A>
&gt; <A HREF="http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel">http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel</A>
&gt;   



_______________________________________________
Users mailing list
<A HREF="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</A>
<A HREF="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</A>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">J&#233;r&#244;me Martin </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#bebebe">| </FONT></FONT></B><B><FONT SIZE="2"><FONT COLOR="#99cc00">LongPhone</FONT></FONT></B><BR>
<B><FONT SIZE="2"><FONT COLOR="#808080">Responsable Architecture R&#233;seau</FONT></FONT></B><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">122, rue la Boetie | 75008 Paris </FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Tel :&nbsp; +33 (0)1 56 26 28 44</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#bebebe">Fax : +33 (0)1 56 26 28 45</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Mail :</FONT><FONT COLOR="#99cc00"> </FONT><FONT COLOR="#99cc00"><B><FONT SIZE="2">jmartin</FONT></B></FONT><FONT SIZE="2"><FONT COLOR="#bebebe">@longphone.fr</FONT></FONT><BR>
<FONT COLOR="#c0c0c0">Web :</FONT><FONT COLOR="#99cc00"> <A HREF="http://www.longphone.com">www.longphone.com</A></FONT><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>