Every call VOIMAR carries touches at least three systems: the one that holds the number, the one that switches the call, and the one that prices it. Until the end of October each of them kept its own list of numbers and its own call records. A new number was set up by hand in more than one place, nobody could see on one page how a number was meant to ring, and the call records and the billing figures came from different stores.
We stopped that with one instruction from the top of the company. The module that came out of it is Voice Core, VOIMAR's central telco module. This post covers what it holds, how the session border controller (the border, from here on) feeds it, how rating moved in beside the old billing path, the routing standard the border runs on, and a cache keyed so it never needs clearing by hand.
What we built
Voice Core is one register of every number, one store of every call record and one control desk for every call flow. vKOM-PBX, vKOM-SECURE, Microsoft Teams Direct Routing and SIP trunks read from it or write to it, and GYTE reads numbers, extensions and call charges from it for invoicing. Calls do not run through it: they run on the border and the voice platforms. The instruction behind it, in plain words:
Switching, rating and routing of numbers are one job, and that job belongs in one central place, run from one desk.
- The number register: owner, tenant, carrier partner, trunk, status, and which platforms may present the number as caller ID.
- One wanted call flow per number: where it rings, for how long, and what happens when nobody answers.
- One call record store, fed by the border, the voice platforms and Microsoft Teams.
- Rating per second against rate plans, with usage per customer feeding invoicing in GYTE.
- Change sets and a drift check: the exact change each system needs, and where each system's last known state differs from the wanted flow.
The call store changed first. Since the end of October the border has pushed every call record straight to Voice Core, with a forwarded copy going to GYTE. The voice platforms send theirs. Microsoft Teams call records arrive from Microsoft's own feed, and from those the core keeps only a quality summary, with no names and no numbers.
Rating followed in early November. Once a night Voice Core rates every call leg with the same rules the old billing path uses, marks each leg as billed elsewhere so nothing is charged twice, and records the day's counts. Those counts are compared with the old results at the end of the month, and Teams invoicing stays on the old path until they match. Shadow first, switch later.
How it works
The routing standard for the border came out of a bad night. One evening in late October we moved an inbound carrier trunk onto the border. The move itself went to plan. Then calls for a group of active customers started leaving on the wrong carrier. The cause was one rule with no tag on it, matching calls it was never meant for and sending them the wrong way. The standard was agreed the same night, and the border has run on it since:
- Every number is tagged with where it comes in and where it goes out.
- One rule per carrier and platform pair, so a tagged number matches only its own rule.
- Untagged routes are safety nets only. A customer's calls never depend on one.
- The dial plan lives in version control as a plain CSV table, and the border's configuration is generated from it.
- A change is applied by a named person from a reviewed change set, with a backup taken first and the result saved.
Voice Core produces those change sets. The border has no API, so nothing is pushed to it automatically. A person applies each set and marks it done, the audit trail shows who did what and when, and each number's page shows the rule and routes it hits, from the latest snapshot, beside what it should hit.
Rating has one hot path. For each call leg it must find the longest number prefix that matches the dialled number. Until the cache went in, that scan ran against the database once per call leg. Voice Core now keeps the answer in Valkey, the open-source fork of Redis, which runs as one central in-memory cache for VOIMAR's platforms. It caches route matches only, never rates: an edited rate must apply at once, so rates are read fresh every time.
The trick is in the key. Each cached match is keyed by the dialled number and a stamp of the routing table: the count of prefix rows plus the id of the newest row, worked out once per rating run. Add a prefix or remove one and the stamp changes, so every old key is never asked for again and expires after six hours. Nothing is deleted and nobody clears anything by hand. A no-match answer is cached too, so a number with no route does not cost a scan on every one of its call legs.
The cache is allowed to die. Voice Core reaches it with its own credentials, limited to its own keys, on a 0.3 second timeout. After any failure it stops trying for 30 seconds and serves from a copy in its own process, bounded at 5,000 entries. If the cache is down, rating is slower, not broken.
What it means for you
- One record of your numbers and calls, with one audit trail. A number moves between platforms with one recorded change and keeps its history.
- Invoices built from real call records. GYTE reads your numbers, extensions and call charges from the same store the border writes to.
- Your numbers go out only on the route tagged for them.
- On a shared number, calls are recorded against each device's Voimar Security ID, so your company still knows who made which call.
- If Voice Core is ever down, your calls do not stop: they run on the border and the platforms, and the records catch up.
What we measured
The figures we print are design figures: the six-hour life of a cached route match, the timeouts above, and 77 automated tests on the core at the time of writing. We did not time the rating run before the cache went in, so there is no before-and-after figure, and we will not invent one. The measurement that matters more is the shadow comparison between a month of the core's rating and the old results. That comparison, not a speed figure, decides when the core's rating takes over the Teams invoice.
What is next
The next step is to let the core's rating decide the Teams invoice. If November's shadow results match the old results, Teams invoicing switches to Voice Core at the start of December. After that:
- Write-back to vKOM-PBX and vKOM-SECURE: Voice Core reads their numbers but cannot write them yet, so those change sets are applied by a person.
- Hunt flows across platforms. They can be stored and drawn, but they do not run yet.
- Rates, plans and reports move from GYTE into the core.
- Tenant views, so a customer's own administrator sees their numbers and call flows. Today the screens are VOIMAR staff only.
- A timed rating run before and after the cache, so the next post carries a number.
All of it serves one direction set at the top of VOIMAR: a telco stack we own and run ourselves, voice first. Voice Core is the piece that makes the voice part one thing instead of three.
Motsamai Mokgele Mokhomo Sr. sets the vision of a telco stack VOIMAR builds and runs itself, voice first; Voice Core is the register that vision needs, one place for every number, route and rate across the stack.
Zuko Leonard Rabotapi set the one-place brief for the engineering team, agreed the routing standard on the night the carrier change went wrong, and oversaw the Voice Core releases and the rate-card load.

