arman
02/09/2026, 10:37 PMjson
{
"id": "7be0598b-e32f-4906-8518-d4679ea0c9d0",
"createdAt": "2026-02-06T23:17:08.570Z",
"updatedAt": "2026-02-09T18:57:16.238Z",
"type": "transferCall",
"function": {
"name": "transfer_call_tool_sip"
},
"messages": [
{
"type": "request-start",
"blocking": false
}
],
"orgId": "",
"async": false,
"destinations": [
{
"type": "sip",
"sipUri": "",
"message": "test",
"sipHeaders": {
"X-Lead-Id": "{{call.id}}",
"X-Customer-Name": "{{first_name}} {{last_name}}",
"X-Customer-Phone": "{{customer.number}}"
},
"description": "test",
"transferPlan": {
"mode": "blind-transfer",
"sipVerb": "dial"
}
}
]
}
The problem is that the headers are being sent literally. For example, we receive:
X-Customer-Phone: {{customer.number}}
instead of the actual customer number.
So right now:
* The transfer shows the agent’s number, not the customer’s number.
* The header variables are not being resolved and are sent as raw strings.
Is there a supported way to:
1. Preserve the original caller (customer) number on the SIP transfer, or
2. Properly inject dynamic call variables into SIP headers during transfer?
This is blocking one of our clients and is pretty frustrating on their end, so any guidance or workaround would help a lot.
Thanks,
ArmanVapi Support Bot
02/09/2026, 10:39 PM{{customer.number}}) inside SIP header values during call transfers. The variables are only interpolated in prompts and messages, not in SIP header fields, which is why you see the raw strings. As a workaround, you may need to set the desired values explicitly in your transfer configuration or handle variable resolution in your own application logic before sending the transfer request.
For more details, see the [dynamic variables documentation](https://docs.vapi.ai/assistants/dynamic-variables).
Source:
- [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables)Subhankar Ghosh
02/09/2026, 10:53 PMarman
02/09/2026, 10:55 PMarman
02/09/2026, 10:55 PMSubhankar Ghosh
02/09/2026, 10:57 PMJames Christopher
02/10/2026, 6:46 AM