How do i view raw sip header logs? I am
# general-english
l
How do i view raw sip header logs? I am sending sip headers to have some variables like first_name, address etc and vapi is not showing them.
k
Use the GET /logs API endpoint with your API key to fetch logs, and inspect the requestHeaders or requestBody for your custom variables.
l
Thank you @Kings_big💫 this will work for sip headers? .. am not talking about httpd headers
k
Vapi doesn’t show raw SIP headers, so to verify custom variables like first_name, ensure you’re sending x- prefixed SIP headers correctly and check if they’re populating in the assistant prompt, or use your SIP provider’s logs for deeper inspection.
l
@Kings_big💫 i appreciate your response, am using asterisk/vicidial when making outbound call, the sipheaders are showing populated and seem to be sent correctly... am working on the get /log script but how would i check if they are populating in the assistant prompt? am looking at the transcript logs etc and i dont see anything related to the sip headers or fields.
k
Use the GET /logs API to inspect request headers, ensure the assistant’s prompts reference the correct variables {{first_name}}, and review transcription logs or test with a SIP softphone. https://docs.vapi.ai/advanced/sip
l
Yea i got the log script to pull /logs 'requestHeaders': '{"accept":"*/*","accept_encoding":"gzip, br","content_type":"application/json"}', 'id': '1a862f9c-1ac5-4932-972f-ecd7fa4345d3'}, .. nothing in request body
headers are populated correctly
k
You can download the sip pcap file from the dashboard as well. In case you can't find it, you can share the call ID. We will share the pcap file for you..
l
Thank you , i got the headers to pass now and and its able to read them etc .... The issue is on sip to sip the callerid number shows sip@domain.com:5060 how can i change it to the real phone number?
k
Make sure your SIP trunk is correctly configured with the phone number, set the outbound caller ID, and customize the SIP headers if needed, or check your provider’s settings..
9 Views