mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
The absolute_codec_string parameter for FreeSWITCH was being incorrectly for formatted, causing issues with fax transmissions, particularly in regions preferring the PCMA codec. Without proper quoting, the comma-separated codec list PCMU,PCMA was being parsed incorrectly by FreeSWITCH. The second codec PCMA was misinterpreted as a separate dial string parameter, resulting in absolute_codec_string being set to only PCMU. This led to negotiation failures when the receiving end required PCMA. This commit resolves this by enclosing the codec list within *escaped* single quotes \'PCMU,PCMA\'. **Crucially, without this escaping, FreeSWITCH would not correctly interpret the quoted string.** The literal quotes are necessary to ensure that PCMU,PCMA is treated as a single value. By implementing this change, we guarantee that both PCMU and PCMA are correctly included in the codec negotiation, resolving the fax transmission failures in PCMA-dominant regions.