Can't get call transfer to work with phone with extension

for my call transfer agent, I have a couple of phone numbers with extensions for different department, the phone number portion is the same, only different in extension. I can't figure out from the VAPI documentation what to pass to in the function -> parameters -> properties -> destination -> enum.
from the documentation it only put the phone number, but in this case, the number is actually the same, so it cause duplicate value error.
I tried to leave the parameters completely empty, that doesn't work either, and when I tried to check on the tool_calls log for this I saw this
{
"role": "tool_calls",
"time": 1743564816247,
"message": "",
"toolCalls": [
{
"id": "call_6uZ5st4NyxNQ4rRN9stJvufo",
"type": "function",
"function": {
"name": "transferCall",
"arguments": "{"destination": "+442035826399,6017"}"
}
}
],
"secondsFromStart": 13.378
}

I guess +442035826399,6017 is not the right format for handling the extension either, (I tried +442035826399@6017 for the destination formation as well, that doesn't work either), and it seems like enum so what should be the right format, and if I need to, what should be the value I pass for the extension case?


thanks!
Was this page helpful?