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

Function fixup_rroute

modules/tm/tm.c:575–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573
574
575static 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
593static int fixup_broute(void** param)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected