[Kamailio-Devel] [ openser-Bugs-2065069 ] Lack of warning/error when calling an undeclared route

SourceForge.net noreply at sourceforge.net
Fri Aug 22 08:55:41 CEST 2008


Bugs item #2065069, was opened at 2008-08-21 18:31
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2065069&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: core
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: Lack of warning/error when calling an undeclared route

Initial Comment:
Kamailio (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, Kamailio will start fine and just ignore the route(2); call.


----------------------------------------------------------------------

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-22 09:55

Message:
Logged In: YES 
user_id=1246013
Originator: NO

A fix to print a warning message at startup is now on SVN. Please check
out and report back if something is wrong.

----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2008-08-22 09:42

Message:
Logged In: YES 
user_id=1246013
Originator: NO

There is a warning at runtime: "null action list (rec_level=%d)", but is
not specific for route blocks only.

I think would it be better to have the check at startup, and print a
warning then.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2065069&group_id=139143



More information about the Devel mailing list