Objective
Setting up call recording parameters to record an entire call or part of a call with the Voice API.
Applies To
- Voice API
- Call Recordings
Procedure
When using Voice API to record calls, different parameters in the Record action can change how the call is handled. When using the record action in Voice API, the recording will record the entire call from the time the action is started, unless there is a timeout or end parameter set. When a timeout or end parameter is set, the recording enters a blocking state. When a timeout or end parameter is not set, the recording is not in a blocking state.
Timeout and end parameters are endOnSilence, timeOutI, or endOnKey and when these are set in the record action, the call enters a blocking state and the recording will not end and proceed onto the next action until the parameter has been met. If "endOnKey": "#"
is set, then the call will be recorded from the point the record action starts until the # key is pressed. Once the recording has entered, the call will proceed to the next action.
If you need to record the entire call, the record action should be the first action in the NCCO, and there should be no timeout set. If you want to record everything at the last action and have the recording terminate on disconnect, then the record action should be the last action in the NCCO without a timeout set.
After your recording is complete, it is stored by Vonage for 30 days.
Additional Information
You can find examples in our developer documentation on Voice API > NCCO Reference > Record
Articles in this section
- How do I verify that the Voice API Webhook request and it's payload has not been tampered during transit?
- How To Check Call Quality With Voice Inspector
- What is a Conversation ID?
- How to configure the custom webhook timeout for Voice API functionality and what are the allowed timeout ranges ?
- How do I change TTL for the Conversations and Call Legs?
- Why are call progress events not being received on the Event URL defined in the conversation action NCCO?
- Why is there an extended silence at the beginning of a call and how can it be reduced?
- Intermittent WebSocket Disconnections
- What Is An NCCO
- How Does Jitter Impact Voice Calls