Reputation: 776
I am working in twilio call and recording process , everything going fine till the call goes below 1 hour , if it exceeds i got response like this 'i got TIMEOUT'
**[Called] => +18445184466
[Digits] => timeout
[RecordingUrl] => https://api.twilio.com/2010-04-01/Accounts/AC0208c3ffe80b07bebe8ca07eea206179/Recordings/REc0726376f9485aa2005870bc6f9f3ce8**
......
Call disconnected after 1 hour even i set
$response->record(array('timeout' =>100000));
Please help how to achieve recording after 1 hour without call disconnect?
Thanks
Upvotes: 1
Views: 674
Reputation: 73029
Twilio developer evangelist here.
When using <Record>
to record a call the maximum length by default is 1 hour. You can increase the maximum length of the recording by setting the maxLength
attribute. This is set in seconds and by default is 3600 (one hour). You can set it up to the maximum length of a call: 14400, which is 4 hours.
$response->record(array('maxLength' => 14400));
Upvotes: 1