Menu

#11 Lack of warning/error when calling an undeclared route

trunk
closed-fixed
core (110)
2
2009-03-18
2008-08-21
Anonymous
No

OpenSIPS (Openser neither) will not complain when a route is called but have not been created.

(Sample code just for examplation)

route
{
route(1);
route(2);
route(3);
}

route[1]
{
return(1);
}

route[3]
{
return(1);
}

does not cause any warning, OpenSIPS will start fine and just ignore the route(2); call.

Discussion

  • Bogdan-Andrei Iancu

    • milestone: --> trunk
    • priority: 5 --> 2
    • labels: --> core
     
  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> bogdan_iancu
    • status: open --> pending-fixed
     
  • Bogdan-Andrei Iancu

    Now OpenSIPS will report and fail to start if a call to an undefined route is detected in the script.

    Bogdan

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.