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

Function _branch_2_msg

dset.c:615–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613
614
615static inline int _branch_2_msg(struct dset_ctx *dsct,
616 struct msg_branch_wrap *br,struct sip_msg *msg)
617{
618 if (set_ruri( msg, &br->branch.uri))
619 return -1;
620
621 if (set_dst_uri( msg, &br->branch.dst_uri))
622 return -1;
623
624 if (set_path_vector( msg, &br->branch.path))
625 return -1;
626
627 msg->ruri_q = br->branch.q;
628 msg->force_send_socket = br->branch.force_send_socket;
629 msg->ruri_bflags = br->branch.bflags;
630
631 destroy_avp_list( &dsct->ruri_attrs );
632 dsct->ruri_attrs = clone_avp_list(br->branch.attrs);
633
634 return 0;
635}
636
637
638static inline int _msg_2_branch(struct dset_ctx *dsct,

Callers 3

_copy_branchFunction · 0.85
move_msg_branch_to_ruriFunction · 0.85
swap_msg_branchesFunction · 0.85

Calls 5

set_ruriFunction · 0.85
set_dst_uriFunction · 0.85
set_path_vectorFunction · 0.85
destroy_avp_listFunction · 0.85
clone_avp_listFunction · 0.85

Tested by

no test coverage detected