Transfer Customer Number
# support
d
I'm trying to set up a call transfer function, and it's currently working, but it transfers the VAPI number to the other phone. How can I pass the customer number through the transfer?
v
message has been deleted
@danthemktman To pass the customer's number through the transfer, you'll need to ensure that the original caller's number is included in the transfer request. This is typically done by using a parameter that carries the caller's number, often referred to as
Caller ID
or similar. If you're using VAPI's Voice API, you might need to set the
from
parameter in your transfer action to the customer's number. This way, when the call is transferred, the receiving party will see the original caller's number instead of the VAPI number. Here's a general example of how you might structure the transfer action in your VAPI code:
Copy code
json
{
  "action": "transfer",
  "from": "<Original Caller's Number>",
  "destination": {
    "type": "phone",
    "number": "<Desired Transfer Number>"
  }
}
Replace
<Original Caller's Number>
with the variable that holds the customer's number and
<Desired Transfer Number>
with the number you want to transfer the call to. If you need more specific guidance or if there's a particular part of the setup you're unsure about, please provide additional details so I can assist you further.
You can continue this conversation by mentioning me in the message.
d
will test this one moment
s
Hey @danthemktman you can set the callerId on the destination and then this callerId will be displayed will transfering the call. Check the image shared for reference, and If you have doubts or require further help do ping me. https://cdn.discordapp.com/attachments/1308212329153953883/1308371787343466496/image.png?ex=673db3ae&is=673c622e&hm=5e18c805ca257a110a9edb11a9a87869a7e6c28d1f037d3b4849f8455f83ecb0&
d
THIS WORKED THANK YOU SO MUCH!!
It won't let me mark as solved