Richard Fuchs
261e6a6503
TT#14008 disable unstable tests
These tests are timing sensitive - disable them by default
Change-Id: I767f663dc1f2db9ad5439c3f10c93d04da0fd994
4 years ago
Richard Fuchs
1bc15de746
TT#14008 prevent possible NULL dereference
closes #1434
Change-Id: I21fa86b0410f86cd6d77951cff75c5eb03da38e9
4 years ago
Richard Fuchs
da5b7ab1b3
TT#136957 add DTMF-delay= options to CLI script
Change-Id: I71e285259bfa181dd9cea6656ce17ce78e010d47
4 years ago
Richard Fuchs
d3d11c19a3
TT#157801 don't tell libwebsockets to bind to ADDR_ANY twice
If the config only lists a port for the HTTP/WS bindings then we must
not try to create both a v4 and a v6 binding on that port as
libwebsockets handles the 4/6 mapping internally. In this case we make
sure to only create the v6 binding.
Further requirement for #1432
Change-Id: I9bf7ec5c041d0b5d4a22d507d993b85e2d4d3155
4 years ago
Richard Fuchs
db0dbd3666
TT#157801 skip libwebsockets IPv6 bindings if not available
Add an explicit test to see if libwebsockets has been compiled with
support for IPv6. If it hasn't then we don't try to create v6 bindings.
Closes #1432
Change-Id: I6902f5b4203aa09cb28a8edb46f97b339677ed75
4 years ago
Richard Fuchs
6d0eba931a
TT#157801 explicitly handle v4/v6 also for libwebsockets
Analogous to 12f23b311
Prerequisite for #1432
Change-Id: I204692cbaea6b5339ed392dcbd13689087391669
4 years ago
Richard Fuchs
8d99ef0686
TT#14008 use glib allocators for LWS setup
Change-Id: I8431d6c9eb1952bffcec03c4715dbcc60b17aff5
4 years ago
Richard Fuchs
54ee927773
TT#14008 fix websockets test for older python3
Don't use f'' strings and use .group() instead of [] for RE substring
matches.
Closes #1433
Change-Id: I464c6eb063702c90c2308598927e7db8358703d1
4 years ago
Sipwise Jenkins Builder
27b8f946ec
Release new version 10.4.0.0+0~mr10.4.0.0
4 years ago
Richard Fuchs
b8a554c06a
TT#14008 fix kernel module compilation for older kernels
The hexint modparam type became available in 5.10.
The stream_open() function became available at some point in 5.0.x.
Closes #1431
Change-Id: I4965d05a2c4c0f0bf526ea0bf3f76f5ca2f9dff6
4 years ago
hdikme
b79fc343e8
TT#14008 fix possible NULL pointer dereference
Change-Id: Id6e6c2c305ebf3993f36cc91fae9a7391c083809
Warned-by: coverity
4 years ago
Richard Fuchs
7836035f3f
TT#14008 fix double mutex unlock
Change-Id: I6098b6f01141e8fb6967f74538416ccede471fa3
Warned-by: coverity
4 years ago
Richard Fuchs
60fe7104e7
TT#14008 fix possible unintentional integer overflow
Change-Id: I9dacb34cf92d461029bfb393a251736676431fc7
Warned-by: coverity
4 years ago
Richard Fuchs
4be6ff2b07
TT#14008 fix warning as `ch` cannot be NULL
Change-Id: I2f627190e82e4bc1fe4b3f3b7a1a5925b581808c
4 years ago
Richard Fuchs
0cc41a56ff
TT#14008 fix warning as `output_ch` cannot be NULL
Change-Id: I3c079fc9fdca96d6ee2dbdfc17fd3834abc0e815
Warned-by: coverity
4 years ago
Richard Fuchs
28e3ca3dce
TT#14008 fix possible NULL pointer dereference
Change-Id: I601676f2cb1722d936e055ab7270b6668150b4ba
Warned-by: coverity
4 years ago
Richard Fuchs
1ccb8de7bc
TT#14008 fix warning as `value` cannot be NULL
Change-Id: I011eacbd95fafc7f5d13a40851753acc448ef2fc
Warned-by: coverity
4 years ago
Richard Fuchs
88c65686aa
TT#14008 Fix use-after-free
Change-Id: I8d5164d44c944c43a6e30595720245b00f759399
Warned-by: coverity
4 years ago
Richard Fuchs
2d2d7665b1
TT#156900 support single/odd ports for RTCP-mux
Change-Id: Ie000cbf4f9287e570da246c629a2b9cbd7c4fb54
4 years ago
Richard Fuchs
6f8ad8f936
TT#156900 close sockets on branch deletion
Change-Id: I5aeabde1755d3144e3e74e5fb040e0c2b793e305
4 years ago
Richard Fuchs
d199199b84
TT#156900 eliminate helper hash table in timer iterator
Change-Id: I002fea88b8a8867732eade49ed51895e224c4075
4 years ago
Richard Fuchs
45a9ce32a7
TT#156900 track local media sockets in hash table
Change-Id: I6a732b670ca46165675ebced4514eb8a86b7047e
4 years ago
Richard Fuchs
5fc658e33b
Squashed commit of the following:
commit a2e5cfb8e5
Author: Razvan Crainea <razvan@opensips.org>
Date: Thu Jan 13 16:16:19 2022 +0200
Add tests for subscribe requests on paused media
commit fa58596a9f
Author: Razvan Crainea <razvan@opensips.org>
Date: Wed Jan 12 22:01:27 2022 +0200
Swap media direction check for `subscribe request`
as @rfuchs mentioned in his review, the SEND/RECV media flags are set
according to rtpengine's perspective, not the media flow's one.
commit e1e9a157c0
Author: Razvan Crainea <razvan@opensips.org>
Date: Wed Jan 12 19:27:42 2022 +0200
Fix `subscribe request` SDP media direction
When building the SDP for a `subscribe request` command, take into
consideration the media direction of the source stream - if stream is
`recvonly`, then we do not have anything to send, thus the direction
should be advertised as `inactive`, rather than `sendonly`.
Change-Id: I2d78bbec8ad584774f3c90f0ce5cca42f57f7b0f
4 years ago
Richard Fuchs
ee5d01b0f8
TT#155900 add tests to make sure no packet was received
Change-Id: Idf9dbd8e12efd3ff22e34de7c875a730c2189c6d
4 years ago
Richard Fuchs
2a584261e7
TT#155900 update phc flags to bool type
Change-Id: Ied794a6cd0c5e03e8c807b54b03f4b29699d4162
4 years ago
Richard Fuchs
c1d238b014
TT#144701 extra warnings for unknown flags and keys
Change-Id: I1ca4939f6ffce040b9d4558f699207a0411eda35
4 years ago
Richard Fuchs
6b851383eb
TT#14008 use stream_open for main kernel interface
The main kernel interface has no concept of file position, therefore it
makes no sense to keep the additional overhead of ensuring an atomic
file position. Calling stream_open disables the FMODE_ATOMIC_POS flag
which in turn disables the extra locking for the fpos.
Change-Id: I14c37c3894791126aaf9caa0695da654a2012261
4 years ago
Richard Fuchs
941a50edd5
TT#156900 add helper functions and macros
Change-Id: I341632e4b6dbefd6743b9b1c4578c374c84505b2
4 years ago
Richard Fuchs
cf34ecc24c
TT#156900 rename functions to avoid namespace conflict
Change-Id: I676e35319518b468ed72da2dd58db7ec3ca33ea1
4 years ago
Richard Fuchs
b1d17cdcef
TT#14008 use pthread_cancel semantics for shutdown
Instead of having each thread sleep only a little while and then
periodically check for the shutdown flag, make them sleep longer and use
pthread_cancel() to interrupt the sleep during a shutdown in the
designated break points.
Change-Id: I13f1872a0176697e064ceef4062db6ca6ccf7a0e
4 years ago
Richard Fuchs
a684025f07
TT#14008 avoid pointless open/close of kernel list
If there's no calls active then there's no point in checking the kernel
status.
Change-Id: I84418b38f8976c9f4e29ea725e9cd1eab7306298
4 years ago
Richard Fuchs
6d85fb6887
TT#136957 tests for delay timing
Change-Id: I9bdc4a4860c13cdb3c7a2e96518caab1f7dfffea
4 years ago
Richard Fuchs
3582b623a9
TT#136957 DTMF delay support
Change-Id: I62dce272a1acc0a9a3b6b8c37df68a18357dbee4
4 years ago
Richard Fuchs
1ef4eeba80
TT#136957 split up DTMF event queue into in and out
Change-Id: I2e0619071d43df8537736187104ca12bb2f86f64
4 years ago
Richard Fuchs
c794c00efa
TT#136957 refactor DTMF event tracking into a list
Change-Id: I09aec46cad4cbb92aab67b7e9158d4d1598df186
4 years ago
Richard Fuchs
3a90f44383
TT#136957 peg seq num tracking to position in delay buffer
Change-Id: Ic78f24d2593817832839d3e1cf7ce3b398be785e
4 years ago
Richard Fuchs
2ca64340e1
TT#136957 support DTMF triggers for blocking
Change-Id: I32e0d02e739ceb5a34aaf187b1ea086482e6d73e
4 years ago
Richard Fuchs
6ac4f12c01
TT#136956 add more options for DTMF replacement
Change-Id: Ic78a34042ad664bd54e35647636864ea99e60385
4 years ago
Richard Fuchs
9608ae6ac5
TT#136956 refactor DTMF block mode setting function
Change-Id: Ia13ebef2999e8da1cd717e50aa24ee44188ef8b1
4 years ago
Richard Fuchs
576774614b
TT#136956 add support for DTMF-security=zero
Change-Id: I48d612697ac3f89852b2b7374cf6e442e4a8222e
4 years ago
Richard Fuchs
efcd137dbf
TT#136956 add tests for DTMF-security
Change-Id: If94566bf4cef4c389e6dfbd068abcab3885fa77a
4 years ago
Richard Fuchs
9da5a46fcb
TT#136956 support DTMF-security=random
Change-Id: I4100c1511be743901d302491238872990f213118
4 years ago
Richard Fuchs
320642ddf2
TT#136956 support DTMF-security=tone
Change-Id: Ide898f68d788f39674b8fdb4f4edb0aa14e0884b
4 years ago
Richard Fuchs
20ae998d32
TT#136956 flush delay buffer at shutdown
Change-Id: I1e58668071abad00520e83004bcf716fae85ae6a
4 years ago
Richard Fuchs
38f97c2df8
TT#136956 support DTMF silence replacement
Change-Id: If693800a955a9ddf7245da0082426ae609deb407
4 years ago
Richard Fuchs
478c2608e8
TT#136956 upgrade `block_dtmf` to enum to allow for different modes
Change-Id: I8bfa1cb9067a00958a2a1415b82e01c02deaf758
4 years ago
Richard Fuchs
1ce4f66d74
TT#136955 trigger DTMF state also when decoding DTMF to PCM
Change-Id: I8a8522ecd5d370bac7f4f8846651362efccf190e
4 years ago
Richard Fuchs
ba556db1d4
TT#136955 tie in DSP DTMF events with other DTMF reporting
Change-Id: I72fe6b670c42fe4ed6ba32a1fd142c290b2aaca2
4 years ago
Richard Fuchs
e7edfc03b4
TT#136954 add explicit flag to en/disable DTMF detection
Change-Id: I0da522ec5b195d580b44e6c5d0cfc42b73a8ac4b
4 years ago
Richard Fuchs
975cd33a9c
TT#136954 switch pcm_dtmf_detect to bool type
Change-Id: Ia78c2123bd5094e12895e82223ded49921efcbe2
4 years ago