Richard Fuchs
8bea6eb64d
TT#14008 fix possible segfault
Change-Id: I90cfb2549f4c7d630897aefc1c34aac6bac1e636
5 years ago
Richard Fuchs
6893a7c96d
TT#14008 skip object precreation on second pass
Change-Id: I61a4c1b95b575489d6257c6bb5e3e1833ae6c65b
5 years ago
Richard Fuchs
52d9768418
TT#14008 move build tests to a wrapper script
Since dh_auto_test doesn't execute the test suites through make
directly, but instead runs `make -s -n` and then executes the output,
the integrated build tests fail since the sub-make doesn't return an
error as it should when attempting to build with the wrong .h
alternative, resulting in always the first .h alternative being used.
Fix this by using a wrapper script instead.
Also adjust some other related minor build details.
closes #1202
Change-Id: I4b6436295c6b39117bd06df53aa5afc7118ad6a1
5 years ago
Richard Fuchs
5cf4717f89
TT#115400 explicitly disallow ptime in non-RTP SDPs
Change-Id: Ib1e324861b6a88e1a2f80e4f37a8afa654923a77
(cherry picked from commit e2bf4abee8 )
5 years ago
Richard Fuchs
1393dbfc9a
TT#14008 shut down DTX buffer when resetting codec handler
closes #1203
Change-Id: Ibc8cc89c8fe152a9dc3172d24d3c27b75463d9bd
5 years ago
Richard Fuchs
ff034ff307
TT#14008 use encoder's codec_def instead of parent handler's
closes #1203
Change-Id: I6e39d44aec1ae84595a6da30ab7ab365de4db9ad
5 years ago
Richard Fuchs
702044bd88
TT#111357 fix infinite loop
closes #1205
Change-Id: I45b1506f6eab83841a4dee0a2b87e036b7ab2f5c
5 years ago
Richard Fuchs
19f08a8b78
TT#113750 tests for I603bb86c
Change-Id: Iff348ce8a5ae3d0038128c4c8d162efa7c16aa42
5 years ago
Richard Fuchs
8029a4d1cd
TT#113750 don't auto switch from an already selected fingerprint
If we receive an SDP with a DTLS fingerprint, by default we adopt the
hash function used for that fingerprint in subsequent communication with
that peer. However, if the SDP is an answer, and we previously used a
different hash function in the offer towards that peer, then a later
re-invite offer would be sent with a different fingerprint, causing an
unexpected DTLS restart. Instead, make sure we don't change fingerprints
if one was already sent.
Change-Id: I603bb86ce2d7121556c161749ed08128dd0b63b2
5 years ago
Richard Fuchs
3791b8f595
TT#107565 add `replace-session-name` option
Change-Id: I10d89f3bf8e88fb953cc7cc7fffae056bf0092c3
5 years ago
Richard Fuchs
fc83f64575
TT#107565 add `replace-username` option
Change-Id: I89dd560789adde4d96fa6a6f314b1c3c81a5a47b
5 years ago
Damir Nedžibović
f650f95111
TT#14008 Squashed commit of the following:
commit b3d2d70d4c
Merge: 1e62cbbb eacd2634
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Mar 4 11:36:26 2021 -0500
Merge branch 'fix_packet_order' of https://github.com/enreached/rtpengine into enreached-fix_packet_order
Change-Id: I30690cf4955c04238c359e4aca2d0fea36ebfd36
commit eacd2634e8
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 16:56:07 2021 +0100
Update docs with --poller-per-thread option.
commit 7d02539673
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 16:47:55 2021 +0100
Prevent mem leak.
commit 3510a5d021
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 13:25:39 2021 +0100
Make poller per thread functionality configurable.
commit a2142b2a5e
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 11:57:18 2021 +0100
Use pthread_self() instead of syscall(SYS_gettid).
commit 2e471cae40
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 11:46:44 2021 +0100
Refactor the code a bit.
commit 91f72455c9
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 11:21:42 2021 +0100
Use usleep() instead.
commit 08d3bdb4ed
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Mar 4 11:03:39 2021 +0100
Use ssl_random() instead.
commit 2d9995a864
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Tue Mar 2 15:50:13 2021 +0100
Sleep for 20ms instead.
commit eded168a38
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Tue Mar 2 15:11:43 2021 +0100
Implement poller per thread in order to fix packet order.
Change-Id: If652c906be8b16115eb84e749f89a2729ba75120
5 years ago
Guillem Jover
1e62cbbb9a
TT#111150 Inline int_diff_print_sz() to avoid pointer handling
We simplify the function so that we do not need to meddle with pointers
and data sizes.
Change-Id: I3e653b44b28347053cc7a1053de8220c80250816
Warned-by: lgtm
5 years ago
Guillem Jover
eb84cb0148
TT#111150 Use localtime_r() instead of thread-unsafe localtime()
While the code is not threaded, better be future-proof and use safer
APIs, which in addition has less side-effects as it does not set the
global TZ related variables.
Also check for failures.
Change-Id: I083d2b5ad6901ac1a91d42d1ab7fe3e0989b02a0
Warned-by: lgtm
5 years ago
Guillem Jover
3a6950087e
TT#111150 Remove tautological check in stun()
The ntohs() function returns uint16_t, which will always fit within an
int (including in excess for the signed bit) on the platform we support.
Thus the check for negative values is never going to hit.
Change-Id: Ie9d5bcfe5709c50260098f91ff111755ded72921
Warned-by: lgtm
5 years ago
Richard Fuchs
def813cfde
TT#101201 fix ICE-lite mode switch
Change-Id: I10689bc07b86984880bfd420d6be4fbb057c41d1
5 years ago
Richard Fuchs
7f579ac2db
TT#111357 add microseconds to file name patterns
closes #1195
closes #1150
Change-Id: Ic6ea7b40ff1f26e92ab2d50adc50776f72a10616
5 years ago
Guillem Jover
a8a0adb759
TT#111150 Remove tautological test in dtmf_inject()
The tracker.most array is of unsigned char, so pt which gets
unconditionally assigned will always be >= 0.
Change-Id: I8adc06fc6c65aa0e33ef6614eb77c67b0dc07517
Warned-by: lgtm
5 years ago
Guillem Jover
68797f4195
TT#111150 Mark bit-fields explicitly with as unsigned
Whether a bit-field is signed or unsigned is implementation specific, so
we should be explicit about this.
Change-Id: I744df3d24bc08e95fa816ba4135f19cd3a5dcb17
Warned-by: lgtm
5 years ago
Richard Fuchs
af6ef843da
TT#100200 suppress audio packets during a DTMF event
Change-Id: I9612d692c3c6945c93b3194760383e67e5bca0e0
5 years ago
Richard Fuchs
7414da5bff
TT#100200 fix timing issue with sending DTMF
Change-Id: Iad9cffaf7316420fde85e0eeaffda7409bf49625
5 years ago
Richard Fuchs
c1c80da0c7
TT#14008 better logging for send_timer
Change-Id: Id3b7463c0e8cfc4e8b32adfebbbfc37e4bca52d7
5 years ago
Richard Fuchs
083ae4c37f
TT#14008 convert rtcp-fb handling to list
closes #1196
Change-Id: I08ec4bf783d2a6bc0e83498e61cf964718a03de4
5 years ago
Richard Fuchs
77feea6e4d
TT#108551 document AEAD support in README
Change-Id: If305cc19733569ccc26942837cd450989d2dc815
5 years ago
Richard Fuchs
eb1157d386
TT#112250 don't change ports when endpoint is talking ICE
Change-Id: I0e60534d6d3cb62d25b8d865da02c3472cf0994e
5 years ago
Richard Fuchs
8aecb6a98a
TT#111357 also apply chown to created parent dirs
Change-Id: I6300e49816f83561f3eafffc893cfb1efc334b6f
5 years ago
Richard Fuchs
b8b395e21f
TT#111357 add chmod setting for created output dirs
Change-Id: I233b83febd087f202e047194ad3ad97c6651ea3b
5 years ago
Richard Fuchs
c8d6a45777
TT#111357 add support for configurable output file name patterns
Change-Id: I8662a2ee93700329ee2641c536be9ea8306f6b89
5 years ago
Richard Fuchs
7c25d39f70
TT#111357 switch to dynamically allocated strings for file names
Change-Id: I3299ffb10083dc8390ca60d810d1359f77215737
5 years ago
Richard Fuchs
23dbe78548
TT#14008 fix possible use-after-free on shutdown
Reorder the shutdown cleanup calls so that option strings are freed
last, as they may be used by other components during shutdown cleanup
Change-Id: I297f6d0c3dbbb22c4d34d7866844824c8d97e940
5 years ago
Richard Fuchs
01ce0fe833
Merge branch 'master' of https://github.com/smititelu/rtpengine
Change-Id: I6532b2d88589ca84eae8324a879b22a65e60f791
5 years ago
Stefan Mititelu
6f457b50d1
Get time before deciding to re-establish redis connection
Also set redis connected state when PING works again
5 years ago
Richard Fuchs
e1ee75a476
TT#14008 add `reorder-codecs` flags to test script
Change-Id: Ib8f1331508e805718eb590ee7def03ce689bb6e1
5 years ago
Richard Fuchs
fdac938ecf
TT#91151 add a free-form software ID config option
closes #1141
Change-Id: I99bd0d7ecc414e2b4f6e7e3fea72aab5935f8939
5 years ago
Richard Fuchs
9d332f9b0f
TT#111357 use a better default for recording threads
Change-Id: Id9f3d0404505e87bf785e52680c5a771d6d58828
5 years ago
Richard Fuchs
b0f185f409
TT#111357 refactor sysconf() call into shared code
Change-Id: Ifd8d1d774f55e7c58bf82c9a5f67787e02f53c3f
5 years ago
Richard Fuchs
a25fa3cc00
TT#111357 don't allow libav* to create its own threads
Change-Id: I5227bb947c07841f0481f73ee75f7c36cc8f3257
5 years ago
Richard Fuchs
a8013ffe70
TT#111051 set thread specific process names
Change-Id: I6a5bb14c070d93b865510786f5107220b93faef1
5 years ago
Richard Fuchs
5c79036f63
TT#14008 fix potential failed assertion
Change-Id: Ie4912bd5395802b51293d13c929a02374fa9b0f0
5 years ago
Sipwise Jenkins Builder
2377d835c3
Release new version 9.4.0.0+0~mr9.4.0.0
5 years ago
Richard Fuchs
543bac908e
TT#106253 cleanup TLS variables on shutdown
Change-Id: I77f88e6a34e4720f6fbd0c585d2cf9843a3b309e
5 years ago
Richard Fuchs
4f5e83e681
TT#14008 fix possible mem leak
Change-Id: Ie506c74e8effc9dcb88331377cdb5cff2ed0d9a4
5 years ago
Richard Fuchs
7edf0c5516
TT#108551 fix AEAD kernel encryption
closes #1187
closes #1190
Change-Id: Ibb43e4d9868ce84d6205840d71516752da341697
5 years ago
Guillem Jover
6a9d61dffd
TT#108003 Check send() return code for DTMF UDP logging
Log an error and continue anyway if the send() failed, this is just
logging.
Change-Id: I542385489f8e37e6e524b766371fed3ba558ff2f
5 years ago
Guillem Jover
962479bd63
TT#108003 Stop using random()
While these usages are not supposed to be security sensitive, it's still
best to avoid the usage altogether so that we do not need to think about
it. Add a taint macro so that this does not regress in the future.
Change-Id: Ic75861ed1b7ce9dfca4f897de8be2408204ce3cb
Warned-by: coverity
5 years ago
Richard Fuchs
abb281daac
TT#91151 add additional check for kernel module commands
Change-Id: I27f9ca4f03cd979ecbcf01e8fb1801a306f9d396
5 years ago
Richard Fuchs
fa6d29b45c
TT#91151 fix wrong hash table lookup object being used
fixes 8abc6b1c
Change-Id: Id38636308c9c6f37b95829911af71148ca3256ce
5 years ago
Richard Fuchs
ab54b774ed
TT#14008 remove .depend from make system
The dependency tracker is causing more problems than what it's worth, so
just remove it.
Change-Id: I5db8cae57400cd644add08447406a4526da03f65
5 years ago
Richard Fuchs
302968fc0e
TT#14008 rename some test suites
Rename test suites from *-test.c to test-*.c as the former is
conflicting with the file name pattern of the build tests, which are
listed in .gitignore.
Change-Id: I8779fac492510c0996bdcb2c6250c07536fe3b63
5 years ago
Richard Fuchs
21d1057f68
TT#108003 fix possible deadlock
Change-Id: I604bd76248aa0bc33589ee379a99b6f82c840662
5 years ago