Commit Graph

17 Commits

Author SHA1 Message Date
Harald Welte 456135a605 e1_recorder: Fix potential null-dereference
Fixes: CID#307523: Dereference null return value (NULL_RETURNS)
Change-Id: I481f0695f971f5cd2e77b8c9c62d423a70e0840d
2023-07-18 14:40:30 +02:00
Harald Welte e9ce31876d handle telnet_init_default() error case
Closes: CID#307532
Change-Id: I0210b535b844529e217fd5d6ffb01f94a262dc9c
2023-02-06 17:03:34 +01:00
arehbein 55a1b836ea osmo-e1-recorder: Transition to use of 'telnet_init_default'
Related: OS#5809
Change-Id: Id8148f71f4231de40c4762094e2969d11821e5c4
2022-12-19 22:34:39 +01:00
Harald Welte b9c7fd8f79 Fix use of logging_vty_add_cmds(void) API function.
This function never accepted any arguments.  However, a sloppy
declaration in the header file as logging_vty_add_cmds() allowed
to pass any number of any type arguments until recently.

Change-Id: Icdbe2f253c9e17ff82bd3b1dc3d4fbea4ad6f333
2022-11-06 10:29:41 +01:00
Harald Welte 8486938efb e1_recorder: Skip storing data to disk if line is in ALARM state
Change-Id: Ie4c671053d372bc700f506198d1916853da03b9e
2019-12-04 14:15:47 +01:00
Harald Welte 45e12d3f8e e1_recorder: Avoid deprecated osmo_init_logging() API
Change-Id: Ib0e7c90eb8049acd48d6b3cf32ec2fc2c7a2ef29
2019-12-04 14:15:47 +01:00
Harald Welte 06e3198e70 e1_recorder: Add --help and --version command line arguments
Change-Id: Ie676466e5406243cf4205948cddd95426e2b8c10
2019-12-04 12:08:33 +01:00
Harald Welte 2c5c079e53 print error message when config file cannot be opened
Change-Id: I52514adf853c0d2dc5114864f0713e549733786d
2019-12-04 12:08:33 +01:00
Harald Welte cbf23b6465 exit(2) on unsupported positional arguments on command line
Change-Id: I6d4efa6ddef41607aecd5ceee78e400db821292f
2019-12-04 12:08:33 +01:00
Harald Welte 4dc14a751b e1_recorder: add config option for configuration file 2016-10-19 10:55:25 +02:00
Harald Welte 2ac78497dd e1_recorder: propagate errors to main, where we exit() in case of failing to open file 2016-10-19 10:55:25 +02:00
Harald Welte df7a306df5 e1_recorder: Add signal handlers for log file rotation + talloc report 2016-10-19 10:55:25 +02:00
Harald Welte 13351138e2 e1_inp: Use HDLC mode for signalling, not SIGN
The SIGN mode implies that LAPD instances are bound to the timeslots, which is
of course not what we want in a pure capturing/recording scenario.

Instead, use the new E1INP_TS_TYPE_HDLC mode, which allows us to capture
any HDLC framed messages on E1/T1 timeslots, whether LAPD or e.g. MTP.
2016-10-19 10:54:59 +02:00
Harald Welte 4a92d0b9b9 e1_recorder: Fix msgb memory leaks in absence of a mirror port 2016-10-18 21:36:01 +02:00
Harald Welte b7e40238d7 first functional version that actually records + mirrors data 2016-07-29 14:26:50 +02:00
Harald Welte 0e91aa1ec5 fix compilation 2016-07-28 21:03:40 +02:00
Harald Welte 39cfbf435d initial import of incomplete project to record E1 lines 2016-07-28 09:04:11 +02:00