summaryrefslogtreecommitdiff
path: root/doc/README.variables
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-02-23 22:48:47 +0000
committerMark Spencer <markster@digium.com>2005-02-23 22:48:47 +0000
commitb6c4282a03377890cbb866d8a066cce61a742ef8 (patch)
tree5cac482ff6e93ba883893efeabb3ed534e83e9d0 /doc/README.variables
parent7954654d15209a5859d5feb02c13a1d96548e698 (diff)
Merge anthm's CDR updates (bug #3595)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc/README.variables')
-rwxr-xr-xdoc/README.variables30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/README.variables b/doc/README.variables
index fb9e6f913..4195f299b 100755
--- a/doc/README.variables
+++ b/doc/README.variables
@@ -456,3 +456,33 @@ ${OSPDEST} OSP Destination from Library
${OSPTOKEN} OSP Token to use for call from Library
${OSPRESULTS} Number of OSP results
+____________________________________
+CDR Variables
+------------------------------------
+
+If the channel has a cdr, that cdr record has it's own set of variables which
+can be accessed just like channel variables. The following builtin variables
+are available.
+
+${CDR(clid)} Caller ID
+${CDR(src)} Source
+${CDR(dst)} Destination
+${CDR(dcontext)} Destination context
+${CDR(channel)} Channel name
+${CDR(dstchannel)} Destination channel
+${CDR(lastapp)} Last app executed
+${CDR(lastdata)} Last app's arguments
+${CDR(start)} Time the call started.
+${CDR(answer)} Time the call was answered.
+${CDR(end)} Time the call ended.
+${CDR(duration)} Duration of the call.
+${CDR(billsec)} Duration of the call once it was answered.
+${CDR(disposition)} ANSWERED, NO ANSWER, BUSY
+${CDR(amaflags)} DOCUMENTATION, BILL, IGNORE etc
+${CDR(accountcode)} The channel's account code.
+${CDR(uniqueid)} The channel's unique id.
+${CDR(userfield)} The channels uses specified field.
+
+
+In addition, you can set your own extra variables with a traditional
+SetVAR(CDR(var)=val) to anything you want.