Gets or sets a CDR variable.
All of the CDR field names are read-only, except for
amaflags. You may, however, supply a name not on the above list, and create your own variable, whose value can be changed with this function, and this variable will be stored on the CDR.
Example: Set the userfield
name- CDR field name:
clid- Caller ID.
lastdata- Last application arguments.
disposition- The final state of the CDR.
0- NO ANSWER
1- NO ANSWER (NULL record)
start- Time the call started.
amaflags- R/W the Automatic Message Accounting (AMA) flags on the channel. When read from a channel, the integer value will always be returned. When written to a channel, both the string format or integer value is accepted.
answer- Time the call was answered.
accountcode- The channel's account code.
dcontext- Destination context.
end- Time the call ended.
uniqueid- The channel's unique id.
dstchannel- Destination channel.
duration- Duration of the call.
userfield- The channel's user specified field.
lastapp- Last application.
billsec- Duration of the call once it was answered.
channel- Channel name.
sequence- CDR sequence number.
f- Returns billsec or duration fields as floating point values.
u- Retrieves the raw, unprocessed value.
For example, 'start', 'answer', and 'end' will be retrieved as epoch values, when the
uoption is passed, but formatted as YYYY-MM-DD HH:MM:SS otherwise. Similarly, disposition and amaflags will return their raw integral values.
This documentation was imported from Asterisk Version GIT-18-ff80a61