rem: if (body) {
add: LOG(L_ERR, "mangle_message_cpim -1- content_type==%.*s %x (patching %x) bodylen=%d\n", content_type->body.len, content_type->body.s, parsed_content_type, MIMETYPE(MESSAGE,CPIM), body_len); if (body && (parsed_content_type == MIMETYPE(MESSAGE,CPIM))) {
context: int mangle_message_cpim(struct sip_msg* _msg, char* _s1, char* _s2){     char *body = get_body(_msg);     int body_len = strlen(body);     if (body) {	  char *ptr = strstr(body, "\r\n\r\n");	  LOG(L_ERR, "mangle_message_cpim -1-\n");	  if (ptr) {	       char *new_body = body + 4;	       int new_body_len = strlen(new_body);	       LOG(L_ERR, "mangle_message_cpim -2- old_body_len=%d new_body_len=%d\n", body_len, new_body_len);	       //patch_msg(_msg, body, body_len, new_body, new_body_len);	       strcpy(body, new_body);	       memset(body+new_body_len, 0, body_len - new_body_len);	  }     }     LOG(L_ERR, "mangle_message_cpim -3-\n");     return 1;}