I'm using the Voicemail Twimlet and I'm receiving these automated calls that play recordings related to politics for 30 minutes or longer. The Twimlet doesn't have a time limit option that I can find, so it just records these giant mp3 files. I want to just hangup the call after 3 minutes or so. Does anyone know a way to set a time limit for a twimlet or how to create quick Twilio php script that could handle this? https://www.twilio.com/labs/twimlets/voicemail
Ricky from Twilio here.
Although you can't set a timeout using the twimlet, you can do this using TwiML. The verb has an attribute called maxLength that will accomplish what you're looking for. As an example, if you returned this TwiML your recording would timeout after 30 seconds:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Record maxLength="30" /> </Response>
Hope that helps!