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

Function pv_set_dsturi

pvar.c:3351–3378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3349}
3350
3351static int pv_set_dsturi(struct sip_msg* msg, pv_param_t *param,
3352 int op, pv_value_t *val)
3353{
3354 if(msg==NULL || param==NULL)
3355 {
3356 LM_ERR("bad parameters\n");
3357 return -1;
3358 }
3359
3360 if(val == NULL)
3361 {
3362 reset_dst_uri(msg);
3363
3364 return 1;
3365 }
3366 if(!(val->flags&PV_VAL_STR))
3367 {
3368 LM_ERR("error - str value required to set dst uri\n");
3369 goto error;
3370 }
3371
3372 if(set_dst_uri(msg, &val->rs)!=0)
3373 goto error;
3374
3375 return 0;
3376error:
3377 return -1;
3378}
3379
3380static int pv_set_ruri(struct sip_msg* msg, pv_param_t *param,
3381 int op, pv_value_t *val)

Callers

nothing calls this directly

Calls 2

reset_dst_uriFunction · 0.85
set_dst_uriFunction · 0.85

Tested by

no test coverage detected