Richard Fuchs
b67b28e6bf
MT#59069 support non-unique metadata keys
...
Change-Id: I2deeea77d29d22dfd2ae3104439d790f96b32e18
1 year ago
Richard Fuchs
bda1b937cb
MT#59071 support selective DB updates
...
Introduce flag to suppress recording DB update.
Change-Id: Ie9006f3608fc90296caf86120124da98fe50f8a1
1 year ago
Richard Fuchs
6189efd91a
MT#59069 refactor metadata parsing
...
Parse out the :| separate list of metadata keys when the metadata is
loaded, and stored it in parsed format, instead of doing when running
the DB update and discarding the result.
Functional no-op.
Change-Id: I96d706d63eb9337ba572a7f17363cbda553745f6
1 year ago
Richard Fuchs
d9e682b7db
MT#56374 add convenience macros for string creation
...
... and use them in a few places where it makes sense
Change-Id: I849f2841990808de6f697c92e2760645286dacca
2 years ago
Richard Fuchs
95ec0939dd
MT#55283 rename all `str` to `s`
...
Variables named `str` shadow the global `typedef str`. Rename them to
just `s`.
Change-Id: Ia15eb560704304d6f66dbbe22be72a559e18186b
2 years ago
Richard Fuchs
f861d984aa
MT#56493 track call/stream start times
...
Change-Id: I74d77d26ad40501b77502a382150ef7003f52f3a
2 years ago
Richard Fuchs
e9568c8e31
MT#56493 move now_double() to recaux.h
...
Change-Id: I672dfb3d05c5a4685aae794556b456ca28b990c8
2 years ago
Richard Fuchs
10e6ab24b8
MT#56493 store "mixed"/"single" in output_t
...
This is the "type" of the recording, but sadly we already have "type"
with a slightly different meaning (i.e. the SSRC in hex for single
streams), so we name this the recording "kind".
Change-Id: I2f7c36e42f7eb075a4324e9659d2845ab40b4f07
2 years ago
Richard Fuchs
e46fdf0200
TT#162850 delete DB entries without matching streams
...
Keep track of how many streams have been added to the DB for each call.
Then at the end of the call, if there are no corresponding streams in
the DB, delete the entry for the call instead of marking it as complete.
This eliminates DB entries for calls that were cancelled or failed.
Change-Id: Id2eccd555a0801b4a8cc56299fe49ea2899c4826
3 years ago
Guillem Jover
adbd071c14
TT#111150 Do not use old-style declarations
...
Change-Id: I08a702ebfbcc5d3ac1dca284abdaa3f6567b9272
Warned-by: gcc -Wold-style-declaration
4 years ago
Richard Fuchs
dcad209967
TT#111150 use intermediate variable for ftell()
...
This function returns -1 as error value, which would be lost if
immediately assigned to an unsigned type.
Change-Id: If9050b793519a529df671527c3a3e33ca2afc1bd
4 years ago
Richard Fuchs
543bac908e
TT#106253 cleanup TLS variables on shutdown
...
Change-Id: I77f88e6a34e4720f6fbd0c585d2cf9843a3b309e
4 years ago
Richard Fuchs
4f5e83e681
TT#14008 fix possible mem leak
...
Change-Id: Ie506c74e8effc9dcb88331377cdb5cff2ed0d9a4
4 years ago
Richard Fuchs
1219b2fdbd
TT#108003 log error on unlink failure
...
Change-Id: I10478c659f8eeb134b2f3c238fd35c644ca878ef
4 years ago
Guillem Jover
70d323d0e8
TT#108003 Handle ftell() errors
...
Do not try to pass possibly negative values to malloc() calls that
do not expect them.
Change-Id: I20933983c26287cde5769e1594060b5a04eb09f6
Warned-by: coverity
4 years ago
Guillem Jover
6bc5a84a0b
TT#108003 Fix file descriptor leak in db_close_stream()
...
We need to close the file descriptor too in the early return.
Change-Id: I978c58bdc64c171f0ba7112d631aa2a4908c77ce
Warned-by: coverity
4 years ago
Richard Fuchs
e860e076f8
TT#109618 keep track of actual file name used for recordings
...
Change-Id: I74b51e0621a687b8dd3ad21939e70675fbb49e4f
4 years ago
Richard Fuchs
92adeb0dbb
TT#75351 delete DB streams that have no corresponding file
...
Change-Id: I07bdfd6f4dfbcef82d0eb11461672f211badde78
5 years ago
Richard Fuchs
77087b9b14
don't try to save untagged streams to db
...
Change-Id: Ia1adb8cbc438960264c570b7a18da3cc4ffc1873
6 years ago
Richard Fuchs
16292257c8
add `stream` db column to sample db schema
...
closes #757
Change-Id: I3b6635f86f892f6cbbf3213c64c854c52a62fe35
6 years ago
Richard Fuchs
cfbd4bccf8
Add missing check_conn when running SQL statements
...
Intermittent errors from the DB can cause the connection to be reset and
not re-established for the next statement to be executed, leading to
segfaults.
fixes #742
Change-Id: I1ed5b75457ab7167a70df5e04a964d37f98e60f7
6 years ago
Richard Fuchs
26b725d024
TT#45617 add new options to support log markers for sensitive data
...
Change-Id: I2ffa4da4be3a05f043e7991612bbb37d8102d91a
6 years ago
Richard Fuchs
e3ec97f858
TT#50652 add -Wstrict-prototypes everywhere
...
Change-Id: Ic5b5fcb892a8f70196478f8622d956bdea373422
6 years ago
Richard Fuchs
0e0a55ce34
add database schema for recording daemon
...
closes #716
Change-Id: I2684b3e74f4a676fd6aa6e2f1c24bfed37bd6db0
6 years ago
Richard Fuchs
072bfb8a45
fix possible null pointer reference
...
fixes #709
Change-Id: I65f9ad85547f12b12202dd0f76b34b00525b96ca
6 years ago
Richard Fuchs
3b28460507
TT#52651 Squashed commit of the following:
...
commit 2029144368
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 21 13:12:50 2019 -0500
TT#52651 switch TCP to TLS
Change-Id: Iab6b05d3b5c88553cbd6f531f3189084d9e71995
commit b28e718ee4
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Feb 22 09:20:54 2019 -0500
TT#52651 generalise streambuf interface
Change-Id: I7d5ab8ffe13e52d4dbb1901531cc13fcc173d60d
commit cb2dbd2a92
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 19 09:32:56 2019 -0500
TT#52651 add start/stop forwarding commands and party selection logic
Change-Id: I8ef7e288d3a3e485bd2fa14e1a2407a0c8d94bac
commit 442c48f627
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 14 15:43:23 2019 -0500
TT#52651 produce output for TCP forwarding feature
Change-Id: I18543921577faf655679829684f5af46c0af5054
commit 2ef8028eb2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 14 10:18:21 2019 -0500
TT#52651 make recording to output files optional
Change-Id: I12c288b965641352658ce3b499c2ee90593e1322
commit 10a58cd7a0
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Feb 13 16:02:16 2019 -0500
TT#52651 strip streambuf into lib and include in recording daemon
Change-Id: I1f6638961e9e767063e0b4e6b5d55d88799366d3
commit 9d3bb5bffc
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Feb 13 15:40:12 2019 -0500
TT#52651 extract/move unrelated old legacy decoder struct members
Change-Id: Iffd79b43180c30a9e128a460f7ba85ba49dedeaf
commit 1bc38e4201
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 12 16:43:42 2019 -0500
TT#52651 config options for forwarding option
Change-Id: Ieaa2ee0e55a0c531158174bc6a534738a64dbee6
commit 06d61cd3dd
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 12 16:29:52 2019 -0500
TT#52651 move socket.[ch] into lib/
includes necessary re-shuffling of additional code pieces
Change-Id: I74b314ab5936ac8a0eeaff94e084617b59b28d79
Change-Id: I025e8ec86b90ede79565542dff57ec1559d04200
6 years ago
Richard Fuchs
31023572a5
TT#41900 save monologue label into recording DB
...
closes #582
Change-Id: Ibc894e82b61e4231c99f9618685a6232f7e50da7
7 years ago
Richard Fuchs
af963a23fd
make the new `stream` db field optional based on settings
...
Change-Id: I470ffa4c1bfcca5531786464c6e99850ac10f900
7 years ago
Juha Heinanen
7f603b262e
recording-daemon: added possibility to store audio streams to database
...
- added new column 'stream mediumblob' to 'recording_streams' table for
audio streams
- added new option 'output-storage' with values 'file' (= default),
'db' or 'both'
7 years ago
Richard Fuchs
dc80c27af7
TT#28163 split encoder from recording daemon into shared lib
...
Change-Id: I76a744b1b1acd32f326d26db7a44273394a4dee1
7 years ago
Richard Fuchs
5bcbf27fe1
fix metadata DB insert without trailing pipe character
...
fixes #374
Change-Id: Ibfe89b7804183ef04eba39d29e01b70160f7c264
8 years ago
Richard Fuchs
4313cb2596
logging improvements
8 years ago
Guillem Jover
56b723ceec
TT#14400 Do not check for negative values on unsigned variables
...
The MySQL ID types are unsigned long long, so checking for <= does not
make sense.
Change-Id: I37358689a3a2283dc2c6bf3e40d6ccc0e7a8c609
8 years ago
Richard Fuchs
46d1498801
TT#13277 logging improvements
...
Change-Id: I279f751795b5d913b44f00ba30146654691d4d22
8 years ago
Richard Fuchs
6f37badd50
TT#13277 additional DB fields for call metadata
...
Change-Id: Ic3eda24c072daec44eb555bd12a6a8f42ee415fa
8 years ago
Richard Fuchs
4566bd37cf
TT#13005 store recording metadata to database
...
Change-Id: Ic3974ebd9aadc0af35941b49e4a0e7fd6f536691
8 years ago
Richard Fuchs
846886c001
TT#13000 include recording filename suffix in db data
...
Change-Id: If8a90b95b8f05f3ebc9408b95c30c8246844373d
8 years ago
Richard Fuchs
f5cc21f92b
TT#10156 write recordings metadata into mysql database
...
Change-Id: If50b0528520fe816ed63494dc6c6e707fe9eca2c
8 years ago