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

Function print_uac_request

modules/tm/t_fwd.c:238–257  ·  view source on GitHub ↗

be aware and use it *all* the time between pre_* and post_* functions! */

Source from the content-addressed store, hash-verified

236
237/* be aware and use it *all* the time between pre_* and post_* functions! */
238static 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
260static inline void post_print_uac_request(struct sip_msg *request,

Callers 1

update_uac_dstFunction · 0.85

Calls 1

Tested by

no test coverage detected