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

Function pv_get_strval

pvar.c:203–212  ·  view source on GitHub ↗

* convert str to pv_value_t */

Source from the content-addressed store, hash-verified

201 * convert str to pv_value_t
202 */
203int pv_get_strval(struct sip_msg *msg, pv_param_t *param,
204 pv_value_t *res, str *sval)
205{
206 if(res==NULL)
207 return -1;
208
209 res->rs = *sval;
210 res->flags = PV_VAL_STR;
211 return 0;
212}
213
214/**
215 * convert str-int to pv_value_t (type is str)

Callers 15

pv_get_sdp_lineFunction · 0.85
pv_get_sdp_streamFunction · 0.85
pv_get_sdp_sessionFunction · 0.85
xlog.cFile · 0.85
pv_get_routeFunction · 0.85
pv_get_route_nameFunction · 0.85
pv_get_route_typeFunction · 0.85
pv_get_reasonFunction · 0.85
pv_get_ruriFunction · 0.85
pv_get_ouriFunction · 0.85
pv_get_xuri_attrFunction · 0.85
pv_get_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected