Repository navigation
Description
After the update from NethVoice 1.7 to 1.8, calls have choppy or metallic audio for a few seconds at the start of every minute. On a node that hosts several NethVoice instances the problem is heard on almost every call.
Steps to reproduce
- Install NethVoice 1.7.14 on a node, better if several instances share the same node
- Update the instances to NethVoice 1.8.6
- Do not restart NethVoice after the update
- Make a call that lasts a few minutes, for example a call answered through a queue
- Inside the
freepbxcontainer runcrontab -u asterisk -l
Expected behavior
The audio is clean for the whole call. The asterisk user has no scheduled jobs: NethVoice does not use the FreePBX scheduler, as in 1.7.
Actual behavior
The asterisk user has a list of scheduled jobs that FreePBX added during the first start after the update. One of them runs every minute, and it starts at second 0 on every instance of the node:
*/15 * * * * [ -e /usr/bin/fwconsole ] && sleep $((RANDOM\%30)) && /usr/bin/fwconsole userman --syncall -q
34 1 * * * /usr/bin/fwconsole certificates --updateall -q 2>&1 >/dev/null
* 4 * * * /usr/bin/fwconsole util cleanplaybackcache -q
42 8 * * 6 [ -e /usr/bin/fwconsole ] && /usr/bin/fwconsole ma listonline --sendemail -q > /dev/null 2>&1
* * * * * [ -e /usr/bin/fwconsole ] && sleep $((RANDOM\%30)) && /usr/bin/fwconsole job --run --quiet 2>&1 > /dev/null
The random delay does not work: the container shell always returns 0 for $RANDOM.
On a node with 4 CPUs and 12 instances the processor is fully busy for 4-5 seconds every minute (42 fwconsole processes, 34 processes waiting to run), then goes back to about 90% idle. During those seconds Asterisk cannot keep up with the audio and logs this warning, almost always in the first 10 seconds of a minute:
WARNING[387118][C-000004aa]: channel.c:1118 __ast_queue_frame: Exceptionally long voice queue length (97 voice / 97 total) queuing to Local/224@from-queue-000007b8;2
The cleanplaybackcache job runs every minute for a whole hour of the night, chosen at random between 0 and 5.
The jobs disappear when the freepbx container is created again, for example when NethVoice is restarted or updated once more. An instance that was restarted after the update is not affected.
Components
NethVoice 1.8.6, updated from NethVoice 1.7.14. Reproduced on NethServer 8 nodes with 4 CPUs and 11-12 NethVoice instances each.
See also
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(freepbx): keep cron disabled after upgrade (#1343)
edospadoni commentedon Nov 27, 2026
Test
PRs: nethesis/ns8-nethvoice#1343
Setup: a NethVoice 1.7.14 instance to update, and (if available) an instance already updated to 1.8.6 whose
freepbxcontainer was never restarted after the update. Commands run inside thefreepbxcontainer (runagent -m nethvoiceX podman exec freepbx ...).Test Case 1 - Update from 1.7.14
crontab -u asterisk -lprintsno crontab for asteriskgrep -A1 'function installCrontab' /var/www/html/freepbx/admin/libraries/BMO/Cron.class.phpshows a line with onlyreturn;(the class that does nothing is in place). Note: the copy undermodules/framework/amp_conf/exists only until FreePBX installs the framework module again, then FreePBX removes that folder: a missing file there is expectedcrontab (asterisk)orfwconsole job --runlinesTest Case 2 - Instance already affected
crontab -u asterisk -llists the FreePBX jobs (fwconsole job --runevery minute)crontab -u asterisk -lprintsno crontab for asterisk, and thegrepcheck of Test Case 1 passesTest Case 3 - Regression
asteriskcrontab is still missingTesting release: 1.8.7-testing.28 (nethesis/ns8-nethvoice#1343)
edospadoni commentedon Nov 27, 2026
A second effect of the same scheduled jobs (ticket 208177): the Queue Manager disappears from NethVoice CTI from time to time, and opening it shows "Reserved page". It affects only instances updated from 1.7 that still have the
asteriskcrontab.The
userman --syncalljob runs every 15 minutes. When the display name of a user changed, it starts a FreePBX reload. Jobs started by cron do not have the environment variables of the container, so the reload finds no subscription and writes"qmanager": {"value": false}in/etc/nethcti/profiles.json, while the permissions of the single queues stay enabled. The permission comes back at the next configuration apply from the wizard, and is lost again at the next reload started by cron.No additional change is needed: without the crontab (nethesis/ns8-nethvoice#1343) the reload is no longer started by cron.
Test Case 4 - Queue Manager permission
grep -o '"qmanager":{"value":[a-z]*' /etc/nethcti/profiles.jsoninside thefreepbxcontainer still showstruefor that profile, and the Queue Manager is still visible in NethVoice CTIedospadoni commentedon Nov 27, 2026
Release
nethesis/ns8-nethvoice1.8.7