Bug#1060275: asterisk: Codec translation notice

List Support list at tootai.net
Tue Jan 30 08:53:05 GMT 2024


Le 29/01/2024 à 19:34, Jonas Smedegaard a écrit :
> [...]
>>> That phrase exists in debian/patches/2016_opus_plc.patch which is
>>> derived from Xopus/enable_native_plc.patch which (thanks to
>>> debian/watch) is fetched from original at
>>> https://github.com/traud/asterisk-opus/blob/asterisk-13.7/enable_native_plc.patch
>> OK. Questions:
>>
>> . what does mean plc ?
> The purpose of the patch is described at the top of the patch itself.
/* Determine the amount of lost packets for PLC */ but still I don´t 
know what is PLC ;)
>
>
>> . opus is not used in my case so why I receive those notice ? (Reminder:
>> allow=!all,g722,alaw,ulaw)
> If you do not use opus, then configure your Asterisk instance to not
> *load* the module which you don't want.

This still doesn't explain why without opus activated (even if loaded) 
it is involved

I remove it from modules.conf

noload => codec_opus_open_source.so
noload => format_ogg_opus_open_source.so
noload => res_format_attr_opus.so

but still the NOTICE appears

[2024-01-30 09:39:35] NOTICE[2281972][C-00000001]: translate.c:603 
ast_translate: 244 lost frame(s) 245/0 (gsm at 8000)->(slin at 8000)->(g722 at 16000)
[2024-01-30 09:39:40] NOTICE[2281972][C-00000001]: translate.c:603 
ast_translate: 494 lost frame(s) 495/0 (gsm at 8000)->(slin at 8000)->(g722 at 16000)
[2024-01-30 09:39:45] NOTICE[2281972][C-00000001]: translate.c:603 
ast_translate: 744 lost frame(s) 745/0 (gsm at 8000)->(slin at 8000)->(g722 at 16000)

Please notice (:D) that the message appears each 250 frame

 From our production server

[2024-01-30 09:46:14] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 47227/31226 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:19] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 47477/31476 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:24] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 47727/31726 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:29] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 47977/31976 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:34] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 15999 lost frame(s) 48227/32227 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:39] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 48477/32476 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:44] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 48727/32726 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:49] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 15999 lost frame(s) 48977/32977 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:54] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 49227/33226 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:46:59] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 49477/33476 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:04] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 49727/33726 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:09] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 49977/33976 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:14] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 50227/34226 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:19] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 50477/34476 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:24] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 50727/34726 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:29] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 50977/34976 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:34] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 51227/35226 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:39] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 51477/35476 
(slin at 16000)->(slin at 8000)->(alaw at 8000)
[2024-01-30 09:47:44] NOTICE[3563411][C-00000681]: translate.c:603 
ast_translate: 16000 lost frame(s) 51727/35726 
(slin at 16000)->(slin at 8000)->(alaw at 8000)

same, 250 frames

[...]

>> . in src I see /* not DEBUG but NOTICE because of WARNING in
>> main/cannel.c:__ast_queue_frame */
>>
>> DEBUG should be more suitable but as I don´t understant above sentance ...
> I don't know which severity is more suitable for that code.
In CLI we always have NOTICE,WARNING and ERROR logs, DEBUG not needed. 
The above part of our today capture shows that CLI is not really usable 
with all those messages appart of removing logging NOTICE from CLI

-- 
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-voip-maintainers/attachments/20240130/2ae26929/attachment.htm>


More information about the Pkg-voip-maintainers mailing list