Passing query params to Vapi SIP URI?
# support
a
I have a Vapi phone number that's an SIP URI such as
sip:PHONE_ID@sip.vapi.ai;external_reference_id={SOME ID}
. This phone number is configured to forward server events to my server. Is there a way for my server event webhook to extract this query param?
s
Hey @Albert Apologies for the delay, you can use either call.phoneNumber object or call.phoneNumberId to get this value from server event payload.
a
Hey @Shubham Bajaj I don't see the param being available from my call, i see the SIP URI but my params sent with
dial.sip(f"sip:e53049e2-2274-4f40-9c55-3e8baf5bbb53@sip.vapi.ai;hello=testparam")
aren't visible in the call payload ``` "phoneNumber": { "id": "4f0cd020-7153-4ee4-9c67-0ad63fb9bd83", "orgId": "4e50594a-39b7-459e-89bf-7d722766e506", "assistantId": null, "number": null, "createdAt": "2025-03-06T21:02:05.890Z", "updatedAt": "2025-03-13T18:45:24.582Z", "stripeSubscriptionId": null, "twilioAccountSid": null, "twilioAuthToken": null, "stripeSubscriptionStatus": null, "stripeSubscriptionCurrentPeriodStart": null, "name": null, "credentialId": null, "serverUrl": null, "serverUrlSecret": null, "twilioOutgoingCallerId": null, "sipUri": "sip:e53049e2-2274-4f40-9c55-3e8baf5bbb53@sip.vapi.ai", "provider": "vapi", "fallbackForwardingPhoneNumber": null, "fallbackDestination": null, "squadId": null, "credentialIds": null, "numberE164CheckEnabled": null, "authentication": null, "server": { "url": "https://XXX.ngrok-free.app/vapi/server_event" }, "useClusterSip": null, "status": "active" }, "customer": { "name": "+{My number}", "number": "+{My number}", "sipUri": "sip:+{My number}@44.238.177.138:5060" } }
p
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
2 Views