Repository navigation
Open
Labels
nethvoiceBug or features releted to the NethVoice project
Milestone
Description
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-rtpin rtpengine, applied byupdate-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 countersnethvoice_proxy_rtp_{jitter,packetloss,mos}_sum_total(fromjitter_total,packetloss_total,mos_total) andnethvoice_proxy_rtp_{jitter,packetloss,mos}_samples_total. The rtpengine HTTP/metricsendpoint is not used: it needs a new listening port and an rtpengine restart. - Rules: average =
increase(sum[15m]) / increase(samples[15m]), withincrease(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 inonreply_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
- Parent issue: NethVoice: Configurable Alerting for Critical NethVoice Events #8066
- Phase 1: feat(alerts): add first NethVoice alerts nethesis/ns8-nethvoice#1067, feat(alerts): add ServiceDown and trunk alerts nethesis/ns8-nethvoice-proxy#231
- Module
export-metrics: feat(metrics): publish module metric files ns8-core#1365 (core 3.24.0) - Module alert rules: feat(alerts): allow module-provided rules ns8-metrics#91 (metrics 1.7.0)
Metadata
Metadata
Assignees
Labels
nethvoiceBug or features releted to the NethVoice project
Type
Projects
- StatusShow more project fieldsTodo
Activity