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

Function pv_set_dsturi_host

pvar.c:3480–3501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3478}
3479
3480static int pv_set_dsturi_host(struct sip_msg* msg, pv_param_t *param,
3481 int op, pv_value_t *val)
3482{
3483 if(msg==NULL || param==NULL || val==NULL)
3484 {
3485 LM_ERR("bad parameters\n");
3486 return -1;
3487 }
3488
3489 if(!(val->flags&PV_VAL_STR))
3490 {
3491 LM_ERR("str value required to set DST-URI hostname\n");
3492 return -1;
3493 }
3494
3495 if (set_dst_host_port(msg, &val->rs, NULL) < 0) {
3496 LM_ERR("Failed to set DST-URI host\n");
3497 return -1;
3498 }
3499
3500 return 0;
3501}
3502
3503static int pv_set_dsturi_port(struct sip_msg* msg, pv_param_t *param,
3504 int op, pv_value_t *val)

Callers

nothing calls this directly

Calls 1

set_dst_host_portFunction · 0.85

Tested by

no test coverage detected