Quick question about TransferCallTool. Can I send ...
# support
n
I want to transfer a call to a SIP from an assistant (this works fine), but I want to include information collected during the call (Structured Data) in the headers. Is this possible? If so, Curl won't let me add it. { "type": "transferCall", "destinations": [ { "type": "sip", "sipUri": "sip:entrada@domain", "sipHeaders": { "X-Cp-Data": "{{structuredData.postal_code}}", "X-Call-Reason": "{{structuredData.call_reason}}" }, "description": "Transferencia a SIP externo con datos estructurados" } ] }
v
Thanks for your detailed example! Just to clarify, are you seeing the custom SIP headers missing on the receiving SIP endpoint, or is your issue specifically with how to include them in the API request (e.g., with Curl or the Vapi dashboard)? Sources: - [SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk) - [Transfer Call Tool Documentation](https://docs.vapi.ai/call-forwarding)
n
The documentation does not indicate how to pass data from structured variables.
c
Hi, I'll check with our team and get back to you with an update.
Hi, If you are trying to pass structuredData variables through a cURL request, it could be failing because the structuredData may not be collected yet. Could you please share a screen recording explaining this section of the workflow, how the assistant passes this structuredData to the cURL request, and showing any errors that are visible?
2 Views