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.
maxLength
value is not set, it defaults to 60 seconds.maxLength
is < 1 or an invalid integer, it will trigger the error “Record ‘maxLength’ must be a positive integer” and disconnect the call.maxLength
is > 1 and a valid integer, it will be set to the value.