I noticed this problem when using the [routes] keyword. The Route header 
produced looks like this:

Route: : <sip:host:port;...>

The extra ":" character seems to be from an off-by-one error inside 
call::get_header(). I've attached a patch against sipp-2.0 that worked for me.

Cheers
Ben
-- 
Ben Evans / Software Engineer / Open Cloud / http://www.opencloud.com
--- call.cpp	2007-04-27 02:45:51.000000000 +1200
+++ call.cpp	2007-05-14 17:34:35.000000000 +1200
@@ -1156,7 +1156,7 @@
     while(src = strcasestr2(src, src_tmp)) {
       if (content) {
 	/* just want the header's content */
-	src += strlen(name);
+	src += strlen(name) + 1;
       } else {
 	src++;
       }
@@ -1180,6 +1180,7 @@
 	  *(dest--) = 0;
 	}
 
+    dest++;
 	dest += sprintf(dest, ",");
 
 	/* We only want to append the contents of the header, not its name for
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to