SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Issues Retrieving Call Logs via Twilio Voice API When Using SIP URI as To Parameter

Issue

When using the Twilio Voice API you may encounter issues retrieving call logs with specific query parameters, especially when using SIP endpoints with special characters. The cURL command may not filter the data correctly, resulting in unexpected or random information.

 

Product

Twilio Programmable Voice

 

Cause

The issue arises due to special characters in the SIP endpoint, such as semicolons, which can interfere with the proper retrieval of call logs. These characters need to be encoded to ensure the API processes the request correctly.

1.png

 

Resolution

To resolve the issue, follow these steps:

  1. Identify the SIP Endpoint: Determine the SIP endpoint causing the issue, e.g., sip:+1XXXXXXXXXX@h1-sip.XXXXX.com;transport=tls.
  2. Encode the SIP Endpoint: Use a URL encoding tool to encode the special characters in the SIP endpoint. For example, encode the endpoint to sip%3A%2B1XXXXXXXXXX%40h1-sip.XXXXX.com%3Btransport%3Dtlss.
  3. Update the cURL Command: Replace the original SIP endpoint in your cURL command with the encoded version.
  4. Test the Command: Run the updated cURL command to verify that the call logs are retrieved correctly.

2.png
 
Additional Information 

More details are outlined here.
 

Have more questions? Submit a request
Powered by Zendesk