You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test case where SIPp receives a SIP message carrying a message body with CPIM content (the below extracts are simplified to reflect only the problematic message elements):
The reason is that the get_header method in sip_parser.cpp searches through the entire message, including the message body.
Proposed solution:
*** sip_parser_orig.cpp Thu Mar 17 01:05:48 2016
--- sip_parser.cpp Tue Mar 22 12:59:13 2016
*************** char * get_header(const char* message, c
*** 139,144 ****
--- 139,150 ----
}
src_orig = strdup(message);
+
+ /* find end of SIP headers - perform search only until that */
+ ptr = strstr(src_orig, "\r\n\r\n");
+ if (ptr) {
+ *ptr = 0;
+ }
do {
/* We want to start from the beginning of the message each time
Please comment.
Cheers,
Zoltan
The text was updated successfully, but these errors were encountered:
Zoltan.Toth wrote on sipp-users list:
Hello,
I have a test case where SIPp receives a SIP message carrying a message body with CPIM content (the below extracts are simplified to reflect only the problematic message elements):
UDP message received
CPIM messages can contain From and To headers, and using [last_From:] and [last_To:] on the above message when sending a response yields:
Which is not desirable.
The reason is that the get_header method in sip_parser.cpp searches through the entire message, including the message body.
Proposed solution:
Please comment.
Cheers,
Zoltan
The text was updated successfully, but these errors were encountered: