Richard Fuchs
573cd3ff22
TT#58050 fix refcount bug
Every packet_stream gets a send_timer allocated, but the teardown
routine skips the refcount decrease for fallback RTCP streams (when
rtcp-mux is in use), resulting in mem leak
fixes #753
Change-Id: Ib3a4ef8a81135918f08e28e127e4bb557b8ea05d
7 years ago
Richard Fuchs
16292257c8
add `stream` db column to sample db schema
closes #757
Change-Id: I3b6635f86f892f6cbbf3213c64c854c52a62fe35
7 years ago
Richard Fuchs
3d64af1b24
fix incorrect sample config (`1` instead of `true`)
reported in #721
Change-Id: I0e569ec7404604a28c00aabd6d154b9bfa7200ff
7 years ago
Richard Fuchs
582e645a98
fix missing recording_on flag set
reported in #721
Change-Id: I273b4d7c1ba167058366e4c36e5a392b7c734cf2
7 years ago
Richard Fuchs
ac825cc47a
TT#56553 fix double G.722 sample rate issues
Fixes missing RTP TS rescaling
Fixes double clock rate adjustment
Fixes sequencer not releasing packets after seq reset
Fixes #748
Change-Id: Ic6021ab6fd781cd291c0aba3e03633f565908c29
7 years ago
Guillem Jover
ec8df352dc
TT#23584 Use $(MAKE) instead of make to honor parallel builds
We need to use the MAKE variable in Makefiles to be able to honor
parallel builds.
While this is of no much consequence here as the kernel module is
composed of a single file, the kbuild system might still be able
to perform other actions in parallel, it still is good form and
makes this future-proof, and copy&paste resistant.
Change-Id: I43b95e59d99eb223b45007d20e18f33761cebca6
7 years ago
Richard Fuchs
cd23c05044
TT#56007 TT#55864 make RTPENGINE rules UDP only
The rtpengine kernel module only cares about UDP packets, so narrow down
our iptables rule accordingly.
Change-Id: I33856efa6b39372104b05ec0dc6f34ad0b5e0cbd
7 years ago
Richard Fuchs
9c6677d2fd
TT#56007 TT#55864 leave xt_RTPENGINE loaded after stop
There might be a firewall script that installs and manages the
xt_RTPENGINE rules even if rtpengine isn't running at the point. Leave
the module loaded if possible and unload it only for a package removal
or upgrade.
Change-Id: I5a35e965379aebd757a45883f82bbcb5fa2412e8
7 years ago
Richard Fuchs
70b1ae5acb
Add missing perl-IPC-Cmd build dependency for RPM
fixes #743
Change-Id: If7db7f49f325b5c311df1d61e1d7f60238431ff2
7 years ago
Richard Fuchs
cfbd4bccf8
Add missing check_conn when running SQL statements
Intermittent errors from the DB can cause the connection to be reset and
not re-established for the next statement to be executed, leading to
segfaults.
fixes #742
Change-Id: I1ed5b75457ab7167a70df5e04a964d37f98e60f7
7 years ago
Richard Fuchs
32c0f768f0
Merge branch 'patch-1' of https://github.com/netaskd/rtpengine
Change-Id: I90a89aed2710d644ae54c81d50473bc8a766fea7
7 years ago
Richard Fuchs
8eada4c03a
TT#45617 document new log-mark-prefix/suffix options
Change-Id: I6e7772974f54d1938ed0fc9d6f926b080c415688
7 years ago
Richard Fuchs
26b725d024
TT#45617 add new options to support log markers for sensitive data
Change-Id: I2ffa4da4be3a05f043e7991612bbb37d8102d91a
7 years ago
netaskd
c2ad397cc1
Define requires according to the installed kernel.
thanks @mika for suggestion
7 years ago
netaskd
7b546e481d
add kernel-devel as requires for DKMS module build on target host
DKMS module will not builded without kernel sources
7 years ago
Richard Fuchs
354f75490d
TT#45617 add no-log-timestamps option
Log lines written to stderr that are consumed by journald will already
have timestamps added to them. Drop the redundant unixtime output for
this use case.
Change-Id: I34886a69a0ef90de2eb84ee8f446cbad624302c1
7 years ago
netaskd
4cdf1067cb
rtpengine.spec: fix building dkms module on a different host kernel version
7 years ago
Richard Fuchs
f01568ed95
fix compilation for older ffmpeg
fixes #732
Change-Id: I3e0ed5b889034718e1a19f537e738f734842484d
7 years ago
Richard Fuchs
6df650ce54
fix compilation for older dpkg-parsechangelog
Change-Id: I302015bc025827fb4789b74c32dfee0b8319b730
7 years ago
Richard Fuchs
d279789e23
silence warnings when compiling with -DNDEBUG
Change-Id: I46d16f6c083d281622ce71644bcf8d224e0b36b7
7 years ago
Richard Fuchs
357474df6f
TT#50652 add label= option to match call participants
Change-Id: Ifc6cf8f630e9e5eb8cfb9b284e671a5ce4470963
7 years ago
Richard Fuchs
9917e65599
fix division by zero for dtmf in some cases
closes #730
Change-Id: Ic917cc21d5c9a2012ae59d8c9c323114074fb300
7 years ago
Richard Fuchs
52660eddd2
TT#54800 add ptime-reverse tests
Change-Id: I565daf5d86576f3b47bb190685fc68cfed1ec739
7 years ago
Richard Fuchs
fb76ef74f8
TT#54800 fix ptime overrides
Adds a new option ptime-reverse to complement setting of ptime towards
the offerer. This and ptime setting are now ignored in answers.
Change-Id: Icbc04f191cbc194b75b72a97832fcaba58feb10e
7 years ago
Richard Fuchs
6921472e3b
TT#54800 add ptime tests
Change-Id: Ia8423bf560d6a563b5a3f6ba77edf11a726b2766
7 years ago
Richard Fuchs
dc9f99763a
TT#54800 sequencing fixes
fixes incorrect seq when packets are consumed, as well as incorrect seq
for out of order packets
Change-Id: I0e2117ab68ccf5d0fa63b395a059aeb992f7dd13
7 years ago
Richard Fuchs
40dc49f8e2
TT#50652 stop media playback on call delete
Change-Id: I008c6403ad8f3529806d5649bee0928fb50e9754
7 years ago
Richard Fuchs
661994e362
as per docs, remove all relay candidates under force-relay
fixes #728
Change-Id: I2828d4d9d5832d7248ea78b48bd38dba9592cca1
7 years ago
Richard Fuchs
41cddcc293
normalise compat.h handling towards kamailio tree
Change-Id: Ia22a603c11b216969f4c0a854af42600a99a2819
7 years ago
Richard Fuchs
9eea6b1fc4
Reverse participant matching logic
The from-tag may have been added to the message automatically, so we
should first check if any other flags are present, and use it only if
nothing else was found
Change-Id: Iec95d56812c31185ecd1171d01c922e7af0f5dd4
7 years ago
Richard Fuchs
349954d2bc
TT#50652 handle SRTP output for media playback
Change-Id: Ie83c9c01c4c17e14d30aa14272b86af9ea38e1fb
7 years ago
Richard Fuchs
d449861d96
TT#50652 separate out and move crypt handler routines
Change-Id: Ia30aa8912f02ca2ea427b3c659a4b8696dc4a2a0
7 years ago
Richard Fuchs
c9bae61ed7
TT#50652 add media playback tests
Change-Id: I5ba67c553594fa8c4254598375b26b06b7174835
7 years ago
Richard Fuchs
e1825e3577
TT#50652 ensure consistent RTP timestamp across media restarts
Change-Id: I96b72dd13c13728b4f401f42951fbc231cc36705
7 years ago
Richard Fuchs
8d9a0d247c
TT#50652 remove already enqueued packets when media is stopped
Change-Id: I0fd2a7100d331d341518888d2c591dbf84b2599d
7 years ago
Richard Fuchs
7e85d1a935
TT#50652 keep existing SSRC context when starting another playback
Change-Id: Ia4e64c39f870d0481847a67dd9c8dac1531e822d
7 years ago
Richard Fuchs
223996bc58
TT#50652 add documentation for media playback capability
Change-Id: Id9fb0a095f1c54a265f3a30f0a38542db06d46b4
7 years ago
Richard Fuchs
7f5e16d3da
TT#50652 add stop_media call
Change-Id: I1b18a41d4b97ccbb83499873e50a797f846a8602
7 years ago
Richard Fuchs
7da2b523a7
TT#50652 return media duration to SIP proxy in play_media response
Change-Id: Ib09519f960b37ca41a554aa2779f71c91ef9b49d
7 years ago
Richard Fuchs
e1e6fd4297
TT#50652 add explicit libav error reporting
Change-Id: Ib4bc3e89e54a1d4478dd32f7947dadeb262c18ec
7 years ago
Richard Fuchs
5b0a0105ef
TT#50652 support playing back media files from database
Change-Id: Ib21b6605553f67d6892ec8e2c75a7b0fca40936e
7 years ago
Richard Fuchs
831946a8d4
TT#50652 fix compilation for with_transcode=no
Change-Id: Ie65827be7e27a6f77019a983a1ce131c11b694d3
7 years ago
Richard Fuchs
3bdad88063
TT#50652 create timer to gradually send packets without jitter
Change-Id: I5b28f7514f54c6df9f3ee607e3bca76274b431b3
7 years ago
Richard Fuchs
d639223bee
TT#50652 add logging info to media_player timer runs
Change-Id: Iac4a1b2de1625ed9419bc76f22eea8167e55951f
7 years ago
Richard Fuchs
29a83846d7
TT#50652 use a better timeval_cmp function
Change-Id: I727d1e7c28c2fe887fa0889060ae5f93883f52bd
7 years ago
Richard Fuchs
c7051fcffb
TT#50652 use hash table for AVCodec ID lookup
Change-Id: I716a7640ceed6dd3ba459688e9f89d2ef8f76f16
7 years ago
Richard Fuchs
7cc530905a
TT#50652 add support for 8-bit unsigned PCM
Change-Id: I8a75c81ee90c2593a24367f86107863cfd5f680f
7 years ago
Richard Fuchs
8874b4a31f
TT#50652 use random RTP TS when playing back media
Change-Id: I7b97877b0c6b7119cbfc6865f947895168af18fc
7 years ago
Richard Fuchs
21535faea6
TT#50652 support playing back media from memory stream
Change-Id: I400c4edbda4633abcff07319ce8cd0609b0021b1
7 years ago
Richard Fuchs
4aaccca6ee
TT#50652 separate out media playback routine
Change-Id: I35e4071645ff2c0e16a9901ff3d65516dda1907e
7 years ago