SIP header without value
# support
c
https://docs.vapi.ai/advanced/calls/sip#send-sip-headers-to-fill-template-variables Hi, We need to pass an ID from our IVR through SIP headers to Vapi so we can use this ID to retrieve a dynamic squad (for that ID) via assistant request. We are trying the refered documentation and we are passing "x-first_name: John" trough the sip but when it sends the assitant request (in this case to a make webhool) it only shows the header (first_name) without the value (John). (call id: b2ae7f59-2b59-4eeb-bfdd-6bc2e45ddb6b) https://cdn.discordapp.com/attachments/1308206443534483567/1308206443715100672/image.png?ex=673d19b1&is=673bc831&hm=294b4e149cb01933337818d85cfaec26f04e51241194ccadbe862282119170c6&
v
@cbasf Hello! It sounds like you're on the right track by using SIP headers to pass information to VAPI. To ensure that the value "John" is being correctly passed through the SIP headers and is accessible in your assistant request, you'll want to double-check a few things: 1. Ensure that the SIP header is correctly formatted and being sent with the call. The header should be
X-first_name: John
, with the
X-
prefix indicating a custom header. 2. Verify that your VAPI configuration is set up to capture custom SIP headers and that the header name matches what you're sending. 3. Check the assistant logic to make sure it's correctly extracting the header value and not just the header name. If you've confirmed all of the above and the issue persists, it might be necessary to look into the call logs or further debug the assistant's webhook handling to see why the value isn't being passed along. Since you've provided the call ID, I can assist you further by checking the system for any configuration issues or errors related to this call. If you need me to do that, please let me know!
You can continue this conversation by mentioning me in the message.
c
Thank you @User We have checked step 1. But I dont know how to do steps 2 or 3... What Vapi Configuration should I check to capture custom headers? What logic should the assistant have to extract the header (the value of the header will be used to retrieve the appropiate squad for that client ID, not as a variable for the assistant to use)?
Thanks a lot, if you could check the call for any configuration we might be missing it would help us a lot!
s
Hey @cbasf can you trying sending the variable in camelCase and let me know how it goes?
6 Views