@hijaz @Sage you have to added condition as well for each number. Pass this into API while creating tool
{
"type": "transferCall",
"function": {
"name": "transfer_call_tool",
"description": "Transfers calls to maintenance or support based on user intent. Choose +157240... for maintenance issues, and +14235... for support issues.",
"parameters": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"enum": ["+15724....", "+14235..."],
"description": "The destination phone number to transfer the call to."
}
},
"required": ["destination"]
}
},
"messages": [
{
"type": "request-start",
"content": "I am forwarding your call to maintenance. Please stay on the line.",
"conditions": [
{ "param": "destination", "operator": "eq", "value": "+15724...." }
]
},
{
"type": "request-start",
"content": "I am forwarding your call to support. Please stay on the line.",
"conditions": [
{ "param": "destination", "operator": "eq", "value": "+14235...." }
]
}
],
"destinations": [
{
"type": "number",
"number": "+15724...",
"description": "For maintenance issues",
"transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" },
"numberE164CheckEnabled": true
},
{
"type": "number",
"number": "+14235...",
"description": "For support issues",
"transferPlan": { "mode": "blind-transfer", "sipVerb": "refer" },
"numberE164CheckEnabled": true
}
]
}