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

Function clone_avp_list

usr_avp.c:622–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621
622struct usr_avp *clone_avp_list(struct usr_avp *old)
623{
624 struct usr_avp *a;
625 int_str val;
626
627 if (!old) return NULL;
628
629 /* create a copy of the old AVP */
630 get_avp_val( old, &val );
631 a = new_avp( old->flags, old->id, val);
632 if (a==NULL) {
633 LM_ERR("cloning failed, trunking the list\n");
634 return NULL;
635 }
636
637 a->next = clone_avp_list(old->next);
638 return a;
639}
640
641
642struct usr_avp** set_bavp_list(struct usr_avp **list)

Callers 9

_branch_2_msgFunction · 0.85
_msg_2_branchFunction · 0.85
_copy_branchFunction · 0.85
notify_ebr_subscriptionsFunction · 0.85
b2b_sdp_demux_startFunction · 0.85
b2b_send_indlg_reqFunction · 0.85
bridging_new_clientFunction · 0.85

Calls 2

get_avp_valFunction · 0.85
new_avpFunction · 0.85

Tested by

no test coverage detected