mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
(Closes issue #11015) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -23,6 +23,8 @@ AMI - The manager (TCP/TLS/HTTP)
|
|||||||
* Added a "ListAllVoicemailUsers" action that allows you to get a list of all
|
* Added a "ListAllVoicemailUsers" action that allows you to get a list of all
|
||||||
the voicemail users setup.
|
the voicemail users setup.
|
||||||
* Added 'DBDel' and 'DBDelTree' manager commands.
|
* Added 'DBDel' and 'DBDelTree' manager commands.
|
||||||
|
* cdr_manager now reports events via the "cdr" level, separating it from
|
||||||
|
the very verbose "call" level.
|
||||||
|
|
||||||
Dialplan functions
|
Dialplan functions
|
||||||
------------------
|
------------------
|
||||||
|
@@ -146,3 +146,7 @@ Manager:
|
|||||||
* The IAXpeers command output has been changed to more closely resemble the
|
* The IAXpeers command output has been changed to more closely resemble the
|
||||||
output of the SIPpeers command.
|
output of the SIPpeers command.
|
||||||
|
|
||||||
|
* cdr_manager now reports at the "cdr" level, not at "call" You may need to
|
||||||
|
change your manager.conf to add the level to existing AMI users, if they
|
||||||
|
want to see the CDR events generated.
|
||||||
|
|
||||||
|
@@ -146,7 +146,7 @@ static int manager_log(struct ast_cdr *cdr)
|
|||||||
pbx_substitute_variables_helper(&dummy, customfields->str, buf, sizeof(buf) - 1);
|
pbx_substitute_variables_helper(&dummy, customfields->str, buf, sizeof(buf) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
manager_event(EVENT_FLAG_CALL, "Cdr",
|
manager_event(EVENT_FLAG_CDR, "Cdr",
|
||||||
"AccountCode: %s\r\n"
|
"AccountCode: %s\r\n"
|
||||||
"Source: %s\r\n"
|
"Source: %s\r\n"
|
||||||
"Destination: %s\r\n"
|
"Destination: %s\r\n"
|
||||||
|
@@ -71,5 +71,5 @@ bindaddr = 0.0.0.0
|
|||||||
;displayconnects = yes ; Display on CLI user login/logoff
|
;displayconnects = yes ; Display on CLI user login/logoff
|
||||||
;
|
;
|
||||||
; Authorization for various classes
|
; Authorization for various classes
|
||||||
;read = system,call,log,verbose,command,agent,user,config,dtmf,reporting
|
;read = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr
|
||||||
;write = system,call,log,verbose,command,agent,user,config,dtmf,reporting
|
;write = system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr
|
||||||
|
@@ -63,6 +63,8 @@
|
|||||||
#define EVENT_FLAG_CONFIG (1 << 7) /* Ability to modify configurations */
|
#define EVENT_FLAG_CONFIG (1 << 7) /* Ability to modify configurations */
|
||||||
#define EVENT_FLAG_DTMF (1 << 8) /* Ability to read DTMF events */
|
#define EVENT_FLAG_DTMF (1 << 8) /* Ability to read DTMF events */
|
||||||
#define EVENT_FLAG_REPORTING (1 << 9) /* Reporting events such as rtcp sent */
|
#define EVENT_FLAG_REPORTING (1 << 9) /* Reporting events such as rtcp sent */
|
||||||
|
#define EVENT_FLAG_CDR (1 << 10) /* CDR events */
|
||||||
|
|
||||||
/* Export manager structures */
|
/* Export manager structures */
|
||||||
#define AST_MAX_MANHEADERS 128
|
#define AST_MAX_MANHEADERS 128
|
||||||
|
|
||||||
|
@@ -309,6 +309,7 @@ static struct permalias {
|
|||||||
{ EVENT_FLAG_CONFIG, "config" },
|
{ EVENT_FLAG_CONFIG, "config" },
|
||||||
{ EVENT_FLAG_DTMF, "dtmf" },
|
{ EVENT_FLAG_DTMF, "dtmf" },
|
||||||
{ EVENT_FLAG_REPORTING, "reporting" },
|
{ EVENT_FLAG_REPORTING, "reporting" },
|
||||||
|
{ EVENT_FLAG_CDR, "cdr" },
|
||||||
{ -1, "all" },
|
{ -1, "all" },
|
||||||
{ 0, "none" },
|
{ 0, "none" },
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user