# 13699: Record: Invalid trim value

Log Type: APPLICATION

Log Level: WARNING

## Description

This warning appears when a Voice recording configuration includes a `trim` value that Twilio does not accept. Use `trim-silence` or `do-not-trim` for both TwiML `<Recording>` and the Recordings resource.

### Possible causes

* The `trim` parameter contains a typo or another unsupported value.
* The request is using a `trim` value that does not match the Voice recording surface you are calling.

### Possible solutions

* Set `trim` to `trim-silence` if you want Twilio to remove leading and trailing silence, or `do-not-trim` if you want to keep the full recording.
* Confirm whether you are starting the recording with TwiML `<Recording>` or with the Recordings resource, then use the documented `trim` values for that surface. TwiML `<Recording>` defaults to `trim-silence`; the Recordings resource defaults to `do-not-trim`.
* Resend the request after correcting the `trim` value.

#### Additional resources

* [TwiML Voice: `<Recording>`](/docs/voice/twiml/recording)
* [Recordings resource](/docs/voice/api/recording)
