Aby
08/09/2024, 7:45 PMAby
08/09/2024, 7:45 PMVapi
08/09/2024, 7:46 PMtransfer action in your NCCO (Nexmo Call Control Object) and setting the from parameter to the caller's phone number. Here's an example of how you might structure the NCCO:
json
[
{
"action": "talk",
"text": "Please wait while we connect you."
},
{
"action": "transfer",
"from": "<caller_phone_number>",
"destination": {
"type": "phone",
"number": "<destination_phone_number>"
}
}
]
Replace <caller_phone_number> with the actual phone number of the caller and <destination_phone_number> with the number you want to transfer the call to.
Please note that the ability to set the caller ID may be restricted by local regulations and your telephony provider's policies. Additionally, some carriers may not support this feature, or it may require pre-approval.
If you need further assistance with setting up your call flow or have any specific questions about implementing this feature with VAPI, please let me know!Vapi
08/09/2024, 7:46 PMVapi
08/09/2024, 7:46 PMShubham Bajaj
08/10/2024, 5:48 PM