| 2058 | } |
| 2059 | |
| 2060 | struct 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 | |
| 2081 | struct sip_msg* tm_pv_context_request(struct sip_msg* msg) |
nothing calls this directly
no test coverage detected