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

Function fixup_froute

modules/tm/tm.c:557–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555
556
557static int fixup_froute(void** param)
558{
559 struct script_route_ref *rt;
560
561 rt = ref_script_route_by_name_str( (str*)*param,
562 sroutes->failure, FAILURE_RT_NO, FAILURE_ROUTE, 0);
563 if ( !ref_script_route_is_valid(rt) ) {
564 LM_ERR("failure route <%.*s> does not exist\n",
565 ((str*)*param)->len, ((str*)*param)->s);
566 return -1;
567 }
568
569 *param = (void*)rt;
570
571 return 0;
572}
573
574
575static int fixup_rroute(void** param)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected