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

Function pv_set_ruri

pvar.c:3380–3403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3378}
3379
3380static int pv_set_ruri(struct sip_msg* msg, pv_param_t *param,
3381 int op, pv_value_t *val)
3382{
3383 if(msg==NULL || param==NULL || val==NULL)
3384 {
3385 LM_ERR("bad parameters\n");
3386 return -1;
3387 }
3388
3389 if(!(val->flags&PV_VAL_STR))
3390 {
3391 LM_ERR("str value required to set R-URI\n");
3392 goto error;
3393 }
3394
3395 if (set_ruri( msg, &val->rs)!=0) {
3396 LM_ERR("failed to set RURI\n");
3397 goto error;
3398 }
3399
3400 return 0;
3401error:
3402 return -1;
3403}
3404
3405static int pv_set_ru_q(struct sip_msg* msg, pv_param_t *param,
3406 int op, pv_value_t *val)

Callers

nothing calls this directly

Calls 1

set_ruriFunction · 0.85

Tested by

no test coverage detected