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

Function dst_to_msg

modules/tm/t_fwd.c:1058–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056
1057
1058static int dst_to_msg(struct sip_msg *s_msg, struct sip_msg *d_msg)
1059{
1060 /* move RURI */
1061 if (set_ruri( d_msg, GET_RURI(s_msg))<0) {
1062 LM_ERR("failed to set new RURI\n");
1063 return -1;
1064 }
1065
1066 /* move DURI (empty is accepted as reset) */
1067 if (set_dst_uri( d_msg, &s_msg->dst_uri)<0) {
1068 LM_ERR("failed to set DST URI\n");
1069 return -1;
1070 }
1071
1072 /* move PATH (empty is accepted as reset) */
1073 if (set_path_vector( d_msg, & s_msg->path_vec)<0) {
1074 LM_ERR("failed to set PATH\n");
1075 return -1;
1076 }
1077
1078 /* Qval */
1079 set_ruri_q( d_msg, get_ruri_q(s_msg) );
1080
1081 /* BFLAGS */
1082 setb0flags( d_msg, getb0flags(s_msg) );
1083
1084 /* socket info */
1085 d_msg->force_send_socket = s_msg->force_send_socket;
1086
1087 return 0;
1088}
1089
1090
1091int t_wait_no_more_branches( struct cell *t, int extra)

Callers 1

t_inject_branchFunction · 0.85

Calls 3

set_ruriFunction · 0.85
set_dst_uriFunction · 0.85
set_path_vectorFunction · 0.85

Tested by

no test coverage detected