dect
/
asterisk
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
asterisk/res
tilghman 95bae85759 Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
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: http://svn.digium.com/svn/asterisk/trunk@142992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12 23:30:03 +00:00
..
ael Merged revisions 141094 via svnmerge from 2008-09-04 23:31:41 +00:00
ais I'm not sure how these files got to trunk (probably my fault), but they 2008-09-02 15:09:20 +00:00
snmp Make res/snmp/agent.c build 2008-05-02 14:51:59 +00:00
Makefile Make all sed calls Posix sed compatible. 2008-07-13 23:14:03 +00:00
res_adsi.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_ael_share.c remove a bunch of useless #include "options.h" 2007-11-21 23:09:02 +00:00
res_agi.c Merged revisions 141503 via svnmerge from 2008-09-06 15:26:45 +00:00
res_ais.c make the AIS checking a little more generic, and have a more useful configure script command line option for OpenAIS 2008-07-01 17:22:47 +00:00
res_clioriginate.c Merged revisions 102378 via svnmerge from 2008-02-05 15:10:36 +00:00
res_config_curl.c Separate the global initialization routines for cURL into its own separate 2008-06-25 16:00:54 +00:00
res_config_ldap.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_config_odbc.c Merged revisions 129741 via svnmerge from 2008-07-10 21:23:23 +00:00
res_config_pgsql.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_config_sqlite.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_convert.c include "logger.h" and errno.h from asterisk.h - usage shows that they 2007-11-19 18:52:04 +00:00
res_crypto.c make configuration variable const so they are not accidentally 2007-12-18 10:24:58 +00:00
res_curl.c Separate the global initialization routines for cURL into its own separate 2008-06-25 16:00:54 +00:00
res_http_post.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_indications.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_jabber.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_limit.c Janitor project to convert sizeof to ARRAY_LEN macro. 2008-07-08 16:40:28 +00:00
res_monitor.c Fix another spot where a hard-coded '|' hadn't been converted to ',' 2008-02-20 15:21:51 +00:00
res_musiconhold.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_odbc.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_phoneprov.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_realtime.c Older versions of GNU gcc do not allow 'NULL' as sentinel. 2008-06-19 20:48:33 +00:00
res_smdi.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_snmp.c Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating 2008-09-12 23:30:03 +00:00
res_speech.c remove a bunch of useless #include "options.h" 2007-11-21 23:09:02 +00:00
res_timing_dahdi.c - add get_max_rate timing API call 2008-06-26 15:37:01 +00:00
res_timing_pthread.c Merged revisions 140488 via svnmerge from 2008-08-29 17:47:17 +00:00