res_config_sqlite: Check for CDR unregistration failures
authorMatthew Jordan <mjordan@digium.com>
Sun, 8 Dec 2013 05:59:46 +0000 (05:59 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 8 Dec 2013 05:59:46 +0000 (05:59 +0000)
commiteb4aa1f0a8f8111f2607b4e8e207be3b41cf62fe
tree8c2adfef5a8690cf3f4eddf5ab66c1c083dcf2a6
parentae92549c934d80d70309f26f758afc3d7910bc07
res_config_sqlite: Check for CDR unregistration failures

If the CDR unregistration fails due to an inflight CDR, the
res_config_sqlite module needs to bail on unloading itself. Otherwise,
the config could be unloaded (including the CDR table name) while the
CDR engine posts a CDR to the still registered backend, resulting in
a crash.
........

Merged revisions 403435 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_config_sqlite.c