Expand description
§telco-interop — the German carrier interfaces in one dependency
A provider switch in Germany crosses two interfaces: the gaining and the losing provider
agree it over WBCI (§ 59 TKG), then the gaining provider orders the line from the
network owner over S/PRI with a PV order that carries the WBCI Vorabstimmungs-ID.
This crate gives you both under one name and one version:
| Module | Interface | Feature (default on) |
|---|---|---|
wbci | WBCI 2.0 — provider ↔ provider | wbci |
spri | S/PRI 4.x — service provider ↔ network owner | spri |
The identifiers both interfaces carry are one type each, so a value from one goes into the other as it is:
use telco_interop::{VorabstimmungsId, spri, wbci};
// Agreed over WBCI …
let id: wbci::VorabstimmungsId = "DEU.EKP1.V000000013".parse()?;
// … and the very same type in an S/PRI provider-switch order.
let in_spri: spri::VorabstimmungsId = id.clone();
let shared: VorabstimmungsId = in_spri;
assert_eq!(shared.as_str(), "DEU.EKP1.V000000013");§One switch across both: Wechsel
Wechsel (both features) holds the WBCI wbci::Process of one pre-agreement and every
S/PRI order carrying its Vorabstimmungs-ID, and recomputes from them on every call: one
timeline of both interfaces, their deadlines,
the next_actions of each Partei, and six
befunde rules that the interfaces agree (agreed before ordered, the line
the AKM-TR takes over, the dates, postponement in WBCI first, a WBCI cancellation reaching
S/PRI, completion within a working day of the switch date). See the wechsel module.
§A sandbox: sim
sim (both features) is a catalogue of named scenarios that play a whole switch or order
from both sides against simulated peers (wbci::sim, spri::sim): every request, order,
message and receipt with its time, each valid and inside its deadline — to test your own
side without a partner. telco-interop simulate writes them as files.
§The command line’s output as a library: report
report (feature report, not on by default) turns payload bytes into the lines
telco-interop read, check and code print — value-free, control characters replaced —
for another front end; the site’s in-browser playground uses it.
Need only one interface? Depend on wbci or
spri directly, or turn the other feature off:
telco-interop = { version = "0.1", default-features = false, features = ["spri"] }.
Guides: https://hupe1980.github.io/telco-interop/.
Unofficial; not affiliated with or endorsed by the AK S&P, VATM, BUGLAS or Deutsche Telekom.
Re-exports§
Modules§
- report
report - What a payload is, its validation issues and what a code means, as plain text lines — the
output of
telco-interop read,checkandcode, for any front end. - sim
spriandwbci - A sandbox: named scenarios that play a whole switch or order from both sides.
- wechsel
spriandwbci - One provider switch across WBCI and S/PRI.
Structs§
- Befund
spriandwbci - Where the two interfaces disagree.
- Calendar
- Which days count as working days.
- Carrier
Code - A carrier: ISO 3166 alpha-3 country code and ITU M.1400 carrier code, e.g.
DEU.EKP1. - Eintrag
spriandwbci - One event of the switch.
- Frist
spriandwbci - A deadline of the switch, tagged with its interface and party.
- LineId
- The line identifier of a technical resource, e.g.
DEU.EKP1.1754639821. - Mismatch
spriandwbci - Why an S/PRI process was not attached.
- Vorabstimmungs
Id - The id of a pre-agreement request, e.g.
DEU.EKP1.V000000013. - Wechsel
spriandwbci - One provider switch: a WBCI pre-agreement and the S/PRI orders carrying its id.
Enums§
- Aktion
spriandwbci - Something a party may do next.
- Frist
Detail spriandwbci - A deadline of either interface.
- Partei
spriandwbci - A party of the switch, across both interfaces.
- Richtung
spriandwbci - Whether an event was sent or received by the owner of the process it was recorded in.
- Schnittstelle
spriandwbci - The interface an event or deadline belongs to.