MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / delete_body_part

Function delete_body_part

parser/parse_body.c:431–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430
431int delete_body_part(struct sip_msg *msg, struct body_part *part)
432{
433 if (msg->body==NULL) {
434 LM_BUG("deleting a body part, but body not found/parsed :-/\n");
435 return -1;
436 }
437
438 /* mark the part as deleted */
439 part->flags |= SIP_BODY_PART_FLAG_DELETED;
440
441 msg->body->updated_part_count--;
442
443 return 0;
444}
445
446
447void free_sip_body(struct sip_msg_body *body)

Callers 1

remove_body_part_fFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected