]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr: Add asserts for when we don't know about a CDR for a channel
authorMatthew Jordan <mjordan@digium.com>
Tue, 18 Mar 2014 15:28:13 +0000 (15:28 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 18 Mar 2014 15:28:13 +0000 (15:28 +0000)
commit1ce8d38f77b01f9967a589708dd155bdd3c9b354
tree136803895337efca0bb4432fd13263db54d79afc
parentb1f9c22c9854606420108ed97c8d292d4dbb6b43
cdr: Add asserts for when we don't know about a CDR for a channel

In the CDR core, every channel should either be filtered out (due to being an
'internal' channel used as an implementation detail, such as playing media
back into a bridge) or it should get a CDR. Even if that CDR ends up being
discarded, we still give the channel a CDR in case we end up needing it. If we
hit a situation where a channel does not have a CDR, we should blow up in
-dev-mode. Asserts are appropriate for that.

This patch adds those asserts, as they would have quickly caught the error
fixed by r410814.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@410861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cdr.c