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

Function pv_get_log_level

pvar.c:4125–4145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4123}
4124
4125static int pv_get_log_level(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
4126{
4127 int l;
4128
4129 if (param==NULL) {
4130 LM_CRIT("BUG - bad parameters\n");
4131 return -1;
4132 }
4133
4134 if(res == NULL) {
4135 return -1;
4136 }
4137
4138 res->ri = *log_level;
4139 res->rs.s = sint2str( (long)res->ri, &l);
4140 res->rs.len = l;
4141
4142 res->flags = PV_VAL_STR|PV_VAL_INT|PV_TYPE_INT;
4143
4144 return 0;
4145}
4146
4147static int pv_set_xlog_level(struct sip_msg* msg, pv_param_t *param, int op,
4148 pv_value_t *val)

Callers

nothing calls this directly

Calls 1

sint2strFunction · 0.85

Tested by

no test coverage detected