How can I get customer number to show in the SIP transfer headers, or how can I deduce the customer number from the existing headers?
I have tool like this
{
"function": {
"name": "transfer_call_tool_sip"
},
"messages": [
{
"type": "request-start",
"blocking": false
}
],
"async": false,
"destinations": [
{
"type": "sip",
"sipUri": "sip:transfer@xxxxxxx.sip.twilio.com",
"sipHeaders": {
"X-Customer-Phone": "{{customer.number}}",
"X-Lead-Id": "{{call.id}}"
},
"message": "test",
"description": "test",
"transferPlan": {
"mode": "blind-transfer",
"sipVerb": "dial"
}
}
]
}
The headers from the SIP transfer show up as
{
"key": "SipHeader_X-Customer-Phone",
"value": "{{customer.number}}"
}
Along with these
SipHeader_X-CID Vapi Vapi internal
SipHeader_X-Call-Sid Vapi Vapi internal
#1 How can I get customer number to show?
#2 How can I link these to Vapi CALLID if #1 is not possible?