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

Function post_print_uac_request

modules/tm/t_fwd.c:260–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260static inline void post_print_uac_request(struct sip_msg *request,
261 const str *org_uri, str *org_dst, struct sip_msg_body *body_clone)
262{
263 reset_init_lump_flags();
264 /* delete inserted branch lumps */
265 del_flaged_lumps( &request->add_rm, LUMPFLAG_BRANCH);
266 del_flaged_lumps( &request->body_lumps, LUMPFLAG_BRANCH);
267 /* free any potential new uri */
268 if (request->new_uri.s!=org_uri->s) {
269 pkg_free(request->new_uri.s);
270 /* and just to be sure */
271 request->new_uri.s = 0;
272 request->new_uri.len = 0;
273 request->parsed_uri_ok = 0;
274 }
275 /* free any potential dst uri */
276 if (request->dst_uri.s!=org_dst->s) {
277 pkg_free(request->dst_uri.s);
278 /* and just to be sure */
279 request->dst_uri.s = 0;
280 request->dst_uri.len = 0;
281 }
282 /* if cloned, restore the original body to the msg */
283 if (body_clone!=NO_BODY_CLONE_MARKER) {
284 free_sip_body(request->body);
285 request->body = body_clone;
286 }
287}
288
289
290int check_and_alloc_branch(struct cell *t, unsigned short branch)

Callers 1

add_uacFunction · 0.85

Calls 2

del_flaged_lumpsFunction · 0.85
free_sip_bodyFunction · 0.85

Tested by

no test coverage detected