Bug 56577 - fs_encode обрабатывает всё после первой точки как расширение файла
Summary: fs_encode обрабатывает всё после первой точки как расширение файла
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: freeswitch-daemon (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-23 14:02 MSK by Artem Varaksa
Modified: 2025-10-27 13:28 MSK (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-10-23 14:02:22 MSK
Данная ошибка создана из 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'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
Comment 1 Artem Varaksa 2025-10-27 13:28:30 MSK
Ошибка актуальна и для sisyphus.

[sisyphus] freeswitch-daemon-1.10.12-alt4