Caller forwarding number instead of assistants num...
# support
a
with VAPI on an outbound dial, how do we get the assistant to use the caller phone number instead of the assistants phone number when transferring the call?
@Vapi with VAPI on an outbound dial, how do we get the assistant to use the caller phone number instead of the assistants phone number when transferring the call?
v
@Aby To have the assistant use the caller's phone number instead of the assistant's phone number when transferring a call, you would typically need to set up your call flow to include a step that specifies the desired caller ID for the transfer. In VAPI, this can be done by using the
transfer
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:
Copy code
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!
You can continue this conversation by mentioning me in the message.
@Aby To have the assistant use the caller's phone number instead of the assistant's phone number when transferring a call, you would typically need to set up your call flow to include a step that specifies the desired caller ID for the transfer action. This is often done through the use of a command or parameter in your API call or dial plan configuration that allows you to set the outbound caller ID. In the context of VAPI, if there is a specific parameter or setting that allows you to manipulate the caller ID during a transfer, you would use that. However, if this functionality is not directly exposed through VAPI, you may need to implement additional logic on your server to handle this behavior or consult the VAPI documentation for features related to caller ID manipulation. If you need further assistance with the specific implementation or if there is a particular function you would like to call, please provide more details or context, and I'll be happy to help you further.
s
as of now that's possible to use other number than assistant's number.
2 Views