Skip to main content

Crate telco_interop

Crate telco_interop 

Source
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:

ModuleInterfaceFeature (default on)
wbciWBCI 2.0 — provider ↔ providerwbci
spriS/PRI 4.x — service provider ↔ network ownerspri

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§

pub use wbci;wbci
pub use spri;spri

Modules§

reportreport
What a payload is, its validation issues and what a code means, as plain text lines — the output of telco-interop read, check and code, for any front end.
simspri and wbci
A sandbox: named scenarios that play a whole switch or order from both sides.
wechselspri and wbci
One provider switch across WBCI and S/PRI.

Structs§

Befundspri and wbci
Where the two interfaces disagree.
Calendar
Which days count as working days.
CarrierCode
A carrier: ISO 3166 alpha-3 country code and ITU M.1400 carrier code, e.g. DEU.EKP1.
Eintragspri and wbci
One event of the switch.
Fristspri and wbci
A deadline of the switch, tagged with its interface and party.
LineId
The line identifier of a technical resource, e.g. DEU.EKP1.1754639821.
Mismatchspri and wbci
Why an S/PRI process was not attached.
VorabstimmungsId
The id of a pre-agreement request, e.g. DEU.EKP1.V000000013.
Wechselspri and wbci
One provider switch: a WBCI pre-agreement and the S/PRI orders carrying its id.

Enums§

Aktionspri and wbci
Something a party may do next.
FristDetailspri and wbci
A deadline of either interface.
Parteispri and wbci
A party of the switch, across both interfaces.
Richtungspri and wbci
Whether an event was sent or received by the owner of the process it was recorded in.
Schnittstellespri and wbci
The interface an event or deadline belongs to.