From: <oja...@us...> - 2006-10-23 20:03:11
|
Revision: 63 http://svn.sourceforge.net/sipp/?rev=63&view=rev Author: ojacques Date: 2006-10-23 13:03:07 -0700 (Mon, 23 Oct 2006) Log Message: ----------- Fix: bug with CSeq increment in case of TCP with retry - provided by Peter Higginson Modified Paths: -------------- sipp/trunk/call.cpp Modified: sipp/trunk/call.cpp =================================================================== --- sipp/trunk/call.cpp 2006-10-23 19:59:54 UTC (rev 62) +++ sipp/trunk/call.cpp 2006-10-23 20:03:07 UTC (rev 63) @@ -1359,13 +1359,15 @@ * Note that cseq is only used by the [cseq] keyword, and * not by default */ - + + int incr_cseq = 0; if (strncmp(::scenario[msg_index]->send_scheme,"ACK",3) && strncmp(::scenario[msg_index]->send_scheme,"CANCEL",6) && strncmp(::scenario[msg_index]->send_scheme,"SIP/2.0",7)) { ++cseq; + incr_cseq = 1; } - + if ((ctrlEW) || (poll_flag_write)) { send_status = -1; } else { @@ -1375,6 +1377,7 @@ if(send_status == -1) { /* Would Block on TCP */ if (msg_index == 0 ) delete_call(id) ; + if (incr_cseq) --cseq; return true; /* No step, nothing done, retry later */ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |