SIP Headers not translating Dynamic Values in Outb...
# support
a
I'm trying to generate an outbound campaign and I'm passing values into SIP Header from the lead list. However these values are not being translated as it can be seen from the screenshot attached. Kindly help out and resolve this issue please. Thankyou! https://cdn.discordapp.com/attachments/1466130371082194985/1466130371564277802/image.png?ex=697b9fcf&is=697a4e4f&hm=f19857a9054a2bcfc3e20e758b9f094db5bac05f3ce728e07da6a8da44a41945&
can anyone please confirm if this is a limitation from vapi?
c
Could you please provide the Call ID from a call where this issue occurred? Once we have the Call ID, we can pull the logs and take a closer look at how the SIP headers are being populated.
a
019c0596-c320-700e-b7e4-42e982b9dd46
c
Thanks for reaching out and for the screenshot — that's very helpful. The issue you're seeing is that dynamic variables in SIP headers are not being substituted during outbound campaign call initiation. The values are being passed through as raw template strings (e.g.,
{{customer.name}}
) instead of being replaced with the actual lead list values. Here's why this is happening: Based on how the system currently works, dynamic variable substitution in SIP headers is fully supported during mid-call transfers (e.g., when the assistant transfers a call using the transfer tool), because at that point all the customer/lead data is loaded and available for substitution. However, for outbound call initiation (like in your campaign), the substitution depends on whether the customer and lead data is available at the exact point where the SIP headers are being set — and it appears it's not being applied in your case. As a workaround, you could: • Use a transfer call tool during the conversation to route the call with the populated SIP headers, rather than setting them at the initial outbound call level.
a
I've tried this method but it does not seem to work. Is there any other method that we can try?