https://retellai.com/?utm_source=discord&utm_medium=seo logo
When setting up voicemail
# ❓・ai-evy-support
p
@AI Evy When setting up voicemail. If i keep the ring duration less than 25 seconds the voicemail is not getting left.
a
Thanks for tagging me @prathamkumar_58064. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] Update Agent](https://docs.retellai.com/api-references/update-agent) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer The
ring_duration_ms
parameter controls how long the agent will wait before hanging up on outbound calls and transfers [(1) ]() [(2) ]() . The default value is 30000 ms (30 seconds) . When you set the ring duration below 25 seconds, the voicemail detection system may not have enough time to properly identify that a voicemail greeting is playing . Voicemail detection typically requires the call to ring long enough for the greeting to start playing and be analyzed . The
ring_duration_ms
must be a positive number, and if unset, the default value of 30000 ms (30 seconds) will apply . For reliable voicemail detection and message delivery, it's recommended to keep the ring duration at or above 25-30 seconds to give the system adequate time to detect the voicemail greeting and trigger the configured voicemail action .