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

Function pv_get_strintval

pvar.c:217–227  ·  view source on GitHub ↗

* convert str-int to pv_value_t (type is str) */

Source from the content-addressed store, hash-verified

215 * convert str-int to pv_value_t (type is str)
216 */
217static int pv_get_strintval(struct sip_msg *msg, pv_param_t *param,
218 pv_value_t *res, str *sval, int ival)
219{
220 if(res==NULL)
221 return -1;
222
223 res->rs = *sval;
224 res->ri = ival;
225 res->flags = PV_VAL_STR|PV_VAL_INT;
226 return 0;
227}
228
229/**
230 * convert int-str to pv_value_t (type is int)

Callers 5

pv_get_markerFunction · 0.85
pv_get_timefFunction · 0.85
pv_get_methodFunction · 0.85
pv_get_xuri_attrFunction · 0.85
pv_get_dsturi_attrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected