Skip to content

NethVoice: Alerts for call quality #8299

Open

Description

@andrea-marchionni

Second phase of the built-in NethVoice alerts (#8066). It adds alerts for problems that users notice before administrators do: poor audio quality.

Phase 2 alerts could warnings, never critical. They are published only when the "Alerts (beta)" switch of the module is on, like the phase 1 alerts.

Proposed Alerts

# Alert Module Severity Condition Duration
1 NethVoiceRtpJitterHigh Proxy warning Average jitter above 30 ms, at least 10 samples [15m], for: 15m
2 NethVoiceRtpMosLow Proxy warning Average MOS below 3.5, at least 10 samples [15m], for: 15m
3 NethVoiceRtpPacketLossHigh Proxy warning Average packet loss above 2%, at least 10 samples [15m], for: 15m

Audio quality (Proxy)

  • Enable measure-rtp in rtpengine, applied by update-module (it restarts rtpengine). With it, jitter is measured on all relayed calls, not only on calls with RTCP reports.
  • New proxy collector rtpengine: podman exec rtpengine rtpengine-ctl -ip 127.0.0.1 -port 2224 list jsonstats. Export counters nethvoice_proxy_rtp_{jitter,packetloss,mos}_sum_total (from jitter_total, packetloss_total, mos_total) and nethvoice_proxy_rtp_{jitter,packetloss,mos}_samples_total. The rtpengine HTTP /metrics endpoint is not used: it needs a new listening port and an rtpengine restart.
  • Rules: average = increase(sum[15m]) / increase(samples[15m]), with increase(samples[15m]) >= 10. Jitter > 30 (ms), packet loss > 2 (%), MOS < 3.5.
  • One value for the whole proxy, not per trunk or per NethVoice instance. Only media that goes through rtpengine is measured.

Checks before implementing

  • V3: with a real provider and a phone registered through the proxy, confirm the trunk/device split in Kamailio (is_from_local(), is_domain_local("$td")) and that $avp(nv_*) are readable in onreply_route.
  • V4: with a real call, confirm the units reported by rtpengine (jitter in ms, MOS 1–5, packet loss in %) and that typical phones and providers send RTCP.

References

Activity

  1. added this to the NethVoice 1.9 milestone on Nov 9, 2026
  2. added
    nethvoice
    on Nov 9, 2026
  3. changed the issue type fromtoon Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethvoice

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions