Asterisk Timing Modules

FreePBX Distro 13.0.192.9 with Asterisk 13.12.2 load of about 100 concurrent calls I am getting sporadic choppy audio for a few seconds that is time coinicident with these CLI debug :

[2017-07-17 12:30:49] DEBUG[44046][C-000e0cc2]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 28 instead
[2017-07-17 12:30:49] DEBUG[44046][C-000e0cc2]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4360, ms is 565
[2017-07-17 12:30:49] DEBUG[43885][C-000e0cbe]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4392, ms is 569
[2017-07-17 12:30:49] DEBUG[43885][C-000e0cbe]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 27 instead
[2017-07-17 12:30:49] DEBUG[44124][C-000e0cc4]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 27 instead
[2017-07-17 12:30:49] DEBUG[44124][C-000e0cc4]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4312, ms is 559
[2017-07-17 12:30:49] DEBUG[45284][C-000e0ccb]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 28 instead
[2017-07-17 12:30:49] DEBUG[44540][C-000e0cc7]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 28 instead
[2017-07-17 12:30:49] DEBUG[45284][C-000e0ccb]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4344, ms is 563
[2017-07-17 12:30:49] DEBUG[44540][C-000e0cc7]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4368, ms is 566
[2017-07-17 12:30:49] DEBUG[43886][C-000e0cbf]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 28 instead
[2017-07-17 12:30:49] DEBUG[43886][C-000e0cbf]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4392, ms is 569
[2017-07-17 12:30:49] DEBUG[42664][C-000e0cbb]: res_timing_timerfd.c:167 timerfd_timer_ack: Expected to acknowledge 1 ticks but got 28 instead
[2017-07-17 12:30:49] DEBUG[42664][C-000e0cbb]: res_rtp_asterisk.c:3318 ast_rtp_raw_write: Difference is 4392, ms is 569

When I look at timing sources:

Module                         Description                              Use Count  Status      Support Level
res_timing_dahdi.so            DAHDI Timing Interface                   0          Running              core
res_timing_pthread.so          pthread Timing Interface                 0          Running          extended
res_timing_timerfd.so          Timerfd Timing Interface                 26         Running              core

I see res_timing_dahdi.so is not used. But when I run dahdi_test I average 99.97%.

Should I noload the other two timing modules? Has anyone else seen this issue? It started after my last batch of updates.

I fixed the issue by entering

  noload=res_timing_pthread.so
  noload=res_timing_timerfd.so

in /etc/asterisk/modules.conf and restarting asterisk.

So only res_timing_dahdi.so is loaded and the audio problem is fixed. I hope this doesn’t break something else.

1 Like