Transfer a call automatically when maximum call du...
# support
d
Will I be able to transfer a call automatically when the maximum call duration is reached? If so, can you please provide me with the documentation on how to do it? For example, if I set the maximum call duration limit to 5 minutes, when the 5-minute mark is reached, will I be able to transfer the call automatically?
v
You can continue this conversation by mentioning me in the message.
@Dhina Yes, you can set up your system to automatically transfer a call when the maximum call duration is reached. However, the specific implementation details on how to do this would depend on the capabilities of your voice API platform and the programming environment you are using. Typically, you would need to: 1. Set up a call duration timer in your system. 2. Monitor the call duration during the call. 3. Use the
transferCall
function when the maximum call duration is reached. Here's a high-level example of what the logic might look like in pseudocode:
Copy code
pseudocode
startCall()
startTimer(duration: 5 minutes)

onTimerExpire():
    transferCall(to: forwardingPhoneNumber)

onCallEnd():
    stopTimer()
For the actual documentation and code examples, you would need to refer to the specific documentation provided by your voice API platform. If you're using VAPI, you should look for sections in the documentation related to call handling, timers, and call transfer features. If you need the exact documentation or further assistance with the implementation, please let me know, and I can provide more detailed guidance or direct you to the appropriate support resources.
s
Hey @Dhina you cannot transfer the call automatically if max duration is reached, instead what you can do is listen to live call audio and if it's about to reach the max-duration you can inject a live message saying transferring the call. To know more about this check these documentation: https://docs.vapi.ai/calls/call-features Do let me know if you have any questions.
2 Views