moidesko
10/02/2024, 3:28 PMVapi
10/02/2024, 3:30 PMPhoneNumberTransferDestination
option. When you specify a phone number as the transfer destination, you can include the extension as part of the phone number string. The format typically involves appending the extension to the main number, often separated by a pause or a special character that indicates an extension, such as a comma (,) or a semicolon (;).
For example, if the main number is +1234567890
and the extension is 123
, you might format the transfer destination as +1234567890,123
. The exact format can depend on the system you are interfacing with, so you should ensure that the format you use is compatible with the voice API and the telephony system you are transferring the call to.
Would you like to proceed with setting up a call transfer with an extension? If so, please provide the destination number and the extension, and I can assist you further.Vapi
10/02/2024, 3:30 PMmoidesko
10/02/2024, 3:36 PMmoidesko
10/02/2024, 3:38 PMJRDabrio
10/02/2024, 3:48 PMVapi
10/02/2024, 3:48 PMPhoneNumberTransferDestination
option, you would typically include it in the parameters when you call the transferCall
tool. The PhoneNumberTransferDestination
should be an object that includes the phone number with the extension formatted correctly.
In your example, if you want to transfer a call to +16065554433 with extension 123, you would format it as +16065554433;123
or +16065554433,123
depending on the system's requirements for handling extensions. The semicolon (;
) or comma (,
) is often used to indicate a pause before dialing the extension.
Here's how you might set it up:
json
{
"destinations": [
{
"type": "PhoneNumberTransferDestination",
"number": "+16065554433;123"
}
]
}
This JSON object would be passed as a parameter to the transferCall
tool. If you're ready to proceed with the transfer, please confirm the destination number and extension, and I can help you with the next steps.moidesko
10/02/2024, 4:01 PMVapi
10/02/2024, 4:01 PM,
) which usually equates to a 2-second pause on most phone systems.
The formatted phone number with the extension would look like this: +16065554433,5900
.
If you're ready to proceed with the call transfer, you can use this formatted string as the destination in your voice API's call transfer function. If you need assistance with the specific API call or have any other questions, please let me know!Ibrahim
10/02/2024, 6:22 PMIbrahim
10/02/2024, 6:22 PMIbrahim
10/02/2024, 6:24 PMmoidesko
10/03/2024, 9:34 AMVapi
10/03/2024, 9:35 AMPhoneNumberTransferDestination
. The error "couldn't get assistant" suggests that the system is expecting an assistant-based transfer rather than a phone number transfer.
To clarify, the PhoneNumberTransferDestination
should be used when you want to transfer a call to an external phone number. If the system is throwing an error related to an assistant, it might be because it's expecting a different type of destination, such as SipTransferDestination
or an internal assistant transfer.
Please ensure that you are using the correct type of transfer destination for your use case. If you are trying to transfer to an external phone number with an extension, you should use the PhoneNumberTransferDestination
type and format the number with the extension correctly, as previously described.
If you continue to experience issues, it might be necessary to consult the documentation for the specific voice API you are using or reach out to their support team for assistance. If there's anything else I can help you with, please let me know!moidesko
10/03/2024, 9:45 AMSahil
10/03/2024, 5:33 PMShubham Bajaj
10/03/2024, 9:51 PMmoidesko
10/04/2024, 9:31 AMIbrahim
10/04/2024, 6:32 PMShubham Bajaj
10/04/2024, 7:26 PMIbrahim
10/04/2024, 8:25 PMmoidesko
10/04/2024, 8:28 PMmoidesko
10/04/2024, 8:28 PM