marem
05/28/2025, 1:58 PM438cf130-9378-43f4-8ee6-e11fa3772344
Seems very similar to this issue: https://discord.com/channels/1211482211119796234/1372606009595658352
We can hear the assistant voice well.
But caller is not audible (voice quality is too low so assistant does not understand): see at 30s on the given call.Vapi Support Bot
05/28/2025, 1:59 PMVapi Support Bot
05/28/2025, 1:59 PMmarem
05/28/2025, 8:44 PMVapi Support Bot
05/28/2025, 8:46 PMjson
{
"preferred_codecs": "PCMU,PCMA,G722"
}
If this parameter is not currently supported in your Vapi setup, please contact Vapi support with your call ID and this codec information for further assistance.
Source:
- [Vapi Discord: Outbound call not executed and no webhooks sent](https://discord.com/channels/1211482211119796234/1372358449761091584)Vapi Support Bot
05/28/2025, 8:46 PMjson
{
"preferred_codecs": "PCMU,PCMA,G722"
}
If this parameter is not currently supported in your Vapi setup, please contact Vapi support with your call ID and this codec information for further assistance.
Source:
- [Vapi Discord: Outbound call not executed and no webhooks sent](https://discord.com/channels/1211482211119796234/1372358449761091584)Vapi Support Bot
05/28/2025, 8:46 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard. The best next step is to share the Telnyx recommendation and your call details directly with Vapi support, as this may require a platform update or internal configuration. Please include the call ID and the codec details from Telnyx in your support request for faster resolution.
Source:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)Vapi Support Bot
05/28/2025, 8:46 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard. The best next step is to share the Telnyx recommendation and your call details directly with Vapi support, as this may require a platform update or internal configuration. Please include the call ID and the codec details from Telnyx in your support request for faster resolution.
Source:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)marem
05/28/2025, 9:12 PMVapi Support Bot
05/28/2025, 9:14 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard. The best next step is to contact Vapi support with your call ID and the codec details from Telnyx, as resolving this may require a platform update or internal configuration. Please include all relevant information to help expedite the investigation.
For reference, see the [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls).
Source:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)Shubham Bajaj
05/29/2025, 2:20 AMShubham Bajaj
05/29/2025, 2:44 AMstream_bidirectional_codec: 'PCMU'
in Telnyx answer events, ignoring the connection_codecs
from the call.initiated
event
2. **Proposed Change**: Instead of hardcoding PCMU, dynamically select the optimal codec from the connection_codecs
field (e.g., "PCMA,PCMU,VP8,H264")
3. **Expected Outcome**: Better audio quality by using PCMA when available (which is higher quality than PCMU in European/international contexts) and avoiding unnecessary transcoding
### What We Need to Change:
1. Extract connection_codecs
from Telnyx call.initiated
webhook payload
2. Implement codec preference logic (PCMA > PCMU > others)
3. Replace hardcoded 'PCMU' with dynamic codec selection
### Confirmation Needed:
1. Is this the correct understanding of the audio quality issue you're experiencing?
2. Should we always use the first preferred codec from connection_codecs
, or implement a quality-based preference order?
3. Are there specific codec combinations that are causing issues in your environment?
### Additional Information Requested:
To ensure this change is safe for production, please provide:
1. Telnyx Support Documentation or official guidance on codec selection best practices
2. Sample call.initiated
webhook payloads showing the actual connection_codecs
values you're seeing
3. Audio quality metrics or logs demonstrating the current PCMU vs desired PCMA performance
This is a critical audio pipeline change that affects call quality, so I want to ensure we have complete validation before proceeding with implementation.marem
05/29/2025, 1:29 PMcall.initiated
webook payload (in the following message)
3. Audio quality metrics or logs demonstrating the current PCMU vs desired PCMA performance,
I don't know
I understand this is critical and according to Marcin response this might affect only European users:
> Call is established using PCMA which is standard in Europe.
> However seems like the 3rd party expects PCMU, thus the weird sound.
May I suggest you put in contact with Telnyx support directly?
It's not my expertise area so I am only reporting back what Telnyx staff answered me in their slack channel
Maybe you can have some direct connection with Telnyx support?
https://cdn.discordapp.com/attachments/1377284786099585034/1377639938006188043/Screenshot_from_2025-05-29_15-10-51.png?ex=6839b2ac&is=6838612c&hm=96494998a9c96fd0f4b43dec72a1fdd3b954a87887f86cb4ac80d1076db8e14e&Vapi Support Bot
05/29/2025, 1:30 PMVapi Support Bot
05/29/2025, 1:30 PMVapi Support Bot
05/29/2025, 1:31 PMcall.initiated
webhook payload (with the connection_codecs
field) from a recent problematic call? This will help ensure the fix is tested against real-world data.
Thank you for your collaboration!
Sources:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
- [Telnyx Media Streaming Documentation](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)Vapi Support Bot
05/29/2025, 1:31 PMcall.initiated
webhook payload (with the connection_codecs
field) from a recent problematic call? This will help ensure the fix is tested against real-world data.
Thank you for your collaboration!
Sources:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
- [Telnyx Media Streaming Documentation](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)Vapi Support Bot
05/29/2025, 1:31 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard, and the team is reviewing a possible change to support dynamic codec selection based on connection_codecs
([Vapi Docs](https://docs.vapi.ai/server-url/setting-server-urls), [Telnyx Docs](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)).
To help us validate and prioritize this change, could you please confirm if the main issue is that European calls default to PCMA, but your third-party system only supports PCMU, resulting in audio problems?
This will ensure we address the most critical scenario first.
Sources:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
- [Telnyx Media Streaming Documentation](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)Vapi Support Bot
05/29/2025, 1:31 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard, and the team is reviewing a possible change to support dynamic codec selection based on connection_codecs
([Vapi Docs](https://docs.vapi.ai/server-url/setting-server-urls), [Telnyx Docs](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)).
To help us validate and prioritize this change, could you please confirm if the main issue is that European calls default to PCMA, but your third-party system only supports PCMU, resulting in audio problems?
This will ensure we address the most critical scenario first.
Sources:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
- [Telnyx Media Streaming Documentation](https://developers.telnyx.com/docs/voice/programmable-voice/media-streaming#rtp-stream-codec)Vapi Support Bot
05/29/2025, 1:32 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard. The best next step is to contact Vapi support with your call ID and the codec details from Telnyx, as resolving this will likely require a platform update or internal configuration. Please include all relevant information to help expedite the investigation.
Reference: [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
Source:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)Vapi Support Bot
05/29/2025, 1:32 PMstream_codec
or preferred_codecs
for SIP calls via the API or dashboard. The best next step is to contact Vapi support with your call ID and the codec details from Telnyx, as resolving this will likely require a platform update or internal configuration. Please include all relevant information to help expedite the investigation.
Reference: [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)
Source:
- [Vapi Server URL and SIP Integration Documentation](https://docs.vapi.ai/server-url/setting-server-urls)Aditya Papriwal
05/30/2025, 11:40 AMmarem
06/02/2025, 4:02 PMAditya Papriwal
06/03/2025, 7:08 PMmarem
06/06/2025, 1:23 PMAditya Papriwal
06/09/2025, 7:18 PMmarem
06/10/2025, 1:05 PMShubham Bajaj
06/10/2025, 9:57 PMAditya Papriwal
06/10/2025, 10:01 PMmarem
06/10/2025, 10:16 PMAditya Papriwal
06/11/2025, 11:10 PMmarem
06/22/2025, 9:01 PMShubham Bajaj
06/23/2025, 10:27 AMShubham Bajaj
06/23/2025, 10:29 AMmarem
06/25/2025, 12:53 PMAditya Papriwal
06/26/2025, 6:30 AMShubham Bajaj
06/30/2025, 3:25 AM