| 3349 | } |
| 3350 | |
| 3351 | static 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; |
| 3376 | error: |
| 3377 | return -1; |
| 3378 | } |
| 3379 | |
| 3380 | static int pv_set_ruri(struct sip_msg* msg, pv_param_t *param, |
| 3381 | int op, pv_value_t *val) |
nothing calls this directly
no test coverage detected