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

Function fix_rls

route.c:1638–1705  ·  view source on GitHub ↗

! \brief fixes all action tables * \return 0 if ok , <0 on error */

Source from the content-addressed store, hash-verified

1636 * \return 0 if ok , <0 on error
1637 */
1638int fix_rls(void)
1639{
1640 int i, ret;
1641
1642 for(i=0;i<RT_NO;i++){
1643 if(sroutes->request[i].a){
1644 if ((ret=fix_actions(sroutes->request[i].a))!=0){
1645 return ret;
1646 }
1647 }
1648 }
1649 for(i=0;i<ONREPLY_RT_NO;i++){
1650 if(sroutes->onreply[i].a){
1651 if ((ret=fix_actions(sroutes->onreply[i].a))!=0){
1652 return ret;
1653 }
1654 }
1655 }
1656 for(i=0;i<FAILURE_RT_NO;i++){
1657 if(sroutes->failure[i].a){
1658 if ((ret=fix_actions(sroutes->failure[i].a))!=0){
1659 return ret;
1660 }
1661 }
1662 }
1663 for(i=0;i<BRANCH_RT_NO;i++){
1664 if(sroutes->branch[i].a){
1665 if ((ret=fix_actions(sroutes->branch[i].a))!=0){
1666 return ret;
1667 }
1668 }
1669 }
1670 if(sroutes->error.a){
1671 if ((ret=fix_actions(sroutes->error.a))!=0){
1672 return ret;
1673 }
1674 }
1675 if(sroutes->local.a){
1676 if ((ret=fix_actions(sroutes->local.a))!=0){
1677 return ret;
1678 }
1679 }
1680 if(sroutes->startup.a){
1681 if ((ret=fix_actions(sroutes->startup.a))!=0){
1682 return ret;
1683 }
1684 }
1685
1686 for(i = 0; i< TIMER_RT_NO; i++) {
1687 if(sroutes->timer[i].a == NULL)
1688 break;
1689
1690 if ((ret=fix_actions(sroutes->timer[i].a))!=0){
1691 return ret;
1692 }
1693 }
1694
1695 for(i = 1; i< EVENT_RT_NO; i++) {

Callers 2

routes_reload_per_procFunction · 0.85
reload_routing_scriptFunction · 0.85

Calls 1

fix_actionsFunction · 0.85

Tested by

no test coverage detected