Hello
I guess that many people here used that script and hope that someone could explain what is the reason it fails.
Thank you in advance. Below is a problem
description.
OS - RHEL 64bit
RTP in pcap file - pcmu/8000
rtpengine 12.1.1.4
In general, everything is working fine between rtpengine and rtpengine-recording on that host.
Command line
perl
kernel-intercept-pcap-replay.pl call3_full_1_rtp.pcap 0 pcmu/8000
print("adding kernel call\n");
my (undef, $cid) = msg_ret(5, '', 'I I', 'I a256', 0, $parent)
print("kernel cid $cid\n");
sub msg_ret {
my ($cmd, $extra, $unpacker, $packer, @rest) = @_;
my $msg = pack('II' . $packer, $cmd, 0, @rest);
# for 32-bit:
# my $msg = pack('I' . $packer, $cmd, @rest);
$msg .= ("\0" x (840 - length($msg))); # packet length also needs adjusting for 32-bit
$msg .= ($extra // '');
sysread($kfd, $msg, length($msg)) or die $!; return unpack($unpacker, $msg);
}