[OpenSER-Devel] [ openser-Bugs-1856033 ] cfg.y parser warnings should be errors

SourceForge.net noreply at sourceforge.net
Wed Feb 6 16:25:45 UTC 2008


Bugs item #1856033, was opened at 2007-12-21 20:10
Message generated for change (Comment added) made by henningw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1856033&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: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 1
Private: No
Submitted By: Matt Reilly (sipphonematt)
>Assigned to: Henning Westerholt (henningw)
Summary: cfg.y parser warnings should be errors 

Initial Comment:
If openser is compiled w/o tls, tcp or mcast support, then if a config file references one of those protocols that are not compiled in, it calls warn() which prints out a message with LM_WARN().

However, warn() also increments cfg_errors which causes the parsing process to fail and openser exit.

Warnings should not prevent the application from starting so either:

1) The error messages should printed with LM_ERR() instead.
OR
2) warn() should not increment cfg_errors so the openser can continue running.




More information about the Devel mailing list