Commit Graph

9 Commits

Author SHA1 Message Date
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 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