#include "utils.h"#include "../../parser/msg_parser.h"#include "../../mem/mem.h"#include "../../data_lump.h"#include <stdio.h>

Go to the source code of this file.
Functions | |
| int | patch (struct sip_msg *msg, char *oldstr, unsigned int oldlen, char *newstr, unsigned int newlen) |
| int | patch_content_length (struct sip_msg *msg, unsigned int newValue) |
| int patch | ( | struct sip_msg * | msg, | |
| char * | oldstr, | |||
| unsigned int | oldlen, | |||
| char * | newstr, | |||
| unsigned int | newlen | |||
| ) |
Definition at line 39 of file siputils/utils.c.
References sip_msg::buf, del_lump(), insert_new_lump_after(), LM_ERR, and NULL.
Referenced by decode_contact_header(), encode_contact(), oracle_mod_init(), and patch_content_length().
| int patch_content_length | ( | struct sip_msg * | msg, | |
| unsigned int | newValue | |||
| ) |
Definition at line 70 of file siputils/utils.c.
References hdr_field::body, sip_msg::content_length, HDR_CONTENTLENGTH_F, _str::len, len, LM_DBG, LM_ERR, NULL, parse_headers(), patch(), pkg_free, pkg_malloc, _str::s, s, and snprintf.
1.5.6