Richard Fuchs
586a8028eb
TT#111150 fix initialisers in test-transcode
...
This eliminates some compiler warnings
Change-Id: Id41742189d1a79e9d9b1bdf89a5269a9b3dcca7c
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
Richard Fuchs
df5f810651
TT#14008 fix base64 encoding issues with older glib in t/
...
closes #1251
Change-Id: Ic2f03f673160484e439e4e1d1b99122999af6060
5 years ago
Guillem Jover
89d1a77f37
TT#111150 Fix memory leak in test
...
Change-Id: I8461441516cf04f5da811ca5cdfca5a4029d7bf2
Warned-by: gcc ASAN
5 years ago
Richard Fuchs
d5d0a3a994
TT#111150 convert str.len to size_t
...
This makes the type in line with string(3) functions and eliminates some
compiler warnings.
Also update the related bencode data type.
Change-Id: I7ef4024f4b5a0f737b3dbe03bcd078032395bce6
5 years ago
Richard Fuchs
87e5efc7d4
TT#111150 fix mem leaks in test-transcode
...
Change-Id: I3a796184e64b1fc1f760b53fe7d1855997ab8b72
5 years ago
Richard Fuchs
a9fdc219f0
TT#14008 amend kernel test script
...
Change-Id: If2031ad6e5c581775b96fa48d8b2d4a4c331ef19
5 years ago
Richard Fuchs
a86d98f8d1
TT#118902 add support for per-call debugging
...
Change-Id: I9b0eab21ff4e5c241ff045049ccd37f6044d5707
5 years ago
Richard Fuchs
800f098cd1
TT#14008 remove obsolete test scripts and add new kernel tester
...
Change-Id: I2b4921f65deaa4473df92ac28dc4e03c592351e9
5 years ago
Richard Fuchs
ac71e81e54
TT#118350 add SDES=static option
...
Change-Id: Id34d4fe31e58acfae31d8e5d30abec1837c4f808
5 years ago
Richard Fuchs
7dc55e6378
TT#98901 convert from static DTX delay to dynamic buffer queue
...
Change-Id: Ib6bfdfb9d1967263dc8acb48a812d7e75f9c239b
5 years ago
Richard Fuchs
d14eeaea6e
TT#111150 fix typo
...
Change-Id: I5cf4a8b56751e07eb0efed74f580a297741a235a
5 years ago
Guillem Jover
39a2b288ad
TT#111150 Use standard flags for the test preload library
...
Change-Id: I1f58d576aadf15626bcc21ea9510b376f8edb20f
5 years ago
Guillem Jover
09cd962eef
TT#111150 Fix memory leaks in unit tests
...
Change-Id: Id0981af0c01f3a5c6f27435f7f92d3da90bf278e
5 years ago
Guillem Jover
8508177777
TT#111150 Split CFLAGS between required and optional
...
Change-Id: I683aef49534a7bf70958f72661a83003cea21c3b
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 e2bf4abee885ee0d8938b8be02df19ca4b4a28e7)
5 years ago
Richard Fuchs
19f08a8b78
TT#113750 tests for I603bb86c
...
Change-Id: Iff348ce8a5ae3d0038128c4c8d162efa7c16aa42
5 years ago
Damir Nedžibović
f650f95111
TT#14008 Squashed commit of the following:
...
commit b3d2d70d4cfb449fb80af188eee89b6dc343830d
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
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
083ae4c37f
TT#14008 convert rtcp-fb handling to list
...
closes #1196
Change-Id: I08ec4bf783d2a6bc0e83498e61cf964718a03de4
5 years ago
Richard Fuchs
eb1157d386
TT#112250 don't change ports when endpoint is talking ICE
...
Change-Id: I0e60534d6d3cb62d25b8d865da02c3472cf0994e
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
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
1785f70637
TT#91151 add new replace-zero-address option
...
closes #1185
Change-Id: I8cf6f4ff043649255dafa93b28fcb2127ce4d2bb
5 years ago
Richard Fuchs
772db96c36
TT#91151 fix check for trickle ICE and zero address
...
Avoid using an explicit test for the trickle ICE endpoint address and
instead use the TRICKLE_ICE flag.
Change-Id: I821ced7e77c798004c9d88ec072848b7f6e24a85
5 years ago
Richard Fuchs
a9f58ff39d
TT#91151 add tests for null addresses
...
Change-Id: Ie22fc324dc0342fa7b8aa31656eb6400e1dd91aa
5 years ago
Richard Fuchs
36273e1f5d
TT#107565 add option to track SDP version
...
Change-Id: Ifb3ca589742a4ad0cc83982d6e42bf692a2c98db
5 years ago
Damir Nedžibović
2fc54462de
TT#14008 Squashed commit of the following:
...
closes #1180
commit 023f6cbc9e0b595d1d02116d38d39358fbb9ee49
Merge: ae82034d 86e287d1
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Feb 1 11:16:04 2021 -0500
Merge branch 'control_ng_tcp' of https://github.com/enreached/rtpengine into enreached-control_ng_tcp
Change-Id: I628dcfd30e901dbee97b00bee0b6bba0cb29826f
commit 86e287d117
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Mon Feb 1 16:38:53 2021 +0100
Update the readme file.
commit 35f5d9e151
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Mon Feb 1 16:20:09 2021 +0100
Update docs.
commit 336deb4c67
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Mon Feb 1 14:28:07 2021 +0100
Replace hex values with chars.
commit 37c86a8fa0
Merge: 17a10b96 5cd53ef1
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Mon Feb 1 13:51:06 2021 +0100
Merge branch 'control_ng_tcp' of github.com:enreached/rtpengine into control_ng_tcp
commit 17a10b96ad
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:09:10 2021 +0100
Add missing include.
commit adfddefae3
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:05:44 2021 +0100
Implementation of control-ng via TCP.
commit 5cd53ef1c9
Merge: 1bd3a8fc b28ab075
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Mon Feb 1 13:49:50 2021 +0100
Merge branch 'control_ng_tcp' of github.com:enreached/rtpengine into control_ng_tcp
commit 1bd3a8fc6d
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jan 29 10:20:02 2021 -0500
TT#14008 fix AEAD kernel API for < 4.2
Untested whether it actually works
closes #1176
Change-Id: If6398632ac62525a673b844cfb4ce842a8aa0346
commit 71a222d7a8
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jan 29 13:07:25 2021 -0500
TT#14008 improve log output for stray packets
Change-Id: Ic4b03928b279aade761de3ba1646b5c27318e6a3
commit b28ab07532
Merge: 813a4f1c 6e4373af
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Fri Jan 29 09:21:31 2021 +0100
Merge branch 'control_ng_tcp' of github.com:enreached/rtpengine into control_ng_tcp
commit 813a4f1caa
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:09:10 2021 +0100
Add missing include.
commit 0c87a19c55
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:05:44 2021 +0100
Implementation of control-ng via TCP.
commit 6e4373affb
Merge: fbf74bfe 7799f23a
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Fri Jan 29 09:19:46 2021 +0100
Merge branch 'control_ng_tcp' of github.com:enreached/rtpengine into control_ng_tcp
commit fbf74bfe2d
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jan 27 10:18:14 2021 -0500
TT#14008 fix possible segfault
closes #1172
Change-Id: I94bb52c290c2032073e54528283660f03e694033
commit 1a5bcc0905
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jan 28 14:49:43 2021 -0500
TT#109251 fix redis restore segfault
Change-Id: I501a47b065e7b8ff28a3ac157c0ce567f228557f
commit b38b49fd60
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jan 28 13:44:44 2021 -0500
TT#102450 added tests for Ia9fa96cf
Change-Id: Ic9728e12a012335c30c5640ac0b5c88e39ad24ed
commit f33877bfe3
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jan 28 13:43:46 2021 -0500
TT#102450 fix some timestamping issues
Make sure G.722 rate multiplies is applied in the right places
Don't trust encoders to return proper timestamps, but instead track them
explicitly based on frame duration
Change-Id: Ia9fa96cf662da97159fa170c3a3f37516889e1bd
commit 39a25b954d
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jan 28 14:07:53 2021 -0500
TT#106101 mem leak fix for 554034eb7e
Change-Id: I9c410211580d8513a203a29f898970a78175d08b
commit 11d11aed90
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jan 28 13:41:28 2021 -0500
TT#14008 clean up some tests
Looks like packet order can be an issue in some cases
Change-Id: Ib8fb8c553c9d0f2919b24dda1e15e5a23832c619
commit 7799f23aa5
Merge: ba7ee9d6 e191e16c
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Fri Jan 29 09:18:24 2021 +0100
Merge branch 'master' of https://github.com/sipwise/rtpengine into control_ng_tcp
commit ba7ee9d6b1
Merge: f805d881 ffe187f1
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:15:58 2021 +0100
Merge branch 'control_ng_tcp' of github.com:enreached/rtpengine into control_ng_tcp
commit f805d881fa
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:09:10 2021 +0100
Add missing include.
commit c548a3ca4b
Author: Damir Nedžibović <damir.nedzibovic@enreach.com>
Date: Thu Jan 28 18:05:44 2021 +0100
Implementation of control-ng via TCP.
commit ffe187f116
Author: Damir Nedžibović <damir.nedzibovic@bad-team.net>
Date: Thu Jan 28 18:05:44 2021 +0100
Implementation of control-ng via TCP.
Change-Id: I2acf208fcff1fa9aa790c31f1097ad9b4b7c3238
5 years ago
Richard Fuchs
88d2765ef6
TT#102450 added tests for Ia9fa96cf
...
Change-Id: Ic9728e12a012335c30c5640ac0b5c88e39ad24ed
5 years ago
Richard Fuchs
8e21b4b595
TT#14008 clean up some tests
...
Looks like packet order can be an issue in some cases
Change-Id: Ib8fb8c553c9d0f2919b24dda1e15e5a23832c619
5 years ago
Richard Fuchs
c5ef68897a
TT#76250 consider default number of channel when matching codecs
...
Eliminates duplicated codecs when `opus/48000/1` is used for example
Change-Id: If434e34fe75883544cf6c2c83723af73878ccb20
5 years ago
Richard Fuchs
9c6d57edc5
TT#14008 allow parallel execute of daemon tests
...
Change-Id: I5155a017924cb6f9d3f379c259fae6de29fa8939
5 years ago
Richard Fuchs
e671a5dcab
TT#108552 prefer sha-256 over sha-1
...
Change-Id: I1c54b6410d492a2dbd7169f000c84ecebf9d817c
5 years ago
Richard Fuchs
f2d7e71b07
TT#108552 update crypto suite preference ordering
...
Change-Id: I7f192fda512d90b0ab05ff4856891eb0f348a157
5 years ago
Richard Fuchs
0898923c38
TT#98901 use correct DTMF codec context
...
Change-Id: Idf66a2528d06830247e71038a9616726afd588c4
5 years ago
Richard Fuchs
60fd172720
TT#98901 update tests for DTX
...
Change-Id: Ia374e1f284e9ccb2fd1b066ef44fb284cb29f134
5 years ago
Richard Fuchs
030f38ff16
TT#97301 add description to log levels
...
Change-Id: I223d69016b5e6328f1124a6a977c46d008b667dc
5 years ago
Richard Fuchs
6602a3a7c5
TT#108551 add kernel support for AEAD-AES-GCM
...
Also amends tests plus additional clean ups
Closes #1133
Change-Id: I0dad7b8aad9cff1b019323c7ac5a356830ab09ad
5 years ago
SPChan
0c4110779d
TT#108551 add support for AEAD-AES-GCM
...
close PR #1133
Squashed commit of:
commit b5009eff0b
Author: SPChan <shihping.chan@gmail.com>
Date: Fri Dec 11 11:40:17 2020 +0800
crypto.c: handle 12 bytes master salt length of AEAD
AEAD RFC7714 specifies 12 bytes master salt length
(section 12) but the KDF expects 14 bytes.
The erratum to RFC7714 specifies to pad on the right
by 16 bits to be compliant with the KDF.
https://www.rfc-editor.org/errata_search.php?rfc=7714
commit 30ba71f10c
Author: SPChan <shihping.chan@gmail.com>
Date: Fri Dec 11 09:31:00 2020 +0800
crypto.c: AEAD make clear which operations are for AAD
commit 3e4d87681d
Author: SPChan <shihping.chan@gmail.com>
Date: Thu Dec 10 19:38:51 2020 +0800
Implement RFC7714 ciphers: AEAD AES
Initial userspace only implementation
Change-Id: I8624b255e4fd83a5ca418655ef117c48e56e2379
5 years ago
Richard Fuchs
0bab726e5d
TT#92250 reset opposite side supp handlers
...
If a supplemental codec was removed by the codec tracker, we must reset
any codec handlers on the opposite side that were using this output
codec.
Change-Id: I7fb9d0ec7a061682fe3b28d9ead14ac263aff7c3
5 years ago
Richard Fuchs
6bf5e3af54
TT#92250 add tests for reorder-codec
...
Change-Id: I87e6a2068af2350db4d175bbb0b5dbacf1543fee
5 years ago
Richard Fuchs
99ba631fd0
TT#92250 update tests for recent changes
...
Change-Id: I9f6315140bb34000ec4b3adccb0251516ec15532
5 years ago
Richard Fuchs
341f2e04dc
TT#92250 also create codec handlers for synthesised supp PTs
...
Change-Id: Icebd5a5d8f1ab159f7343b8036e36322b1211e8a
5 years ago
Richard Fuchs
30733ec5cd
TT#97301 support granular log levels
...
Change-Id: Ife458bd2449f61113a3e6db1708821570d92dc23
5 years ago
Richard Fuchs
46176f2937
TT#101653 defuse codec tracker so it doesn't remove too many
...
closes #1136
Change-Id: I692cd15daf57bb95c5592099713bdc46338d4321
5 years ago
Richard Fuchs
7f8ae1fd06
TT#94201 add tests for GH #1147
...
Change-Id: I00bb1914613fbe39742ede4ba2800c1a341ba5d6
5 years ago
Richard Fuchs
f861ff7f1e
TT#101653 limit maximum delay in input processing after lost packet
...
Change-Id: Ie55e6e8a23836c97ae0a20f6604b0a80e238a2d8
5 years ago
Richard Fuchs
c6208914a3
TT#101653 check receiver side for supplemental transcoding
...
If the receiver is transcoding any supplemental codecs, we must also
transcode all other codecs.
Change-Id: Ia169b2cd78762fbca175a83c2425b1f3caf7ad86
5 years ago