dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 283230 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r283230 | russell | 2010-08-23 08:23:12 -0500 (Mon, 23 Aug 2010) | 7 lines
  
  Make the AST_CEL_AMA enum match up with the AST_CDR_ ama flag values.
  
  Really, having 2 enums for this is silly and error prone, demonstrated by
  the crash that I hit because there was an assumption in the code that the
  values in each matched up.  However, this is a quick fix to get them to
  match up so it will work.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@283232 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2010-08-23 13:23:37 +00:00
parent 2ea2bc1146
commit b63db73c09
2 changed files with 7 additions and 1 deletions

View File

@ -35,8 +35,13 @@ extern "C" {
#include "asterisk/event.h"
/*! \brief AMA Flags */
/*!
* \brief AMA Flags
*
* \note This must much up with the AST_CDR_* defines for AMA flags.
*/
enum ast_cel_ama_flag {
AST_CEL_AMA_FLAG_NONE,
AST_CEL_AMA_FLAG_OMIT,
AST_CEL_AMA_FLAG_BILLING,
AST_CEL_AMA_FLAG_DOCUMENTATION,

View File

@ -122,6 +122,7 @@ static const char * const cel_event_types[CEL_MAX_EVENT_IDS] = {
* \brief Map of ast_cel_ama_flags to strings
*/
static const char * const cel_ama_flags[AST_CEL_AMA_FLAG_TOTAL] = {
[AST_CEL_AMA_FLAG_NONE] = "NONE",
[AST_CEL_AMA_FLAG_OMIT] = "OMIT",
[AST_CEL_AMA_FLAG_BILLING] = "BILLING",
[AST_CEL_AMA_FLAG_DOCUMENTATION] = "DOCUMENTATION",