Hi, sipp version 3.1 has a bug in call.cpp in function get_remote_port_media(). The function improperly calculates the start position of the port.
Also gcc-4.3.2 doesn't compile call.cpp and scenario.cpp since these files use INT_MAX and dont include limits.h.
I am providing two patch files which fix the bugs. BR, Dmitry
diff -urb sipp.svn_orig/call.cpp sipp.svn_fixed/call.cpp --- sipp.svn_orig/call.cpp 2008-12-19 13:14:51.000000000 +0300 +++ sipp.svn_fixed/call.cpp 2008-12-19 13:18:33.000000000 +0300 @@ -35,6 +35,7 @@ * Michael Dwyer from Cibation */ +#include <climits> #include <iterator> #include <algorithm> #include <fstream> diff -urb sipp.svn_orig/scenario.cpp sipp.svn_fixed/scenario.cpp --- sipp.svn_orig/scenario.cpp 2008-12-19 13:14:51.000000000 +0300 +++ sipp.svn_fixed/scenario.cpp 2008-12-19 13:18:48.000000000 +0300 @@ -26,6 +26,7 @@ * Charles P. Wright from IBM Research */ +#include <climits> #include <stdlib.h> #include "sipp.hpp" #ifdef HAVE_GSL
diff -urb sipp.svn_orig/call.cpp sipp.svn_fixed/call.cpp --- sipp.svn_orig/call.cpp 2008-12-19 13:14:51.000000000 +0300 +++ sipp.svn_fixed/call.cpp 2008-12-19 13:16:34.000000000 +0300 @@ -192,7 +192,7 @@ /* m=audio not found */ return 0; } - begin += strlen(pattern) - 1; + begin += strlen(pattern); end = strstr(begin, "\r\n"); if (!end) ERROR("get_remote_port_media: no CRLF found");
------------------------------------------------------------------------------
_______________________________________________ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users