| 573 | |
| 574 | |
| 575 | static int fixup_rroute(void** param) |
| 576 | { |
| 577 | struct script_route_ref *rt; |
| 578 | |
| 579 | rt = ref_script_route_by_name_str( (str*)*param, |
| 580 | sroutes->onreply, ONREPLY_RT_NO, ONREPLY_ROUTE, 0); |
| 581 | if ( !ref_script_route_is_valid(rt) ) { |
| 582 | LM_ERR("onreply route <%.*s> does not exist\n", |
| 583 | ((str*)*param)->len, ((str*)*param)->s); |
| 584 | return -1; |
| 585 | } |
| 586 | |
| 587 | *param = (void*)rt; |
| 588 | |
| 589 | return 0; |
| 590 | } |
| 591 | |
| 592 | |
| 593 | static int fixup_broute(void** param) |
nothing calls this directly
no test coverage detected