ForkCDR([options])
Full arguments reference
optionsa- If the channel is answered, set the answer time on the forked CDR to the current time. If this option is not used, the answer time on the forked CDR will be the answer time on the original CDR. If the channel is not answered, this option has no effect. Note that this option is implicitly assumed if theroption is used.e- End (finalize) the original CDR.r- Reset the start and answer times on the forked CDR. This will set the start and answer times (if the channel is answered) to be set to the current time. Note that this option implicitly assumes theaoption.-
v- Do not copy CDR variables and attributes from the original CDR to the forked CDR.Warning
This option has changed. Previously, the variables were removed from the original CDR. This no longer occurs - this option now controls whether or not a forked CDR inherits the variables from the original CDR.
Causes the Call Data Record engine to fork a new CDR starting from the time the application is executed. The forked CDR will be linked to the end of the CDRs associated with the channel.
optionsa- If the channel is answered, set the answer time on the forked CDR to the current time. If this option is not used, the answer time on the forked CDR will be the answer time on the original CDR. If the channel is not answered, this option has no effect. Note that this option is implicitly assumed if theroption is used.e- End (finalize) the original CDR.r- Reset the start and answer times on the forked CDR. This will set the start and answer times (if the channel is answered) to be set to the current time. Note that this option implicitly assumes theaoption.-
v- Do not copy CDR variables and attributes from the original CDR to the forked CDR.Warning
This option has changed. Previously, the variables were removed from the original CDR. This no longer occurs - this option now controls whether or not a forked CDR inherits the variables from the original CDR.
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.