Richard Fuchs
4b02406b0a
Merge branch 'master' of https://github.com/semhoun/rtpengine
Change-Id: Iaef09e2cfa21250e3ec347eb2afb1efb89344f76
5 years ago
Nathanaël Semhoun
c76b0b7ef6
Fix G729 packet duration
Without this correction, timestamp is not incremented in case of transcoding
5 years ago
Richard Fuchs
017dbbd330
TT#14800 update last_packet during signalling events
closes #1283
Change-Id: I640ff269643eb6ecf9d6fd2a21601aeb39acac58
5 years ago
Sipwise Jenkins Builder
01f06ceb3a
Release new version 10.0.0.0+0~mr10.0.0.0
5 years ago
Richard Fuchs
25cb6ff857
TT#14008 handle deprecated g_memdup
GLib 2.68 deprecates g_memdup() in favour of g_memdup2() as the former
was using a guint second argument which could lead to integer overflows
(gsize should be used instead).
Change-Id: Iaa3e3b1ecaab00d1ac887c915397b15b7204dd11
5 years ago
Richard Fuchs
1b49b43135
TT#14008 release all references held by timerthread on shutdown
This makes sure all objects are cleaned up during shutdown even if the
respective timer hasn't run yet.
Change-Id: I197b930f1b6e407819cc5a8c4ebd92fcef21b2cd
5 years ago
Richard Fuchs
58b566cda6
TT#14008 call the free func only if set
This avoids possible segfault by calling 0x0
Change-Id: Ib45c19d8cf785887cc20f8a07cf30bea270c85e1
5 years ago
Richard Fuchs
50834df3ca
TT#14008 call statistics_free after codecs_cleanup
Some codec handlers hold references to objects held within the
statistics hash table, therefore we must free the statistics after all
codec handlers have been released.
Change-Id: I3832dbeeaaf21d4a82be2dc2c842718415fd46f7
5 years ago
Richard Fuchs
b110072ae4
TT#14008 deprecate av_init_packet
Recent ffmpeg versions have removed AVPacket from the public ABI,
therefore deprecating av_init_packet on statically allocated objects.
The replacement is av_packet_alloc()/av_packet_free().
Change-Id: I5f93fbd19e43413c3328e143cc9147fbdf12d910
5 years ago
Richard Fuchs
b734fc080e
TT#14008 fix integer handling (overflow/sign) issues
Warned-by: coverity
Change-Id: Ia473075046253b2ffcf65344f65469772e6df993
5 years ago
Richard Fuchs
2e66655925
TT#14008 add tests for CN passthrough
Change-Id: Ia0c9f682f1a6f7e6a7d1a568595b6e1f5418dad6
5 years ago
Richard Fuchs
3a6a95f833
TT#14008 fix CN passthrough
Change-Id: I39c75c6089ca3e4c90ebfd7298a81493066a7784
5 years ago
Richard Fuchs
c7431aa846
TT#122401 disable sample filter for CN resampler
Change-Id: I42085cc7952d86f2da1efa2d29ea85321b001da4
5 years ago
Richard Fuchs
ddfce1fcdd
TT#111150 add unit test for resampler
Change-Id: Ib9b78f1200c0f4f5feae549f840059b9481d10b6
5 years ago
Richard Fuchs
9b296db449
TT#122401 fix timing issues with fluctuating ptime
Change-Id: I77877afcafaf81e357b86eefa62eb3e2279ca75e
5 years ago
Richard Fuchs
4cbd676b76
TT#122401 add DTX tests
Change-Id: I518d226c324123f94668dcec470e22b7a4f95f7e
5 years ago
Richard Fuchs
d4fbec39d1
TT#122401 return ptime from decoded packets for DTX
Change-Id: I382b842406fbee73ec752f6f4f0832736222ef52
5 years ago
Richard Fuchs
4f6af3746b
TT#122401 add early DTX logging context
Change-Id: I8ab96e3c0295cce793706226bcb7350816b7109e
5 years ago
Richard Fuchs
64670ffb61
TT#122401 add option to bypass AMR SID
Change-Id: I0504d452737573f388941dcca507e3adfd5744c6
5 years ago
Richard Fuchs
ec68dfeb31
TT#122401 add configurable CN method
Change-Id: I2aa9901b2a9dcf64563a84d77fa40d23b6c25525
5 years ago
Richard Fuchs
7e24a7e4c8
TT#122401 add CN DTX method
Change-Id: I03c977e10f9bdad284dbafb048b2a19d798957e5
5 years ago
Richard Fuchs
dc38a0e88e
TT#122401 support multiple DTX method per codec
Change-Id: I775d56e675255b3dca4227779d1146d8c8806f06
5 years ago
Richard Fuchs
11988524ab
TT#122401 add generic silence DTX generator
Change-Id: I673c1115b6678842d7d49febea3c4ecbb67f534a
5 years ago
Richard Fuchs
5d5098efde
TT#122401 keep track of decoder's output format
Change-Id: Ib55ba9787b07885cfc9544f93749710ce8cafc91
5 years ago
Richard Fuchs
da06ed217b
TT#122401 add ptime to DTX trigger
Change-Id: I96aabff398cbe296243d8bdf7499468c6da96352
5 years ago
Richard Fuchs
7c3982ea11
TT#122401 rename "lost packet" functions to DTX
Change-Id: Ie39ff68eb0be8bf77f1b6c213df837c08fc869b7
5 years ago
Richard Fuchs
b1409e58e1
TT#122401 correct ptime handling for negative values
Change-Id: I3ca96971ec20aa02deb80d2d9613bbaa33c3ae05
5 years ago
Richard Fuchs
830abd6717
TT#14008 add tests for media echo
Change-Id: Ic676f2a9ed84c245ecbb393de05869480f8edd18
5 years ago
Richard Fuchs
1755ccfef4
TT#14008 use temporary variable to avoid stray compiler warning
The glib macro for g_atomic_pointer_get() uses typeof() with an
intermediate variable, resulting in a stray compiler warning if the
argument uses `const` as the intermediate variable also ends up being
const. Use an extra non-const intermediate variable to work around this.
closes #1270
Change-Id: I3bf1404240d3b8571aaf40c38b524f578e0fdbd9
5 years ago
Richard Fuchs
586a8028eb
TT#111150 fix initialisers in test-transcode
This eliminates some compiler warnings
Change-Id: Id41742189d1a79e9d9b1bdf89a5269a9b3dcca7c
5 years ago
Richard Fuchs
0e2bddb6c8
TT#14008 add `pierce-NAT` flag
Change-Id: I1ec9b0ba152939cb6dc079e0047040da862945dc
5 years ago
Richard Fuchs
a009f76456
TT#14008 support media echo and blackhole
Change-Id: I9df4680188709867db2b61d97cc5f1e30c59e0d7
5 years ago
Richard Fuchs
cc9fb063eb
TT#14008 fix possible segfault
closes #1265
Change-Id: I7f02a9c2d7f7fbdf830018200fab99d9cf4f425c
5 years ago
Stefan Mititelu
156271ef9f
Avoid deadlock of notification thread
Fixes issue #1258 .
5 years ago
Richard Fuchs
1ec517c2f4
TT#14008 restore foreign calls from the appropriate DB
closes #1257
Change-Id: I299475a01470cc9d4910d9d304bdda9bbbee6e83
5 years ago
Richard Fuchs
30621846ab
TT#14008 keep track of selected Redis DB
This avoids unnecessary SELECT calls.
Change-Id: I916889cbd4490045fdbacd85138d631ed6f7bd88
5 years ago
Richard Fuchs
4c9b5434bf
TT#122401 actually shut down DTX when out of time
Change-Id: Idfb934e439fd4b3f2cbc37a93b3e45a1f5391917
5 years ago
Richard Fuchs
ab8b25cca8
TT#14008 conditionally disable spandsp build test
When building using with_transcoding=no we should not expect spandsp to
be available as it's not even being used.
closes #1267
Change-Id: I2c8e0407b4dd46cfdd5322cd377b664955ad7c74
5 years ago
Richard Fuchs
faee34f1a0
TT#14008 fix rand_hex_string usage
rand_hex_string() writes a terminated null byte, therefore the buffer
must be larger by one byte.
Change-Id: Ieca67754d67fd7e5f1c94b07ffc8d0de428f552a
5 years ago
Richard Fuchs
24079deb10
TT#14008 add explicit type to STR*INIT macros
This allows these macros to be used in regular assignments and not just
initialisers.
Change-Id: I66ed96192c16ef777959fd9e40302db2786b6545
5 years ago
Richard Fuchs
be30d2cc33
TT#111150 free cn_payload string if present
Change-Id: Ibff3f9484c988f194436479a137baeb583522931
5 years ago
Richard Fuchs
3778baee1b
TT#14008 use const char in str_init_dup
Change-Id: I57246916f472d4d2f61611c401e2324b97329bb6
5 years ago
Richard Fuchs
4d251d5001
TT#111150 disable -Wmissing-field-initializers for gperf
Code generated by gperf does not have complete initialisers for all
struct elements, producing a warning from gcc. Suppress this warning for
code from gperf.
Change-Id: Ie61eb42b293041e43c62df702123f725f6116a9c
5 years ago
Richard Fuchs
1205f22f48
TT#111150 reformat struct initialiser
Expanding the initialiser of the contained array eliminates a stray
warning from gcc (-Wmissing-field-initializers).
Change-Id: Icef260477d0ff7acc050375ce48cc6604ee325ff
5 years ago
Richard Fuchs
addaa6acbc
TT#111150 add missing include
auxlib.h uses uintXX_t types, which needs stdint.h
Change-Id: Ifad291074c501f2f0268f2eb48399b8bec70d272
5 years ago
Tinotenda Chingosho
575435db73
Squashed commit of the following:
commit fd25c8e281
Author: Tinotenda Chingosho <tinochingosho@googlemail.com>
Date: Tue May 11 12:03:55 2021 +0100
Address review comments
- update typo
- document new parameter
commit e4e106f423
Author: Tinotenda Chingosho <tinochingosho@googlemail.com>
Date: Mon May 10 16:18:57 2021 +0100
Support Configurable MTU
- default to 1200
- minmimum value 576
Change-Id: I6cbc03eb7f8198a211d70844c115d162d954dea8
5 years ago
Guillem Jover
d3390bae32
TT#111150 Enable -Wextra minus some of its warnings producing much noise
We should eventually try to reduce the amount of -Wno-* options, but for
now this is a net improvement.
Change-Id: I3bd03679acbc157c0d1b3c257a542e2eec0e5ee9
5 years ago
Guillem Jover
6fc793845b
TT#111150 Use {} instead of ; to mark an empty body
Change-Id: Ib87db24dbb0d89cb03052e7b8a2e8d8802246c33
Warned-by: gcc -Wempty-body
5 years ago
Guillem Jover
adbd071c14
TT#111150 Do not use old-style declarations
Change-Id: I08a702ebfbcc5d3ac1dca284abdaa3f6567b9272
Warned-by: gcc -Wold-style-declaration
5 years ago
Richard Fuchs
951f4d62fb
TT#111150 remove dead code
The internal-iovec bencode semantics are not used any more. Remove the
relevant code.
Change-Id: I22555bf74d935f48a793df441205a7f34b1b2d7f
5 years ago