need better sound quality
# support
e
I want to use OPUS codec between Telnyx and VAPI, OPUS is available on Telnyx so I can use that, but the problem is when I call the number which is connected to VAPI, then it goes to voicemail. What could be the problem you think?
v
Hi there! đź‘‹ I understand you're trying to use the OPUS codec between Telnyx and VAPI for better sound quality, but calls are going to voicemail instead of connecting properly. While I can't pinpoint the exact issue without more details about your specific setup, I can definitely help with some potential causes and solutions. Here's what I can tell you about your situation: ## OPUS Codec Compatibility Good news! Both systems support OPUS: - The OPUS codec is supported with a sampling rate of 48000 and 2 channels according to the Session Description Protocol (SDP) information I found. - While G729 has been specifically tested with Telnyx, OPUS should be compatible as well. ## Potential Reasons for Calls Going to Voicemail There are several configuration issues that could be causing this problem: ### 1. SIP Configuration Issues - **Incorrect VAPI Inbound URL Configuration**: For inbound calls, make sure the FQDN is set to
sip.vapi.ai
and the port to
5060
[(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524). - **SIP URI Settings**: Check that the
sipUri
attribute within the
forwardingPhoneNumbers
array is correctly set [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333472116984778894). - **Codec Compatibility**: Ensure that the codecs used by Vapi are supported by your SIP endpoint [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089). ### 2. Telnyx Integration Configuration On the Vapi side, make sure you've: - Created a personalized origination SIP URI via the Vapi API - Set up inbound authentication on Telnyx - Assigned the acquired phone number to SIP trunking - Modified the SIP invite correctly [(source)](https://docs.vapi.ai/advanced/sip/telnyx) ### 3. Voicemail Detection Settings VAPI has voicemail detection settings that might be causing this issue:
- Check that your webhook for voicemail detection is correctly set up - Verify your network configurations allow for the
listenUrl
websocket connection - Review voicemail detection configuration parameters like
machineDetectionTimeout
,
machineDetectionSpeechThreshold
, etc. [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334385998423130174) ### 4. Network and Firewall Issues - Verify that your network allows traffic on the SIP protocol - Ensure any firewalls or NATs are configured to allow SIP messages to pass through - Make sure your SIP server is configured to accept calls from Vapi's servers [(source)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089) Would you like me to provide more specific configuration steps for either Telnyx or VAPI to help troubleshoot this issue further? Sources: - [Discord discussion about SIP trunking setup](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524) - [Discord discussion about SIP configuration issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333472116984778894) - [Discord discussion about codec compatibility](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089) - [Telnyx integration documentation](https://docs.vapi.ai/advanced/sip/telnyx) - [Discord discussion about voicemail detection settings](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334385998423130174)
p
Hey! To help track down this issue, could you share: - The call ID z This would really help us figure out what went wrong!
e
99916749-90c6-4c71-bea6-14bef71463f8 thank you
p
Hey Any, are they? This call didn't go to the voicemail and said it was never picked by the customer. "status": "ended", "endedReason": "customer-did-not-answer", You can configure it for your assistant or for your calls to go to the voicemail if you think they should be going to the voicemail instead.
e
Yeah it was never picked up, because when I called it said this number is not available right now.
p
Shall I mark this ticket as solved?
e
yeah but I have another ticked could you check it? it's https://discord.com/channels/1211482211119796234/1359824858242093117
p
looking into it.