signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.32k stars 1.38k forks source link

Error opening unknow file end with codec pcma/pcmu/opus #2445

Closed TechGuyVN closed 2 months ago

TechGuyVN commented 2 months ago

Describe the bug Our freeswitch core through this error, i have no idea with this 2024-04-26 09:06:58.028720 70.50% [ERR] mod_native_file.c:74 Error opening /mnt/data/freeswitch/recordings/contact4/.PCMA 2024-04-26 09:07:00.608698 69.83% [ERR] mod_native_file.c:74 Error opening /mnt/data/freeswitch/recordings/david/.PCMA can Anyone have this issued and how to fix, please help me solve this

Package version or git hash

suiyuemanbu commented 2 months ago

if you playback(/mnt/data/freeswitch/recordings/contact4/) That's when the problem you're talking about happens.

you should playback(/mnt/data/freeswitch/recordings/contact4.wav)

TechGuyVN commented 2 months ago

I mean where .pcma come from , I didn’t setting this type, it’s codec of audio stream

iamtalhaasghar commented 1 month ago

I mean where .pcma come from , I didn’t setting this type, it’s codec of audio stream

same here, having same problem / issue

iamtalhaasghar commented 1 month ago

if you playback(/mnt/data/freeswitch/recordings/contact4/) That's when the problem you're talking about happens.

you should playback(/mnt/data/freeswitch/recordings/contact4.wav)

this is the answer i was doing switch_play_file('a-m') changed it to switch_play_file('a-m.wav') and the error was gone.