Skip to content
Snippets Groups Projects
  • Tilghman Lesher's avatar
    08af5bb3
    Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating · 08af5bb3
    Tilghman Lesher authored
    when a file is invalid from when a file is missing.  This is most important when
    we have two configuration files.  Consider the following example:
    
    Old system:
    sip.conf     users.conf     Old result               New result
    ========     ==========     ==========               ==========
    Missing      Missing        SIP doesn't load         SIP doesn't load
    Missing      OK             SIP doesn't load         SIP doesn't load
    Missing      Invalid        SIP doesn't load         SIP doesn't load
    OK           Missing        SIP loads                SIP loads
    OK           OK             SIP loads                SIP loads
    OK           Invalid        SIP loads incompletely   SIP doesn't load
    Invalid      Missing        SIP doesn't load         SIP doesn't load
    Invalid      OK             SIP doesn't load         SIP doesn't load
    Invalid      Invalid        SIP doesn't load         SIP doesn't load
    
    So in the case when users.conf doesn't load because there's a typo that
    disrupts the syntax, we may only partially load users, instead of failing with
    an error, which may cause some calls not to get processed.  Worse yet, the old
    system would do this with no indication that anything was even wrong.
    
    (closes issue #10690)
     Reported by: dtyoo
     Patches: 
           20080716__bug10690.diff.txt uploaded by Corydon76 (license 14)
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@142992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    08af5bb3
    History
    Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
    Tilghman Lesher authored
    when a file is invalid from when a file is missing.  This is most important when
    we have two configuration files.  Consider the following example:
    
    Old system:
    sip.conf     users.conf     Old result               New result
    ========     ==========     ==========               ==========
    Missing      Missing        SIP doesn't load         SIP doesn't load
    Missing      OK             SIP doesn't load         SIP doesn't load
    Missing      Invalid        SIP doesn't load         SIP doesn't load
    OK           Missing        SIP loads                SIP loads
    OK           OK             SIP loads                SIP loads
    OK           Invalid        SIP loads incompletely   SIP doesn't load
    Invalid      Missing        SIP doesn't load         SIP doesn't load
    Invalid      OK             SIP doesn't load         SIP doesn't load
    Invalid      Invalid        SIP doesn't load         SIP doesn't load
    
    So in the case when users.conf doesn't load because there's a typo that
    disrupts the syntax, we may only partially load users, instead of failing with
    an error, which may cause some calls not to get processed.  Worse yet, the old
    system would do this with no indication that anything was even wrong.
    
    (closes issue #10690)
     Reported by: dtyoo
     Patches: 
           20080716__bug10690.diff.txt uploaded by Corydon76 (license 14)
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@142992 65c4cc65-6c06-0410-ace0-fbb531ad65f3