Step N · translation and CLI

Number translation and CLI

Version 0.49.1 on node node-a.

WhatCount
translation rules
CLI rules
customers with assigned numbers
number prefixes assigned
customers with a default CLI
published fields

Is the switch using what is in the database?

WhereVersion
compiled from MySQL
published to Redis(nothing)

These differ. An edit has not been published yet, so the switch is still applying the previous rules. The engine publishes on a timer; if this does not clear, check make health. Until it does, "my rule does not work" and "my rule is not live yet" look identical — this row is the difference.

The order, and why it cannot be changed

  0. clean      the dialled number is reduced to digits
  1. inbound    customer trunk rules
  2. route      the route is chosen on THAT number
  3. outbound   vendor gateway rules
  4. CLI        last, because the shape depends on the vendor

CLI validation is the one exception and runs at step 1, with the other admission checks: "may this customer send this number" does not depend on the vendor, and asking it last would mean a spoofing customer had already taken a CPS token, a channel lease and a vendor's capacity.

Refreshes every 30 seconds. On the command line: make xlat-check, make cli-check, make xlat-test N=008801712345678, make audit-cli.