Harald Welte
5479d21914
check for DAHDI_RXMIRROR during configure stage
...
We require a DAHDI that has CONFIG_DAHDI_MIRROR enabled, which
declares DAHDI_RXMIRROR and DAHDI_TXMIRROR. Let's check for that
rather than failing only at compile time.
Closes: OS#5886
2023-06-09 10:32:00 +02:00
Harald Welte
ee1904cdf8
README.md add link to homepage
2022-11-08 12:17:09 +01:00
Harald Welte
4a4efc0b96
don't accept any arbitrary string as 'name' as we use it in a path
...
osmo_identifier_valid() is likely much more strict than just checking
for invalid symbols in a path, but let's use it as we already have it
around.
Closes: OS#5748
2022-11-08 09:06:56 +01:00
Harald Welte
738bad8e48
Add actual GPLv2 license text
2022-11-07 20:07:44 +01:00
Harald Welte
dd61292005
add copyright/license statement to all source files
2022-11-07 20:06:18 +01:00
Harald Welte
d273d867f7
fill example config file with some actual config
2022-11-07 20:00:30 +01:00
Harald Welte
a9ba307eb7
fix config save indent levels
2022-10-17 20:41:08 +02:00
Harald Welte
101dfd24b3
add capability to stream D-channel signalling via GSMTAP
2022-10-17 20:14:22 +02:00
Harald Welte
e76db5e71e
don't segfault if same line name is specified multiple times in vty
2022-10-17 19:36:36 +02:00
Harald Welte
a80d3a15de
vty: Fix saving the config file (missing DAHDI span name)
2022-10-17 19:29:09 +02:00
Harald Welte
8b67e4ab47
fix output file name composition
...
This got broken in commit 1688ffc615
when I introduced including the line name in recording file name.
2022-10-17 19:27:09 +02:00
Harald Welte
82e7cc0e95
add README.md
2022-10-16 21:37:21 +02:00
Harald Welte
1688ffc615
include line name in recording file name
2022-10-16 21:24:40 +02:00
Harald Welte
7ac9a88199
also investigate ALERTING and CONNECT (which could contain channel id)
2022-10-16 21:22:32 +02:00
Harald Welte
482821dd9a
remove line from list of lines before free
2022-10-16 21:19:48 +02:00
Harald Welte
3d2005b8b1
don't add line twice to global list of lines
2022-10-16 21:19:26 +02:00
Harald Welte
0bb7c321de
fix timestamp format string for filename creation
...
%S is what we want, not %s
2022-10-16 21:15:57 +02:00
Harald Welte
32f0531114
use reasonable permission bits when creating files
2022-10-16 21:12:31 +02:00
Harald Welte
b38dbe5f2c
vty: move output-path command below isdntap node where it belongs
2022-10-16 21:10:15 +02:00
Harald Welte
49fddd661f
add missing write_queue call-back function
2022-10-16 21:00:58 +02:00
Harald Welte
49b527f816
dahdi: don't open same timeslot a second time
2022-10-16 20:03:42 +02:00
Harald Welte
c71bd53dd7
fill missing reference to instance from line
2022-10-16 20:01:25 +02:00
Harald Welte
96d74e55c9
mask out flag when comparing callref; print log message if callstate not found
2022-10-16 19:59:28 +02:00
Harald Welte
a832379c81
RELEASE: fix event ordering to avoid NULL pointer de-ref
2022-10-16 19:50:50 +02:00
Harald Welte
67b5e26055
called party may also appear in INFORMATION messages
2022-10-16 19:46:09 +02:00
Harald Welte
c50f373aff
add q931 decoder unit tests
2022-10-16 19:43:02 +02:00
Harald Welte
9d8a83ad8c
q931: fix IEI of calling party
2022-10-16 19:30:27 +02:00
Harald Welte
50dfa0cdb4
q931: fix decoding of call reference
2022-10-16 19:30:13 +02:00
Harald Welte
2a0c0df07c
log call state creation/deletion
2022-10-16 19:06:24 +02:00
Harald Welte
aaf7c0100f
Log received Q.931 message type
2022-10-16 19:02:19 +02:00
Harald Welte
40a0bda396
remove 2-byte FCS before passing message up to Q.921
2022-10-16 18:54:31 +02:00
Harald Welte
90f9edc2dc
dahdi: lots more logging
2022-10-16 18:46:29 +02:00
Harald Welte
5cd3be294a
add line to global list of lines
2022-10-16 18:39:56 +02:00
Harald Welte
86f3a66089
some more log statements
2022-10-16 18:35:42 +02:00
Harald Welte
246242822c
add lots of Q.931 decoder error logging
2022-10-16 18:24:48 +02:00
Harald Welte
01a0539eb6
fix broken go_parent_cb
...
We don't need one as we don't have multiple levels of vty node
hierarchy.
2022-10-16 18:17:20 +02:00
Harald Welte
b73e817ec0
allow specification of dahdi span name != line name
2022-10-16 18:12:11 +02:00
Harald Welte
f5be363aa0
copy line->name to line->drvdata.dahdi.name
2022-10-16 18:10:21 +02:00
Harald Welte
22b25c3150
proper initialization of line->drvdata.dahdi.spanno
2022-10-16 18:08:25 +02:00
Harald Welte
6d298d67c8
actually use the dahdi driver to open/close D and B channels
2022-10-16 18:05:47 +02:00
Harald Welte
d89ad633e7
vty: fix de-reference of line from vty
2022-10-16 17:59:38 +02:00
Harald Welte
78914bc8a7
rename 'driver' to 'drvdata'
...
... so we can have a 'driver' member pointing to the actual driver
2022-10-16 17:59:19 +02:00
Harald Welte
ba1a40cc9a
make output path vty-configurable
2022-10-16 17:37:17 +02:00
Harald Welte
db63cdd38b
actually trigger start + stop of B-channel recordings
2022-10-16 17:31:47 +02:00
Harald Welte
219ca5a323
VTY port is 4270, as allocated in libosmocore meanwhile
...
4269 was just a copy+paste from osmo-e1d
2022-10-16 17:15:59 +02:00
Harald Welte
b266af19cf
isdntap: makr tei as unused for now
2022-10-16 17:09:07 +02:00
Harald Welte
adb20c0d23
actually dispatch recveived messages for D and B channel
2022-10-16 17:08:53 +02:00
Harald Welte
19c4dec29e
dahdi.c: use #define for path name of sysfs attribute
2022-10-16 17:08:20 +02:00
Harald Welte
41c0deb448
q931_decode: operator precedence
2022-10-16 17:08:08 +02:00
Harald Welte
be98f48fe9
q931_decode: use == (compare) not = (assign) operator in if statement
2022-10-16 17:07:39 +02:00