Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

rtpengine-recording: recording occasionally not produced (no output file, no notify) — intermittent, ~1 in 10–15 calls

オープン
#2,136 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
c, debian, linux

調査の方向性

The payload names no source files; start by grepping both daemons' logs by Call-ID for a failed call and check whether core rtpengine wrote the spool-dir pcap/metadata file (Stage 1) or whether rtpengine-recording failed during decode/finalize (Stage 2). Compare a successful and a failed call's spool-dir contents and rtpengine-recording.conf settings (output-dir, notify-uri, log-level). Done means the failing stage and root cause are identified and the pipeline either produces output plus notify or logs a clear actionable error.

索引モデルが issue の本文から書いたものです。

説明


Description

We're running a two-daemon call recording setup (core rtpengine + rtpengine-recording) in production, using kernelized packet export (recording-method = proc) triggered per-call via the record call: yes ng protocol flag from our SBC application on a mid-call re-INVITE.

Intermittently — roughly 1 in every 10–15 recorded calls — the recording pipeline fails to produce a usable result:

  • No final output file appears in output-dir.
  • No notify-uri HTTP notification is ever received by our webhook endpoint.
  • The affected calls are otherwise entirely normal: they connect, run for a normal duration, and terminate cleanly with a standard BYE. There is nothing unusual in the SIP signaling for the affected calls that we've been able to identify.
  • This is not reproducible on demand. It happens sporadically under normal production load.

Steps we've taken to isolate the cause so far

  1. Ruled out our own webhook handler as the sole cause — added logging immediately on request receipt (before any other processing) to confirm whether a notify request lands at all. For the affected calls, no request arrives at our endpoint — so this is not a case of our handler failing to respond in time or erroring silently.
  2. Ruled out notify-purge deleting the file after a successful notify — notify-purge is disabled in our config, so it cannot be responsible for the missing file.
  3. Ruled out filesystem permissions — both rtpengine-recording and our consuming application run as root, so standard ownership/permission mismatches are not a factor.
  4. Still to confirm (would appreciate guidance on where to look): whether the core rtpengine daemon is writing the initial spool-dir pcap/metadata file for the affected calls at all (Stage 1), versus the spool file existing but rtpengine-recording failing during decode/finalize (Stage 2). We plan to grep both daemons' logs by Call-ID the next time this reproduces and will attach the pcap + metadata for an affected call once captured.

Expected behavior

Every call for which record call: yes is successfully acknowledged by rtpengine (response.result === 'ok') should reliably result in either:

  • a completed output file plus a corresponding notify-uri HTTP notification, or
  • a clearly logged failure (decode error, resample error, storage error, etc.) that we can act on.

Actual behavior

For an intermittent subset of calls, neither occurs — no file, no notification, and (so far) no clearly attributable error logged at our default log level.


Environment

Field Value
rtpengine version 13.1.0.0+0~mr13.1.0.0 git-HEAD-f3aa776b (confirmed identical for both rtpengine and rtpengine-recording)
Distribution Debian GNU/Linux 10 (buster)
Linux kernel version 5.10.0-0.deb10.16-cloud-amd64
CPU architecture x86_64
Recording method proc (kernelized, xt_RTPENGINE kernel module)
Deployment core rtpengine and rtpengine-recording on separate hosts (SBC host vs. recording-engine host)

Configuration files

Attached: rtpengine.conf and rtpengine-recording.conf (full files as currently deployed in production).

Key options for reference:

rtpengine.conf ([rtpengine] section):

recording-dir = /var/spool/rtpengine
recording-method = proc
recording-file-per-stream = false
recording-all = false

rtpengine-recording.conf:

output-storage = file
output-format = wav
spool-dir = /var/spool/rtpengine
output-dir = /root/apps/sbc-recorder-server/recordings
resample-to = 8000
log-level = 6
output-mixed = true
flush-packets = true
notify-uri = https://<redacted>/recordings/recording-completed
notify-post = true

主要言語
Perl
スター
992
フォーク
459
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sipwise/rtpengine のほかの issue

sipwise/rtpengine の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。