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

Function tm_pv_context_reply

modules/tm/tm.c:2060–2078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2058}
2059
2060struct sip_msg* tm_pv_context_reply(struct sip_msg* msg)
2061{
2062 struct cell* trans = get_t();
2063 int branch;
2064
2065 if(trans == NULL || trans == T_UNDEFINED)
2066 {
2067 LM_ERR("No transaction found\n");
2068 return NULL;
2069 }
2070
2071 if ( (branch=t_get_picked_branch())<0 )
2072 {
2073 LM_CRIT("no picked branch (%d) for a final response\n", branch);
2074 return 0;
2075 }
2076
2077 return TM_BRANCH(trans,branch).reply;
2078}
2079
2080
2081struct sip_msg* tm_pv_context_request(struct sip_msg* msg)

Callers

nothing calls this directly

Calls 2

get_tFunction · 0.85
t_get_picked_branchFunction · 0.85

Tested by

no test coverage detected