ResetCDR([options])
Full arguments reference
optionsv- Save the CDR variables during the reset.
This application causes the Call Data Record to be reset. Depending on the flags passed in, this can have several effects. With no options, a reset does the following:
-
The
starttime is set to the current time. -
If the channelA single call leg passing through Asterisk. Channels represent connections to endpoints and are what dialplan applications act on. is answered, the
answertime is set to the current time. -
All variables are wiped from the CDRCall Detail Record. The per-call accounting data Asterisk writes (start, answer, and end times, duration, disposition) to files or databases.. Note that this step can be prevented with the
voption.
optionsv- Save the CDR variables during the reset.
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.