siprec icon indicating copy to clipboard operation
siprec copied to clipboard

Support for G729 ?

Open kingster opened this issue 9 months ago • 5 comments

Hi

Thank you for the awesome siprec project.

However, in our production lot negotiations happen on g729, at that time siprec throws this error

{"call_uuid":"a406db6a5dd0c63c2fdc3241006c686c_10","codec":"G729","error":"unsupported codec for PCM conversion: G729","level":"warning","message":"Failed to decode audio payload to PCM","payload_type":18,"timestamp":"2026-02-25T18:25:04.843829426+05:30"}

Do you plan to add support for the G. 729 codec ?

kingster avatar Feb 25 '26 13:02 kingster

Thank you for your kind words, adding g729 is a bit tricky because of licensing, I am going to look into it though.

loreste avatar Feb 25 '26 15:02 loreste

G729 is currently available under gpl licence, thats my understanding

https://github.com/IBM/g729-codec-service

https://github.com/BelledonneCommunications/bcg729

Also the official patent based licensing has expired as far my knowledge. Most debian distribution has the libbcg729 validating the license compatibility

kingster avatar Feb 25 '26 15:02 kingster

I will get that implemented, give me a day or two.

loreste avatar Feb 25 '26 16:02 loreste

Thank you 🙏 Will be waiting for the update.

kingster avatar Feb 25 '26 16:02 kingster

Hi @sreeramsunkara,

Thank you so much for reporting this issue! Your detailed error log and production context were incredibly helpful in identifying and resolving the problem.

This has been fixed in commit cc25980. The changes include:

  • Native G.729 decoder: Full CS-ACELP implementation supporting RTP payload type 18
  • Codec aliases: Supports G729, G.729, and G729A codec names
  • G.729B support: Handles SID frames for comfort noise generation
  • STT integration: G.729 is now included in the default supported codecs list

The fix has been deployed to my production server and is working correctly. G.729 calls will now be decoded and transcribed without the "unsupported codec" error.

Thanks again for helping improve SIPREC!

loreste avatar Feb 26 '26 00:02 loreste