Richard Fuchs
9c83de9ce6
MT#55283 update format_parse to bool
...
Change-Id: If0f8740afa5f159e1649db023a2c340093f3d145
10 months ago
Richard Fuchs
e2e5e22d04
MT#55283 add tests for Ib118cd2ce/Ib36b36bb
...
Change-Id: I5e45e473ea1d747d54477fb12f0d8fb7f4133c6f
10 months ago
Richard Fuchs
daa769fea5
MT#55283 distinguish player cache ptimes
...
Add the ptime into the hash function so that cached player using
different ptimes use distinct entries.
Closes #1963
Change-Id: Ib118cd2ce14525d524a2d63c0506af8ae8ae929f
10 months ago
Richard Fuchs
3ca99417f1
MT#55283 add ptime to logging in a few places
...
Change-Id: I38180c44d4afb690d7dadb3710516b16b983f600
10 months ago
Richard Fuchs
fa8123e1c2
MT#55283 explicitly return PTS/duration
...
... from packetizer function instead of putting it into the AVPacket.
Remove AVPacket from callback function arguments.
Fix up PTS/duration adjustments where they were missing.
Closes #1963
Change-Id: Ib36b36bb6648b0579dd83155c7217317dda29cc3
10 months ago
Richard Fuchs
7b7580dcbf
MT#55283 fix typo
...
Change-Id: I08ec1c2958662c7d78c659e59c6e777119e09d5a
10 months ago
Richard Fuchs
62b216646b
MT#55283 test for Ia69cbb69a82
...
Change-Id: Idff08b9935828e9bb1f45d1ebe76cbde0c019b18
10 months ago
Richard Fuchs
fe39a7927b
MT#55283 fix clashing PT numbers
...
closes #1960
Change-Id: Ia69cbb69a826141b85a65cd7487a655e047e88d2
10 months ago
wangduanduan
7b5235b4bf
MT#55283 test: add test for unknown fmtp
...
closes #1968
Change-Id: I71d2f7947f0495ea08d000568c40915e86d034d8
10 months ago
Aki Huolman
2abda66667
MT#55283 Add documentation for MySQL database schema
...
closes #1967
Change-Id: I0e839ce0dd6c2e13f6f35d1ec006d1c1e904b40e
10 months ago
Donat Zenichev
03e6b84ebc
MT#61856 recording-daemon: output.c make some of funcs static
...
Just because of only local usage, keep them static.
Change-Id: I0bd3badd3abb6166a7d16aab07a943d7b36594b3
11 months ago
Donat Zenichev
2fd148032c
MT#61856 recording-daemon: update const qualifiers
...
Don't use const in:
- output_avio_mem_write()
- output_avio_write()
`avio_alloc_context()` of avio.h lib wants buf
to be non-constant.
Also it's the only usage of locally defined funcs,
moreover:
- output_avio_write() has fwrite() that protects buf with const
- output_avio_mem_write() casts given buf to `const char*`
Fixes:
output.c: In function ‘output_config’:
output.c:405:39: warning: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
405 | NULL, output_avio_write, output_avio_seek);
| ^~~~~~~~~~~~~~~~~
| |
| int (*)(void *, const uint8_t *, int) {aka int (*)(void *, const unsigned char *, int)}
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316,
from types.h:9,
from output.h:4,
from output.c:1:
/usr/include/x86_64-linux-gnu/libavformat/avio.h:468:25: note: expected ‘int (*)(void *, uint8_t *, int)’
{aka ‘int (*)(void *, unsigned char *, int)’} but argument is of type
‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’}
468 | int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
int (*)(void *, const uint8_t *, int) {aka int (*)(void *, const unsigned char *, int)}
int (*)(void *, const uint8_t *, int)
output.c:409:39: warning: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
409 | NULL, output_avio_mem_write, output_avio_mem_seek);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, const uint8_t *, int) {aka int (*)(void *, const unsigned char *, int)}
In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:316,
from types.h:9,
from output.h:4,
from output.c:1:
/usr/include/x86_64-linux-gnu/libavformat/avio.h:468:25: note: expected ‘int (*)(void *, uint8_t *, int)’
{aka ‘int (*)(void *, unsigned char *, int)’} but argument is of type
‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’}
468 | int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: Leaving directory '/home/donat/git/sipwise/rtpengine/recording-daemon'
Change-Id: Ied4936fe24d55c241a3f72550e643368a014c181
11 months ago
Donat Zenichev
856ab5815c
MT#61856 parse_attribute_crypto: initialize `err` at least to something
...
Fixes:
../lib/loglib.h:54:17: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | __ilog(prio, "[%s] " fmt, log_level_names[system], ##__VA_ARGS__); \
| ^~~~~~
sdp.c:613:21: note: ‘err’ was declared here
613 | const char *err;
| ^~~
sdp.c:734:9: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]
734 | ilog(LOG_ERROR, "Failed to parse a=crypto attribute, ignoring: %s", err);
| ^
sdp.c:613:21: note: ‘err’ was declared here
613 | const char *err;
| ^
Change-Id: I18c3c1d6f2d6d5643a61ef864116e1f3d5e1db95
11 months ago
Richard Fuchs
2845bb1efa
MT#62571 streamline resampling
...
Move destination format information into the sink object.
Decode each codec directly to its matching output format and leave
resampling to the sinks.
Move managing of the adjusted multi-channel output format into the mix
context.
Make sure all inputs to a mix outputs use the same audio format.
Change-Id: Ib9f334443bfee26d59f2ede6e13ac80c66c1b57e
11 months ago
Richard Fuchs
ef3b1c2956
MT#62571 support mixed TLS/TCP output
...
Change-Id: I8f2b6372e9379d1845245f95bb69498661fbebf9
11 months ago
Richard Fuchs
549e98e3dc
MT#62571 generalise tls_fwd_new
...
Change-Id: Icfb9487e98bb8c4dfbb728299373327c5693330d
11 months ago
Richard Fuchs
6476b8156e
MT#62571 generic mix sink
...
Change-Id: Ia02ed34cd7d8ddb39b4e3c6f8c051ab92abb355f
11 months ago
Richard Fuchs
15465d0878
MT#62571 allow creation of mix after streams
...
Change-Id: I98a45fb7394e561010a36772e9c56395e80ca26e
11 months ago
Richard Fuchs
7dfe1e30f5
MT#62571 support sending multi channel audio
...
Change-Id: I8e79b7b873308f9ed2bedbe18a4f61a6e7c3ae93
11 months ago
Richard Fuchs
a14c20d04e
MT#62571 turn tls_fwd into sink
...
Change-Id: Ic859d0dd65156761007641ccd3f4e710d7e7fa9f
11 months ago
Richard Fuchs
aa627d78ec
MT#62571 further encapsulate tls_fwd
...
Change-Id: I790ac03ee4f51027d080b9152a4cae8c995e93c1
11 months ago
Richard Fuchs
5ebd94d742
MT#62571 turn tls_fwd into allocated obj
...
Change-Id: Ie766b483a51bca7f2677f7ccf029379302437067
11 months ago
Richard Fuchs
ad063360bd
MT#62571 encapsulate tls_fwd
...
Change-Id: I06b925e2eb2bbdb7a4741a93a64701f495409616
11 months ago
Richard Fuchs
06c89206c1
MT#62571 turn mix output into sink
...
Change-Id: I59140d641679b84ce3831ba1dcad07e38deda46f
11 months ago
Richard Fuchs
316161f6aa
MT#62571 add sink to decode_t
...
Unused at this point except for the resampler
Change-Id: I093d7924c0bcc42a9a5162e1f02a374ea97e1bf3
11 months ago
Richard Fuchs
293b393177
MT#62571 remove output_config from decoder_new
...
Change-Id: I7a15c7657bc3a3492a3e7659b9c3473bb07f5e9a
11 months ago
Richard Fuchs
fb2b6986bb
MT#62571 add sink resampling stage
...
Change-Id: Ifcd25ea9ed71f913e44ebb34a8fe63ae92f748f0
11 months ago
Richard Fuchs
98db2ba250
MT#62571 add sink config method
...
Change-Id: Ia10636ec7090b8dbe976bb8b91defde8b3a34395
11 months ago
Richard Fuchs
08ee3b2b31
MT#62571 abstract sink/output
...
Change-Id: Ie08b27b268f9e9aa1bdea134bc20ef4b98ae7425
11 months ago
Richard Fuchs
374357302a
MT#62571 remove redundant decls
...
Change-Id: I281b01aafb28db98daef56fcc302c12971cf0d60
11 months ago
Richard Fuchs
b39a43a576
MT#62571 split out TLS send code
...
Change-Id: Icb645aae9cab775b86fa50c7d832dd621af2a3a1
11 months ago
Richard Fuchs
c56899f6da
MT#55283 use intptr_t for pointer arith
...
Change-Id: Ie0f21a992a5a2de4b274e83f07cae30d0f68b276
11 months ago
Richard Fuchs
3ce25d062c
MT#55283 version-guard lws buf size
...
Change-Id: Ib056bc7eb644eda07a26f0a5e91beb3a670e1719
11 months ago
Richard Fuchs
0dbbc9467f
MT#55283 create mix output only after tag is known
...
Change-Id: I3051cdad8170e6513f13d8ca12f941ca17aeaef9
11 months ago
Donat Zenichev
836423e33c
MT#61856 main: first static, then const
...
Fixes:
main.c: In function ‘options’:
main.c:1055:9: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
1055 | const static size_t max_buf_size =
| ^~~~~
Change-Id: I500785e712d94ff0969317edf3d7a256dc4e3182
11 months ago
Donat Zenichev
f2c89227e5
MT#63082 rtcp parsing: improvements
...
Add `EXTRACT_NETWORK_ADDRESS_ATTR`
for proper error alias handling,
otherwise just quits with no attr type change.
Change-Id: Iacea9350503b68962a3c233df9126102b67d3b8b
11 months ago
Donat Zenichev
538d06aa3b
MT#63082 parse crypto and rtcp: on error handling return -1
...
As macroses do, return -1 and not 0 as in normal case.
Change-Id: I25d43142ef1c1c60da56450f07fb0dd6548db693
11 months ago
Donat Zenichev
fd763f2804
MT#63082 crypto: ignore dummy suites
...
If dummy definition with no tag, algo etc.
just ignore it, otherwise not excluded
and is dangling in outgoing SDP.
Also add according test.
Change-Id: Ib7c981ee66b1ce8cb363a9cc181231c68baa69cd
11 months ago
Richard Fuchs
f5277e5c30
MT#55283 add http-buf-size option
...
closes #1950
Change-Id: I12047e7e6af8e0d927744a0dc70c5b4668420878
11 months ago
wangduanduan
eba58fd286
MT#55283 log: add log recevied stun request
...
closes #1964
Change-Id: Ia3b348b1e2197c79542764f26c69c0d35ed317d7
11 months ago
Richard Fuchs
872049b1da
MT#55283 fix possible off-by-one
...
Change-Id: Iadf2e9be28bb3a33043e3cd811daacd17579be3f
11 months ago
Richard Fuchs
d14db53420
MT#55283 use proper atomic ops
...
Change-Id: I7075100d7a7d1644fa74456e282cf9a414bb5324
11 months ago
Richard Fuchs
38d2f0761e
MT#62571 make sure mix output exists when needed
...
Change-Id: Ib5cac983fb7bda5d32023358719ffcda34cb2570
11 months ago
Richard Fuchs
f50c056199
MT#55283 fix double free
...
Change-Id: I7fdf3973b612e254b94beb3c12b1fb1490f823ef
11 months ago
Richard Fuchs
14af582379
MT#55283 tests for I577371570
...
Change-Id: I00de521c00cb9ddc20be0a2cdd5ea1b5542c8206
11 months ago
Richard Fuchs
02897ccb46
MT#55283 fix sdes_accept logic booboo
...
Using `l->next` as a test for whether only one element is left in the
list is not reliable. Use the actual list length instead.
Update one affected test.
Closes #1961
Change-Id: I5773715700220cd762e61090bac941ddd33afd9b
11 months ago
Richard Fuchs
cac4b2b29d
MT#55283 add test for I9cbb9e946
...
Change-Id: I17e2fc60e15d9e81759437559190c2a74fcd797e
11 months ago
Richard Fuchs
59cea58b1f
MT#55283 support soft shutdown for DTX
...
Allow restarting the DTX buffer upon reception of a packet iff shutdown
occurred due to the max-dtx time being exceeded.
Change-Id: I9cbb9e946e6f495526cbef8f468f4e0a5aff0096
11 months ago
Richard Fuchs
a7a43c9b75
MT#55283 fix mem leak
...
SDP attributes have been moved to the call's memory arena in 5115fe000 .
Make sure the redis restore code uses the same.
Remove some redundant null checks as well.
Closes #1959
Change-Id: I2f37869f5f2c95999d028c811c6a0eb10215f576
11 months ago
Richard Fuchs
4f664646b0
MT#55283 add test for Ie233a4a45b
...
Change-Id: If1aaa81931b976a3039b70c531a792fc2aed0e97
11 months ago