| 3478 | } |
| 3479 | |
| 3480 | static 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 | |
| 3503 | static int pv_set_dsturi_port(struct sip_msg* msg, pv_param_t *param, |
| 3504 | int op, pv_value_t *val) |
nothing calls this directly
no test coverage detected