Commit Graph

16 Commits

Author SHA1 Message Date
Andreas Eversberg 0e0e6fbbc8 Add option to give name to a V5 port 2024-04-01 22:34:48 +02:00
Andreas Eversberg 0e42560095 Loss of frame support for detecting L1 failurew
LOF is not supported by V5.2 protocol. LOS is used instead.

If LOF or LOS is received, LOS is assumed in the L1 state machine.

If both LOF and LOS ceased, no LOS is assumed in the L1 state machine.
2024-01-16 00:28:54 +01:00
Harald Welte 441e207870 Add a user-configurable name for each interface
This name is subsequently used in all related log lines, VTY output,
etc. instead of the auto-genreated "IF%u" string with the interface
number.
2023-09-28 22:34:52 +02:00
Harald Welte da2b9e1fca Introduce LOGV5IF, LOGV5LI and LOGV5UP log macros
This helps us to always log proper context.
2023-09-28 22:34:52 +02:00
Harald Welte f6605e1bd0 Enhance the FSM instance ID string with meaningful context.
The FSMs should have unique ID strings, providing the user/operator
with meaningful context during log messages, etc.
2023-09-28 22:34:52 +02:00
Andreas Eversberg 2dca6472b1 Add option to enable PSTN datalink before startup
This is the default behaviour now. PSTN datalink can be established
before the system startup has been completed.
2023-09-28 22:34:52 +02:00
Andreas Eversberg 8458f8baca Add support for multiple interfaces on one V5 instance
Previously only 0..1 interfaces were allowed, now 0..n interfaces are
allowed. The interface ID is unique for all interfaces, so false
connection can be detected. Other identifiers may be identical at
different interfaces.

User ports use (abstract) ph-socket names that include interface ID:

<interface id>-isdn-<port nr> (e.g. 1-isdn-9100)
<interface id>-pstn-<port nr> (e.g. 1-pstn-8888)
2023-03-12 18:13:13 +01:00
Andreas Eversberg 7e01a911fb Added echo suppressor option 2023-03-07 15:47:05 +01:00
Andreas Eversberg 3285bf896d Improve management process, to handle startup/blocking/unblocking correctly
This is a big one:

Startup process was hacked. Several state machines do the startup process now:
- system startup
- PSTN startup
- PSTN restart
- 5 state machines to do multiple port unblocking/blocking
2023-03-07 15:46:59 +01:00
Andreas Eversberg 86b7060848 Link structure of e1inp_line directly with V5 link
This way there is no lookup required, to get e1inp_line from v5
link and vice versa.

The E1 line is configured whenever it is added to the V5 link. This
happens when entering it in the VTY or loading the config. Also the
signaling channel is opened.

If E1 line is removed from the V5 link, all channels are closed.
2023-03-07 15:46:46 +01:00
Andreas Eversberg fdcce2bb7f Dynamically open and close b-channels depending on the usage 2023-03-07 15:46:44 +01:00
Andreas Eversberg d912c376ec Added echo cancelation option 2023-03-07 15:46:40 +01:00
Andreas Eversberg 6cbb9eb346 Introduce layer1.c to process layer1 data flow and signals 2023-03-07 15:46:13 +01:00
Andreas Eversberg 11c87bdea7 Work on v5x_data.c and v5x_internal.h 2023-03-07 15:46:04 +01:00
Andreas Eversberg 6655e3ee01 Added destroy function for interface 2023-03-07 15:45:36 +01:00
Andreas Eversberg 6d77e6a982 Move v5x_data.c and v5x_internal.h to src/
Also split VTY code into v5x_vty.c and v5x_vty.h

Some VTY code from main.c is moved also.
2023-03-07 15:45:09 +01:00