sacred-roseS
VAPI3mo ago
sacred-rose

Use custom function result as transfer number

callid: 85fcdf27-3f6a-4792-a6ff-9b2ae6c258f2

Have a custom function that retrive phone number for a contact: transfer_destination_request

After the query is done need to use the number/result to make the sip transfer, i see the REFER appear on the call,
but variable is not replaced.


Refer-To: <sip:{{transfer_destination_request.result}}@mydomain


but transfer call seems to be getting it ok


{
"role": "tool_calls",
"time": 1759145363628,
"message": "",
"toolCalls": [
"0": {
"id": "call_Jj2CkWlQyLQ6Hn22cJBOH8mp",
"type": "function",
"function": {
"name": "transfer_call",
"arguments": "{"destination": "sip:+34XXXXXXXXX@myomain"}"
}
}
],
"secondsFromStart": 30.968
}

#support #transfer_call
Was this page helpful?