recordSession="true" silently initiates a recording of the call in the background.
To record just the conversation between the A leg and the connected B leg (initiated using the Dial XML element), add a Record XML element with startOnDialAnswer="true" just before the Dial XML.
In either scenario, the call is recorded until it’s hung up or the maxLength recording duration is reached. Set maxLength to a high value based on the maximum duration you expect your calls to go on for.
- If the
maxLengthvalue is not set, it defaults to 60 seconds. - If
maxLengthis < 1 or an invalid integer, it will trigger the error “Record ‘maxLength’ must be a positive integer” and disconnect the call. - If
maxLengthis > 1 and a valid integer, it will be set to the value.
- LATEST
- LEGACY
- LATEST
- LEGACY