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

Function pv_get_path

pvar.c:737–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737static int pv_get_path(struct sip_msg *msg, pv_param_t *param,
738 pv_value_t *res)
739{
740 if(msg==NULL)
741 return -1;
742
743 if(!msg->path_vec.s)
744 {
745 return pv_get_null(msg, param, res);
746 }
747 return pv_get_strval(msg, param, res, &msg->path_vec);
748}
749
750#define CT_NAME_S "name"
751#define CT_NAME_LEN (sizeof(CT_NAME_S)-1)

Callers

nothing calls this directly

Calls 2

pv_get_nullFunction · 0.85
pv_get_strvalFunction · 0.85

Tested by

no test coverage detected