be aware and use it *all* the time between pre_* and post_* functions! */
| 236 | |
| 237 | /* be aware and use it *all* the time between pre_* and post_* functions! */ |
| 238 | static inline char *print_uac_request(struct sip_msg *i_req, unsigned int *len, |
| 239 | const struct socket_info *send_sock, enum sip_protos proto ) |
| 240 | { |
| 241 | char *buf; |
| 242 | str *cid = NULL; |
| 243 | |
| 244 | if (1/* TODO: check if the cid should be used */) |
| 245 | cid = tm_via_cid(); |
| 246 | |
| 247 | /* build the shm buffer now */ |
| 248 | buf=build_req_buf_from_sip_req( i_req, len, send_sock, proto, |
| 249 | cid, MSG_TRANS_SHM_FLAG); |
| 250 | if (!buf) { |
| 251 | LM_ERR("no more shm_mem\n"); |
| 252 | ser_error=E_OUT_OF_MEM; |
| 253 | return NULL; |
| 254 | } |
| 255 | |
| 256 | return buf; |
| 257 | } |
| 258 | |
| 259 | |
| 260 | static inline void post_print_uac_request(struct sip_msg *request, |
no test coverage detected