You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
posts/2025/rtpengine-record-pcap/
为什要用 RTPEngine 来录制 PCAP 文件?
一般我们用 Freeswitch 来作为录音服务器, 但是某些场景,例如备份录音,需要在不同节点进行录音。
如果直接录制成 wav 文件,那么比较占用资源,而且备份录音用的几率也是比较小的。
因此录制成 PCAP 文件,可以节省资源,后期 pcap 转语音也能比较容易的实现。
实现步骤
配置rtpengine启动参数
--pcaps-dir=/var/log/records --record-method=pcap --recording-format=eht
在opensips在做SDP Offer
rtpengine_offer("record-call=yes");
录音文件位置
录音文件在/var/log/records目录下,文件名是呼叫的sip Call-ID-16hex随机数.pcap
call1-1234567890abcdef.pcap
call2-1234567890abcdef.pcap
录音文件内容
录音文件用wireshark分析,可以听到主被叫双方的声音。
其他
除了录音文件,一些录音的元数据,例如SDP之类的信息,会被记录到录音的目录下。
https://wdd.js.org/posts/2025/rtpengine-record-pcap/
Beta Was this translation helpful? Give feedback.
All reactions