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

Function pv_get_line_number

pvar.c:4058–4080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4056}
4057
4058static int pv_get_line_number(struct sip_msg *msg, pv_param_t *param, pv_value_t *res){
4059 int l;
4060 char *ch;
4061
4062 if (param==NULL) {
4063 LM_CRIT("BUG - bad parameters\n");
4064 return -1;
4065 }
4066
4067 if(res == NULL) {
4068 return -1;
4069 }
4070
4071 res->ri = curr_action_line;
4072 ch = int2str( (unsigned long)res->ri, &l);
4073
4074 res->rs.s = ch;
4075 res->rs.len = l;
4076
4077 res->flags = PV_VAL_STR|PV_VAL_INT|PV_TYPE_INT;
4078
4079 return 0;
4080}
4081
4082static int pv_get_cfg_file_name(struct sip_msg *msg, pv_param_t *param, pv_value_t *res){
4083

Callers

nothing calls this directly

Calls 1

int2strFunction · 0.85

Tested by

no test coverage detected