Can you set a time limit with the Twilio Voicemail Twimlet?

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!


  • Twilio TwiML: Don't record after client hangs up
  • Is it possible to change the Twilio Browser Client ringtone?
  • C/C++ best way to send a number of bytes to stdout
  • highlight a word in input field [duplicate]
  • Colour Saturation/Desat in jQuery
  • Twilio: programmatically join conference and play command or sound file?
  • Faster way to compute likelihood of sequence?
  • How do I create a parameterized database update statement in Yii for an IN() clause?
  • Class 'Twilio\\Rest\\Client' not found
  • Alternative to readfile()
  • AVAudioPlayer doesn't load sound
  • Using Answering machine detection on Twiml
  • Asterisk IVR After Hangup
  • How to crop a mp3 in ASP.NET + C#?
  • SQL: Getting the physical size of a subset of a table
  • How do I remove all but some records based on a threshold?
  • How do I get the list of bad records that didn't load in Bigquery?
  • Sequential (transactional) API calls in angular 4 with state management
  • What and where is mdimport
  • How to install a .deb file on a jailbroken iphone programmatically?
  • DomPDF {PAGE_NUM} not on first page
  • Javascript simulate pressing enter in input box
  • Importing jscolor library in angular 2
  • Upload files with Ajax and Jquery
  • Do I've to free mysql result after storing it?
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • A cron job substitute?
  • json Serialization in asp
  • Load html files in TinyMce
  • Change div Background jquery
  • How does Linux kernel interrupt the application?
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Busy indicator not showing up in wpf window [duplicate]
  • How can i traverse a binary tree from right to left in java?
  • Converting MP3 duration time
  • Why do underscore prefixed variables exist?