| 3378 | } |
| 3379 | |
| 3380 | static 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; |
| 3401 | error: |
| 3402 | return -1; |
| 3403 | } |
| 3404 | |
| 3405 | static int pv_set_ru_q(struct sip_msg* msg, pv_param_t *param, |
| 3406 | int op, pv_value_t *val) |
nothing calls this directly
no test coverage detected