| 613 | |
| 614 | |
| 615 | static 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 | |
| 638 | static inline int _msg_2_branch(struct dset_ctx *dsct, |
no test coverage detected