How to pass additional SIP params in Asterisk / Vi...
# support
g
I’m trying to send additional parameters from Vicidial to Vapi. Besides the default phone number that’s passed in the call, I want to send something like name, email, etc., as additional parameters. Here’s the default customer information in the call logs ID: "customer": { "sipUri": "sip:1234567890@55.444.118.486:5060" } Any ideas on how to add more parameters in the dial-plan in Vicidial and have them received in Vapi? Or does anyone know any documentation to accomplish this?
v
To pass additional parameters (like name or email) from Asterisk/Vicidial to Vapi, add custom SIP headers in your dialplan before making the call. For example, in your Asterisk dialplan, you can use:
Copy code
SIPAddHeader(X-Name: John Doe)
SIPAddHeader(X-Email: john@example.com)
These headers will be received by Vapi and can be used as template variables (e.g.,
{{name}}
,
{{email}}
) in your assistant's messages. For more details, see the Vapi SIP documentation on custom headers. Source: - [SIP introduction Vapi Documentation](https://docs.vapi.ai/advanced/sip)
n
@GeraDeluxer You can do that using the Asterisk dialplan, by adding multiple SIPAddHeader directives.
However, that is based on the idea what you are using chan_sip - which is now obsuleted in modern versions of Asterisk, and replaced by chan_pjsip. With chan_pjsip you can't do the above, and that requires "more diaplan tricks" in order to work.
g
What If I have thousands of leads and need to pass dynamic parameters to them?
n
Then I would suggest splitting the job into 2 elements. Vici to dialout and another tool to properly manipulate data and feed the AI accordingly
5 Views