Hang up if picked up by voicemail.
# support
s
Hello everyone, I am working on an outbound calling system, and I want it to hang up immediately if the call is picked up by voicemail. How can I achieve this?
v
@Samar abbas Hello! To ensure that your outbound calling system hangs up immediately when a voicemail is detected, you can utilize the
voicemailDetection
feature. Here's how you can set it up: 1. Enable
voicemailDetection
by setting
voicemailDetection.enabled
to
true
. 2. Configure
voicemailDetection.machineDetectionTimeout
to specify the maximum amount of time in seconds that the system should wait for voicemail detection. 3. Adjust
voicemailDetection.machineDetectionSpeechThreshold
,
voicemailDetection.machineDetectionSpeechEndThreshold
, and
voicemailDetection.machineDetectionSilenceTimeout
to fine-tune the detection based on the characteristics of the voicemail greetings you expect to encounter. Once voicemail is detected, the system will execute the action you've defined, such as hanging up the call. If you need assistance with setting these parameters or implementing the feature, please let me know!
You can continue this conversation by mentioning me in the message.
s
you have to add the following to your assistant using api. voicemailDetection: { provider: "twilio", voicemailDetectionTypes: [ "machine_end_beep", "machine_end_silence", ], enabled: true, machineDetectionTimeout: 25, machineDetectionSpeechThreshold: 3500, machineDetectionSpeechEndThreshold: 2750, machineDetectionSilenceTimeout: 6000, }, voicemailMessage: voicemailPrompt,
also check the api for more machine detection options and other fields constraints
s
Yes, I need help with setting these parameters.
Hello, Please could me guide me more where do i need to add and which API should I use? @Shubham Bajaj
s
check update assistant api over Vapi docs.
8 Views