<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>56577</bug_id>
          
          <creation_ts>2025-10-23 14:02:22 +0300</creation_ts>
          <short_desc>fs_encode обрабатывает всё после первой точки как расширение файла</short_desc>
          <delta_ts>2025-10-27 13:28:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>freeswitch-daemon</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>at</cc>
    
    <cc>cas</cc>
    
    <cc>crux</cc>
    
    <cc>ender</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>qa_viy</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>275374</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-10-23 14:02:22 +0300</bug_when>
    <thetext>Данная ошибка создана из upstream-ошибки https://github.com/signalwire/freeswitch/issues/2220 для отслеживания её статуса в bugzilla.altlinux.org. Версии пакетов могут быть устаревшими.

Утилита fs_encode рассматривает всё после первой точки (.) как расширение файла, что не позволяет обрабатывать файлы с несколькими точками в их именах (например, file.file.gsm).

1. # touch file.gsm file.file.gsm
2. # fs_encode -v file.file.gsm file.wav
[...]
Opening file file.file.gsm
Opening file file.wav
[...] [ERR] switch_core_codec.c:670 Invalid codec gsm!
Couldn&apos;t initialize codec for file.gsm@8000h@20i
[...] [WARNING] switch_core_codec.c:932 Codec is not initialized!
[...] [WARNING] switch_core_codec.c:932 Codec is not initialized!

При этом работает:

# fs_encode file.gsm file.wav

Ожидаемое поведение: Только часть после последней точки должна рассматриваться как расширение.

[p11] freeswitch-1.10.12-alt4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275581</commentid>
    <comment_count>1</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-10-27 13:28:30 +0300</bug_when>
    <thetext>Ошибка актуальна и для sisyphus.

[sisyphus] freeswitch-daemon-1.10.12-alt4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>