Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Welcome

This guide is for the operator and its resellers: those who install the phone system, create customers and provide them with numbers and trunks. The customer guide, served under /guide/en/, covers what customers and their users see; in admin mode, you do there what they do.

RoleWhat they do
Reseller adminCreates and follows their customers, assigns them numbers, manages their sale rate plans.
Operator adminManages the whole installation: resellers, customers, number pool, trunks, diagnostics, settings.
Operator supportSees everything and acts on diagnostics, without changing anything else.

Signing in and the account are the same as for a customer: see Sign in and My account. The operator installing the phone system starts with Installation and operations: prerequisites, sizing, quick start, updates, backups.

This guide opens from the Documentation link in the portal menu, for the operator’s and resellers’ teams; the full API documentation opens from the API page (see Operator API). The operator’s teams open it on the public site, https://docs.kanadr.com; resellers and customers stay on your domain, with the copy served by the phone system, which matches its version. In the portal, the ? icon next to the title of a page or a card opens the guide section about it directly.

To report a bug or suggest an improvement to the publisher, the operator’s teams have the Report a bug, a suggestion link, above their name at the bottom of the menu: it opens the publisher’s support page. Resellers and customers do not see it.

Customers and users

The Customers page lists your customers; Search customers filters them by name, domain or reseller. New customer creates one: its name and its domain, the customer’s SIP domain name. If the operator has set the domain suffix, the identifier is enough (client gives client.voip.operateur.exemple, shown under the field); a full domain, with dots, is still accepted as is. Otherwise, enter the full domain (client.operateur.exemple). The domain can no longer change afterwards: the phones register to it. The optional Channel limit field sets, from creation, the customer’s number of simultaneous external calls (see Channel limit); empty, no limit. The Allow call recording box, ticked from the start, gives the customer the right to record its calls: it records nothing by itself, each extension is set afterwards. Untick it to create the customer without it (see Call recording). If the operator sells raw SIP trunks, the Customer type field chooses between Standard and SIP trunk: a customer that only wants a trunk to its own IP PBX (see Raw SIP trunk). In the list, the customer’s identifier appears under its name (the full domain on hover, or in full when it is not under the suffix), with its number of Users. Next to it, the consumption for the chosen month: calls, billed minutes and amounts, rounded to the cent (a call’s details and the exports keep full precision). The Total row adds up each column under its header, users included. On a computer, a click on a column header sorts the list by that column, in ascending order; a second click, in descending order. The arrow next to the header shows the chosen sort (with the keyboard: Tab to the header, then Enter). Names are sorted by language, ignoring capitals and accents; numbers and amounts by value, a missing amount (“—”) always last. The search keeps the sort, the Total row does not move.

A customer’s page shows at the top its status (in service or suspended), its domain and its actions: Open the customer’s space (see below), Call flow and Call log, as its customer admin sees them. The ⋯ menu (More actions) offers Rename the customer, Replay publication (rewrites the published call flow into the telephony engine, without a new version; useful for diagnostics, when a call does not follow the call flow shown), Suspend… and Terminate….

Tiles sum up the customer: its extensions (and how many are connected), its numbers, its trunk, today’s usage against the cap (for a reseller, as a share of the cap: “62%”, with no amount, since the cap counts at the operator’s purchase price), its rate plan. Each one opens the tab with the details. Without a trunk, a banner says so at the top of the page: the customer can neither call out nor receive calls.

Four tabs; the open tab is in the page address, to keep as a link:

  • Users and extensions: each account with its address, role, extension and phone (connected or not), caller ID and outbound calls (allowed or blocked). The search filters by name, address or extension. Add a user: their name, email address, role (customer admin or user) and, if they have a phone, their extension number (2 to 8 digits); they receive their invitation by email. An operator account (not a reseller’s) also has the Send the invitation by email box; unticked by default when sign-in from your portal is set up, the account is created without an email and the invitation is sent later with Send invitation. An account without an extension (created without a number, or coming from the customer’s directory) gets one later with Assign an extension, at the top of its details. Manage opens the details: the extension’s caller ID and the numbers its user may choose themselves (see Users), the extension’s restriction (company default, none, or one of the profiles offered by the operator, see Call restrictions), Send invitation (account created without an invitation, expired link, forgotten password), name, address and role, disabling or deleting along with their extension (see Users). Changing the address, the sign-in identifier, closes the account’s sessions and notifies the old and the new address; never for an account with a higher role than yours. The customer admin only adds users or extensions if you let them (see below).
  • Numbers: the customer’s numbers and their destination (see Numbers).
  • Trunk and usage cap: one card below the other, the trunk, the channel limit, the usage cap (see Settings), the monthly budget, recalculating prices (operator admin) and the additional parameters of the customer’s desk phones.
  • Subscription: see below.

A user who has lost their second factor: Manage, then Reset two-step verification; they will set up a new one at their next sign-in. Only an account of the level above can do it. The assistant does not do it: account security stays closed to it.

The other admins of your reseller are added from the Users page (see Resellers and team).

Customer’s space (admin mode)

Open the customer’s space, on its page, shows the portal as the customer’s administrator sees it: its menu (home, call flow, users, call log, voicemail…) and its whole PBX, to understand what they see or help them. A red banner reminds you: you act with your own rights, and each action stays in your name in the audit log. One exception: call recordings, which only the customer listens to (their administrator, and each holder for their extension); the call log shows which calls are recorded. Switch customer… goes to another customer’s space, on the same page; Leave the customer’s space goes back to its page.

CDR: call log of all customers

The CDR menu entry shows, on a single list, the calls of all your customers, newest first: for the operator, its direct customers and those of its resellers; for a reseller, its own. No need to open each customer’s call log. Each call shows its Customer, whose name opens its call log.

Same criteria as a customer’s call log, kept in the page address (a link to share): period, direction, outcome, minimum duration, and Customer to keep only one; the Extension filter appears once the customer is chosen. The search, with or without a chosen customer, finds what it finds in each customer’s call log: a number, even partial, an extension, or a name (the customer’s extension or shared directory, your personal contacts).

On a computer, a click on the Time, Customer, Number, Extension, Duration or an amount column header sorts the list by that column, in ascending order; a second click, in descending order; the arrow shows the chosen sort, and Time descending is the default order. The sort covers all the calls of the search, not only the page shown: More calls continues in the same order. It is kept in the page address, like the criteria; the export stays in date order. A call without a value (no extension, no amount) comes last; so does a masked number, so that the order does not reveal its digits.

Nothing more than each customer’s call log shows:

  • external numbers masked per each customer’s setting; the operator admin shows them with show in full, and a search shows them in full for them, each access logged in the audit log. Otherwise (reseller, support), as in their call log, the search does not cover customers who mask numbers: it would reveal the hidden digits;
  • amounts according to your role (see Amounts in the call log);
  • a recorded call is marked “recorded”; listening stays with the customer;
  • calls imported from a former phone system are listed, marked “imported”, without amounts.

The operator’s team opens the Trace of a call, as in a customer’s call log (see Diagnostics). Export (CSV) downloads the calls with the same filters: the export of all customers (without the search, which belongs to one customer, or imported calls, which are not billed), or that of the chosen customer.

Channel limit

A customer’s channel limit is the number of external calls it can have at the same time, inbound and outbound together: those that go through its trunk. It is optional; without a limit, nothing changes for the customer. It is set at creation (Channel limit field of New customer), then on the Channel limit card of the Trunk and usage cap tab of the customer’s page: Simultaneous external calls, a whole number from 1 to 1000, then Save. Empty the field and save to remove it. It applies at once to the next calls.

  • Once the limit is reached, a new external call is refused as busy, inbound or outbound, with no voice message. Calls in progress are never cut.
  • A call between two of the customer’s extensions does not count.
  • An inbound call forwarded to an outside number (forwarding to a mobile, external member of a ring group) takes two channels: its arrival and its departure.
  • Emergency calls are never limited or refused, even once the limit is reached.

The operator sets it for all its customers, the reseller for its own; support reads it without changing it. The customer cannot change it; every change is in the audit log.

A customer’s subscription

The Subscription tab of the customer’s page, one card below the other: its identity, its rate plan, its subscription price, call recording and users added by the customer, then, at the bottom, the Danger zone to suspend or terminate.

  • Rename: the customer’s name (company name); its domain does not change.
  • Suspend: its accounts can no longer sign in, its API keys no longer work, its phones no longer register and its numbers no longer ring. It no longer counts towards the license. Everything stays in place: Reactivate restores the service as it was. In the customer list, it is marked “suspended”.
  • Terminate: permanent. Extensions, voicemail and messages, call flow, recordings, announcements, directory, accounts and API keys are deleted. Remove its numbers first (they go back to the pool); a customer with a trunk is terminated after the operator deletes the trunk. The audit log and the calls of past months remain available in the exports.

A customer admin can neither suspend nor terminate their own customer.

Subscription price

The Subscription price card, below the pricing, is used to work out the customer’s real margin, including with an unlimited plan (calls sold at zero) or a per-minute rate plan sold with a small package. It is not an invoice: the actual subscription stays in your billing tool, the margin is indicative.

  • Price: monthly, excluding tax, in the instance currency, entered by hand for this customer, with no default value, no link to the rate plan and no per-user calculation. Empty: no price, the margin is that of the calls alone. Zero is accepted (free subscription).
  • Reseller’s customer: two prices, like the rate plans. The operator enters the price sold to the reseller; the reseller enters the price sold to the customer and reads, without changing it, the one it pays the operator (Price paid to the operator). The operator reads the reseller’s price without changing it. For a direct customer, a single price, the one sold to the customer, entered by the operator.
  • Subscription start (optional): sets the cycle day. A start on 15/11 gives cycles from the 15th to the 14th; a start on the 29th, 30th or 31st falls on the last day of shorter months. Without a date, the cycle follows the calendar month (due on the 1st) and the subscription runs from the customer’s creation.

The subscription counts in full, without proration, once per cycle, on its due date; the first cycle counts if its due date falls on the start day or after, and nothing counts after the customer is terminated.

Below the prices, the margin of the current cycle (for example 15/11 to 14/12), at your level:

  • operator: the subscription sold (to the reseller for a reseller’s customer, otherwise to the customer), plus the cycle’s calls sold, minus their purchase;
  • reseller: the subscription sold to the customer minus the one paid to the operator, plus the calls sold to the customer minus what you pay the operator for them. The operator’s purchase price never appears.

The customer list and the operator’s home page stay on the calendar month (see Margin). The customer sees neither these prices nor this margin, not even in the audit log, where each setting is recorded (abonnement.regler). In the API: GET /clients/{client_id}/abonnement, PUT /clients/{client_id}/abonnement/prix/{niveau} (vente_revendeur or vente_client) and PUT /clients/{client_id}/abonnement/debut.

Call recording

The Call recording card of the Subscription tab: Allow call recording, as you chose it when creating the customer (allowed, unless you unticked the box). When allowed, nothing is recorded for all that: the customer sets each extension, Recording tab. When off, the customer sees neither the Recordings page, nor the Recording tab of its extensions, nor the related assistant tools, and no extension records. Its recordings are kept (normal retention); on reactivation, they come back and the extensions that were recording resume. The customer cannot change this option; every change is in the audit log.

Users added by the customer

Each of a customer’s users counts towards the license and what you bill them: you (the operator, or the reseller for its customers) add their users and extensions. The Users added by the customer card of the Subscription tab: Let the customer admin add users and extensions, off by default, including for customers that existed before this option. When off, the customer admin sees neither New user nor Assign an extension; a sentence tells them to contact their operator. The API refuses these operations to them (403 ajout_utilisateurs_non_autorise), and no account is created at first sign-in through SSO; nor can they enable a disabled account again, which would count again. They can still rename, edit, disable and delete their users. The customer cannot change this option; every change is in the audit log.

Numbers

The Numbers page shows the numbers the operator has reserved for you and those of your customers, with their status: available, assigned, ported out (moved to another operator), terminated.

To give a number to a customer, from their page: Assign a number from stock, choose an available number, then Assign. Then choose its destination: an extension, or a module of their call flow. The customer admin can also change the destination from their call flow.

Remove returns the number to the pool; its calls are no longer routed to the customer.

Emergency addresses

The operator’s provider requires a postal address per number: it locates the caller for emergency services. The customer’s page (Numbers tab, Emergency addresses card) holds it for every customer, SIP trunk included: the Customer address, that of its site, is used for all its numbers; a number used elsewhere gets its Own address (Use the customer’s clears it). Five-digit postal code in France and French overseas territories; two-letter country code, the customer’s by default. The customer’s admin enters the same addresses in their Settings. A number that leaves the customer loses its own address.

Import a file applies the addresses of a CSV file to the customer’s numbers at once, for example the export sent by a customer who resells telephony itself. Columns number, street, address_line_2, postal_code, city, country (headers of the export of addresses to declare, in English or in French; other columns are ignored). A line without an address puts the number back on the customer’s address. A preview shows each change before Confirm the import; a single rejected line (unknown number, another customer’s, duplicate, invalid address) and nothing is imported, the line is cited. The import is recorded in the audit log, with the number of changed numbers.

Rate plans and usage

Each answered outbound call is rated on receipt, on three rate plans: the operator’s purchase price, its sale to the reseller, the sale to the customer. Inbound calls, internal calls and unanswered calls are not rated. A received call forwarded to an outside number is rated as an outbound call to that number, from the moment the other party answers to the hang-up.

Rate plans

The Rate plans page groups them by type: Purchase, Sale to resellers and Sale to customers for the operator; Sale to customers for a reseller, who never sees the operator’s purchase prices.

New rate plan: a name, an effective date (a purchase rate plan only applies to calls from that date, counted from midnight in the calling customer’s time zone; by default, today in yours) and its lines, in two ways:

  • CSV file: one line per prefix, prefixe;destination;prix_minute;frais;palier (prefix, destination, price per minute, connection fee, increment), for example +336;Mobiles;0,05;0;60/30. Prices excluding tax in the installation’s currency (no symbol, or only its own: 0,05 € in euros, 0.05 CHF in Swiss francs). The increment minimum/step in seconds: 1/1 per second, 60/60 per started minute, 60/30 first minute indivisible then per 30 seconds.
  • From another rate plan, with a margin: same lines, prices and fees increased by the percentage given.

The default rate plan of a type applies to any customer (or reseller) that has none assigned. Click a rate plan to see its lines and search for a prefix or a destination. Deleting a rate plan (all its versions) does not change calls already rated.

On screen, prefixes with the same destination and the same prices (price per minute, fee, increment) are grouped on one line, for example +336, +337 for French mobiles. Beyond four prefixes, the first three are shown, followed by + N to expand the others; Show less folds them back. Searching for a prefix finds the line of its group, expanded, with the prefix searched for highlighted. Grouping only affects the display: the rate plan keeps one line per prefix, for rating as for the CSV. The customer’s Rates are shown the same way.

Catch-all (other destinations)

The line with the * prefix, the catch-all, covers any destination that no other line of the rate plan covers: a call is rated by the line with the longest prefix, otherwise by the catch-all. Only one per rate plan. Providers’ purchase rate plans often have one: it goes into the CSV as is, for example *;Rest of the world;0,20;0;1/1.

For a sales rate plan, the Catch-all (other destinations) box of New rate plan sets its price: price per minute, fee and increment (60/60 by default). It replaces the catch-all of the CSV or of the source rate plan, and the margin does not apply to it. Left empty, the catch-all of the CSV or of the source rate plan stays, if there is one.

A sales rate plan without a catch-all is marked No catch-all: calls to a destination that is not in it are not billed. In its lines and in the customer’s Rates, the catch-all comes last, under Other destinations.

Editing a rate plan

A rate plan can be changed without importing it again: each change saves a new version, dated, of the same rate plan. The previous version stays in the history: past calls keep their price. Customers and resellers that use the rate plan (assigned, or by default) move to the new version on their own on its effective date: nothing to reassign. Whoever can create a rate plan can edit it (the operator all of its own, a reseller its sale-to-customers rate plans).

On the rate plan’s page, Edit opens the lines of the latest version for editing:

  • change a line’s price per minute, connection fee, increment or destination;
  • Add a line adds one at the top of the table, Remove removes one;
  • the * catch-all line is edited like the others (only one per rate plan);
  • the search (prefix or destination) filters the lines shown, useful for a purchase rate plan of several hundred lines; hidden lines are kept as they are.

The rules are those of the CSV import: a faulty line (invalid or duplicate prefix, second catch-all, invalid price, fee or increment) is flagged below it, and saving waits for it to be fixed. Below the table, the count of lines changed, added and removed.

Choose the effective date of the new version (today by default, counted from midnight in the calling customer’s time zone), then Save the new version. A future date keeps the current version in force until then: the rate plan’s page announces it (“A new version of this rate plan is saved…”), and the list of rate plans shows New version on …. A past date is reserved for the operator admin: the new version then also applies to calls already received since that day, but prices already set on them do not change; only calls still without a price are completed, and a price recalculation would take them into account.

Or import a CSV as a new version, below the table: the CSV (same format as at creation) replaces all the lines, from the effective date chosen.

Version history

From the second version on, the rate plan’s page shows the Version history: number, effective date, status (in force, upcoming, previous), number of lines, author and date saved. View opens a version read-only. The rate plan’s header recalls the version shown (“Version 2 of 1 Dec 2026”).

Each call is rated by the version in force on the day of the call, on receipt as during a recalculation. For purchase rate plans, the latest effective date wins, across all purchase rate plans. A sales rate plan applies as soon as it is assigned: before the effective date of its first version, that first version applies. Each new version is written to the audit log (grille.versionner), with the number of lines changed, added and removed. Through the API: POST /grilles/{id}/versions (lines or CSV, effective date), GET /grilles/{id}/versions and GET /grilles/{id}/versions/{version}.

The service part of premium-rate (SVA) numbers stays outside any rate plan and any version (see below).

Assigning a rate plan

On a customer’s page, the Pricing card chooses its sale rate plan among those of its operator or reseller; on a reseller’s page, the operator chooses its sale-to-reseller rate plan. The change applies to the next calls; calls already received keep their amounts.

The customer admin reads their sale rate plan, without being able to change it, in the Rates menu of their space: rate plan name, effective date, prices by destination. They see neither the purchase prices nor the sale-to-reseller rate plan.

Calls received before their rate plan

A call received while no rate plan applied (customer without a sales rate plan, no purchase rate plan in force yet that day, destination missing from a rate plan without a catch-all) stays without an amount. Creating a rate plan, assigning one or changing the default rate plan completes these calls at once, if there is now a rate plan for them; an amount already set never changes. A purchase rate plan only applies from its effective date: older calls stay without a purchase price.

On the VM, kanadr revaloriser does the same for all customers (--client <id> for one, --depuis YYYY-MM-DD for calls from that day). Each re-rating is written to the audit log.

Recalculating prices

To correct a wrong rate plan before billing, the operator admin can recalculate the prices already set for a customer over a period: the customer’s page, Trunk and usage cap tab, Recalculate prices card. Choose the first and last day (included, in the customer’s time zone), then Preview: the number of calls whose price changes and, for the purchase, the sale to the reseller and the sale to the customer, the total before, after and the difference. Nothing is written until you click Apply the recalculation and confirm. Calls are recalculated on the rate plans in force on the day of each call. The recalculation is written to the audit log, with the period and the difference. Support and resellers do not see this card.

On the VM, the same thing:

kanadr revaloriser --forcer --client <id> --depuis 2026-10-01 --jusqu-a 2026-10-17
kanadr revaloriser --forcer --client <id> --depuis 2026-10-01 --jusqu-a 2026-10-17 --appliquer

Without --appliquer, the command shows the preview (calls, totals before and after, difference) and writes nothing. --forcer requires --client and --depuis; without --jusqu-a, the period runs until now.

Amounts in the call log

A customer’s Call log shows the amounts of each call, depending on your role, with the period total at the bottom of the table (all the calls of the chosen period and extension):

  • operator (admin, support, assistance): Purchase excl. tax, Reseller sale excl. tax (customer of a reseller), Customer sale excl. tax and Margin excl. tax, your sale (to the reseller, otherwise to the customer) minus the purchase;
  • reseller: Purchase excl. tax, what you pay the operator, and Customer sale excl. tax;
  • customer and its users: Cost excl. tax, their price.

“—”: a call that is not billed, or without an amount (see above). Export (CSV) includes the same amounts, with a marge (margin) column for the operator.

A call to a premium-rate (SVA) number costs its call charge, according to the rate plans, plus the service charge at the number’s official rate, the same at purchase and sales, with no margin: “incl. service” under each amount. It is in no rate plan; a call marked service to re-rate has provisional amounts, taken up automatically (see Premium-rate numbers).

Usage

The Customers list shows, for the chosen month (top of the page) and for each customer, the rated calls, the billed minutes and the amounts: purchase (operator only), sale to reseller and sale to customer, with the total. Months follow your organization’s time zone. Export calls (CSV) downloads the details of the outbound calls of the same month, the basis for billing.

Margin

Next to these amounts, the list shows the Customer subscription (and the Subscription to reseller for a reseller’s customers) counted this month, then each customer’s Margin, with their totals: the subscription and call sales, minus purchases.

  • operator: the subscription and calls you sell (to the reseller for a reseller’s customer, otherwise to the customer) minus the purchase of the calls;
  • reseller: the subscription and calls you sell to the customer minus what you pay the operator for them.

The subscription is the price entered by hand on the customer’s page (see Subscription price). The list follows the calendar month: it counts there once, in full, in the month of its due date (the cycle day, the 1st without a start date); the first month counts if the due date falls on the start day or after, and a terminated customer no longer counts. Without a price entered, the margin is that of the calls alone: if you sell calls at zero (unlimited plan), it is negative and equals their purchase cost. A missing amount counts as zero. This is not an invoice.

The customer’s page shows the same margin, for the current month, in the Margin this month tile, and that of the current subscription cycle in the Subscription tab; the operator’s home page, in the This month module (with Subscriptions this month). The calls CSV export only contains calls: the subscription is not in it.

Home

Your team (operator admin, support) lands on the Home page when signing in. It gathers, as modules, what needs attention, the figures of your network and its charts; each line leads to the page where to act. A module your role cannot read is not offered. Resellers have no home page: they land on their customer list.

The modules

Indicators: one figure per module, with its period in a pill. Amounts on the home page are rounded to the cent.

  • Calls in progress, Licences in use (out of the licence maximum), Active customers (and suspended ones), Numbers in stock (and assigned ones): live;
  • Channels in use: the channels in use at your providers right now, across all trunks, and below it those of the shared trunk out of its number of channels (see Channels and alert). It is added from Customize the home page;
  • Calls: incoming, outgoing and internal calls across the network, today, over 7 or 30 days, or since the start of the month, compared with the previous period if you wish;
  • Revenue (excl. tax), Purchases (excl. tax) and Margin (excl. tax): for the current month by default, or today, the last 24 hours, 7 or 30 days, this year, compared if you wish with the previous period of the same length (the current month with the same number of days of the month before). The operator sells to a reseller’s customers at the reseller price, to its own at the customer price, and buys at the purchase price (see Rate plans and usage). Revenue combines call sales and the subscriptions sold (to the reseller for a reseller’s customer, otherwise to the customer), with the “of which subscriptions” detail under the amount; the margin includes the subscription, like the customer list (see Margin). Purchases remain those of calls;
  • Your network and This month: the same figures gathered in one module. This month shows the month’s Revenue (excl. tax) (call sales and subscriptions, with the subscriptions share), purchases and the Margin this month (excl. tax): subscriptions and call sales, minus purchases. Its totals are those of the month’s customer list.

A subscription counts in full, once per cycle, on its due date (the cycle day, in the customer’s time zone): a chart by day shows it on that day, a chart by month in the month of the due date. The current month and year also count due dates still to come before the end of the month, like the customer list; the Spending and sales module shows them under its totals, off the curve, since no interval carries them yet.

Charts:

  • Spending and sales: revenue (call sales and subscriptions), purchases and margin excluding tax over the period, as curves. The interval is chosen in the module: by hour over a day, by day or hour over 7 days, by day or week over 30 days and over the month, by month or week over the year;
  • Call volume: incoming, outgoing and internal calls over the period, per interval;
  • Concurrent calls: the largest number of calls in progress at the same instant, hour by hour, today, over 24 hours or over 7 days, and the peak of the period. It is computed from finished calls (CDRs);
  • Destinations: answered outgoing calls to landlines (01 to 05, 09), mobiles (06, 07), international and special numbers (08, short numbers), with their share and sales;
  • Calls per day: incoming, outgoing and internal calls across the whole customer base;
  • Quality by provider: the share of outgoing calls completed, not answered (busy, no answer) and rejected or failed, with the most frequent failure causes (CALL_REJECTED, NORMAL_TEMPORARY_FAILURE…). A provider whose failures rise shows up before customers complain.

Monitoring:

  • Machine monitoring: processor, memory, system disk and recordings volume, as gauges (orange at 80 %, red at 95 %), and the load relative to the number of cores. In size L, the processor and memory curves over 24 hours. The service reads the machine every minute and keeps 48 hours of readings; the module is reserved for accounts that can read diagnostics (operator admin and support);
  • Backups and certificate: the last backup made by kanadr sauvegarder (see Backup) and the days left on the HTTPS certificate;
  • Trunks: registration status of each customer’s trunk;
  • Banned addresses: targeted account and end of the ban (see Diagnostics).

Lists:

  • To do: the telephony engine not responding; a customer’s trunk that is not registered, with the provider’s refusal (a 403 usually means a wrong username or password); banned IP addresses (a misconfigured phone may be blocking a whole site); abandoned webhooks; telephony engine folders closed to writing, where recordings, voicemail or announcements would fail (see Troubleshooting); a licence that has expired, is blocked or expires in less than 30 days; a new version available, which the administrator installs right there with Update (see Updates); a system patch waiting for the machine to restart, with a link to the Updates card of the Settings, where the administrator restarts it (see Restart to plan);
  • Top-consuming customers: the ranking of the period by sales, with each one’s outgoing calls; a link leads to the customer’s page;
  • Latest actions: the latest entries of the audit log;
  • Setup: until the instance setup is finished, the operator’s administrator sees its steps done, skipped or to do, Resume (or a given step), and Hide. Once hidden, the setup stays in Settings and the frequent actions (Quick start);
  • Common tasks: links to the most common settings.

Health, banned addresses and calls in progress refresh every 30 seconds, machine monitoring every five minutes. These figures come from the API (GET /organisations/{id}/tableau, /simultanes and /machine).

Customize the home page

Modules are laid out on a twelve-column grid, in four sizes: S (one figure, a quarter of the width), M (half the width, two rows), L (half the width, three rows) and XL (full width, two rows). Small modules fill the gaps left by large ones. On a phone, modules stack in a single column.

Customize home page lets you:

  • add a module: the window sorts the catalogue into Indicators, Charts, Monitoring and Lists, with a search; each card says what the module shows and its sizes. On the right, choose the size, the period (Live, Today, Last 24 hours, 7 days, 30 days, This month, This year, depending on the module) and, for some figures, Compare with the previous period;
  • adjust the settings of a module already shown: its size, its period, the comparison;
  • remove a module;
  • move it: drag it into place, or use the ↑ and ↓ arrows.

The same module can appear twice, for example Calls per day over 7 days in M and over 30 days in XL. Done leaves customization, Default layout restores the original home page. The layout is saved for your account: you find it on all your devices.

Resellers and team

Resellers

A reseller sells the phone system to its own customers, on your installation. It sees only its customers; you see everything. The Resellers feature is turned on first in the Settings: without it, no menu and no creation.

The Resellers page lists them, with their number of customers. New reseller creates one: its name is enough. Its page shows:

  • Reseller admins: its accounts. Add an account with the name and email address; the invitation goes out by email (server set in the settings). They manage the reseller’s customers, their users and their extensions, and see the numbers you reserve for them.
  • Reseller’s customers.

To create a customer under a reseller: Customers page, New customer, then set Belongs to to the reseller. Without a reseller, the customer depends directly on you.

Team

The Users page lists the accounts of your organization. Add an account creates one, with its role:

  • Operator admin: the whole phone system, settings included;
  • Operator support: views everything and runs diagnostic actions (call trace, hanging up a call, reload), without creating or changing anything. They listen to neither customers’ voicemail messages nor their call recordings.

Each account receives its invitation by email; the second factor is required at its first sign-in. Resend invitation sends it a new link. Manage changes its name, address or role, disables it (no more sign-in) or deletes it; your own account is set up in My account.

A reseller admin also has a Users page, to add the other admins of their reseller.

On their Users page, a reseller admin also finds their Fleet alerts (see Instance settings); their fleet’s webhook and their API keys are in the API menu (see Operator API).

Number pool

The Numbers page manages the installation’s number pool.

Add numbers opens a window: one number per line in international format, with the country and the carrier if needed (+33123456789;FR;provider), or a CSV file in the same format. The country must match the number’s country code; when absent, it is that of the country code for France, Belgium, Switzerland, the United Kingdom, the United States and Canada (from the area code for +1), to be given for others.

The search, above the list, combines the number (even partial, typed as 01 99… or +33199…), the customer (or numbers with no customer), the number type (geographic 01 to 05 by area, 06 and 07 mobile, 08, 09, outside France) and the status. It stays in the page’s address: a link brings it back as is.

For each number: its country, its carrier, the customer using it and its Status. The Provider can be corrected in the list, for example when a number is ported to another carrier: it is a note for you, the number’s routing does not change. The status is editable from the list:

  • available: in stock, ready to be assigned;
  • assigned: at a customer;
  • ported out: the number has left the operator (ported to another operator). It leaves its customer, after confirmation: no destination, no longer presented by extensions. It stays in the list for the record and can no longer be assigned;
  • terminated: returned to the carrier, can no longer be assigned.

A number reserved for a reseller is marked “reserved”; reservation is done through the API or the assistant. Searching by status finds, for example, ported-out numbers.

A number is assigned to a customer from the customer’s page (Numbers tab), as for a reseller (Numbers).

RIO code

The RIO column takes, for a French number (mainland France and overseas departments), its RIO (relevé d’identité opérateur): the 12-character code the customer gives a new operator to port the number there. It is optional. Type it in the number’s field, with or without spaces, in upper or lower case, then confirm (Enter, or by leaving the field); empty the field to clear it. The format is checked: 12 characters, in the format of a landline RIO for a landline, an 08 or a 09 number (first letter from F to Z), of a mobile RIO for an 06 or 07 number (indicator P or E). The check key (the last three characters) is not verified yet: read the code over. A number from another country has no field.

The customer sees the RIO with their numbers, with a button to copy it and a reminder: to switch operators while keeping the number, they do not terminate the line but give the RIO to the new operator. The RIO is cleared when the number leaves its customer (removal, ported out) or is terminated. Each change is written to the audit log.

Addresses to declare

Below the pool, the Addresses to declare card lists the numbers whose emergency address changed since the last declaration to your provider: the number’s own address, the address of the customer it inherits from, or a number moved to another customer (addresses are entered on the customer’s page, see Numbers). A number back on the address already declared leaves the list; numbers without any address are counted separately: nothing to declare while it is missing.

A number whose address had been declared and that leaves its customer (back to the pool, ported out, terminated) appears To remove, with its former address and former customer: ask your provider to remove this address. A number moved to another customer that has an address has a single To declare line: the new address replaces the former one at the provider. Without an address at its new customer, it is To remove.

Numbers without an emergency address are also reported in To do on the home page; the link opens their list, Show the numbers without an address, below the card. Each number leads to its customer’s page, where the address is entered.

  1. Export (CSV) downloads the list for your provider: action (declare or remove), E.164 number, customer, address (street, address line 2, postal code, city, country), origin and date of the change. The file is in your account’s language (; separator in French, , in English).
  2. Declare these addresses to your provider.
  3. Mark all as declared, or tick numbers and Mark the selection. A marked removal clears the number’s last declaration. A number changed between display and marking stays to declare, the message says so.

Your support team sees and exports the list without marking it; a reseller does not see it. Each marking is recorded in the audit log. Kanadr sends nothing to emergency services.

Customer trunk

The trunk connects a customer’s PBX to the telephone network, through the carrier’s SIP server. Without a trunk, the customer can neither call out nor receive calls.

On the customer’s page, Trunk and usage cap tab, Set up the trunk. If the provider has a trunk profile, pick it in Provider (the first profile is offered by default): you then only enter the Username, Password and Main number (NDI). The server, number format and networks come from the profile: the page does not show them, they are set in Settings, Telephony tab. Otherwise, pick Other provider: enter everything:

  • Provider and Server: the provider’s server address, host or host:port;
  • Username and Password of the SIP account, or IP-based trunk;
  • Provider’s country: that of its national format (France by default). A number with the same country code is sent in the chosen national format, others in the international format; what extensions dial is read in the customer’s country. A French overseas number dialled 0696… by a French customer is sent under its territory’s country code when the chosen format is E.164 (+596696…, or 596696… without +), and as dialled (0696…) when it is the national format;
  • Number format: the called number, in the provider’s country and international, and the presented number, in the format the carrier expects. Apply a template… prefills the formats of a known carrier;
  • Main number (NDI): the main line number, presented on any call that goes out without its own number (extension without a presented number, external member of a ring group, call forwarding to an outside number). It is required for every customer: without a main number, the trunk cannot be enabled. The page of an active customer without one warns about it, and the home page lists it under To do. A call that would have no number to present (neither the extension’s nor the main number) is refused without reaching the carrier, except to emergency numbers;
  • P-Asserted-Identity host: empty means the customer’s domain;
  • Provider networks: the addresses its calls come from, one network per line.

The page then shows the trunk status (registered or not) and the Last refusal from the provider, with its code: a 403 usually means a wrong username or password. The password is never shown again: leave the field empty to keep it.

IP-based trunk

If the provider authenticates by IP address, leave Username and Password empty: the trunk does not register and the page shows IP-based trunk. Two settings are then enough:

  • at the provider, allow the public IP address of the instance (of each server, active and passive) for outgoing calls;
  • in Provider networks, enter the addresses its calls come from: incoming calls from anywhere else are refused.

Diagnostics and metrics show NOREG for this trunk: this is expected, there is no registration to watch. The same applies to the shared trunk.

Disabled trunk

A trunk migrated from a former phone system is created disabled: it keeps its provider, username and password, but does not register, carries no calls and raises no alerts. The page shows disabled; the Diagnostics and the metrics show DESACTIVE. On cutover day, once the old trunk is cut off at the provider, Enable trunk puts it into service without entering the password again; it needs a main number. Through the API, actif in PUT /clients/{id}/trunk: false disables it (operator only), true enables it; absent, the state does not change.

Shared trunk

On top of each customer’s dedicated trunk, the operator can have a shared trunk to its provider, which each customer chooses instead of its own. It is set in Settings, Telephony tab, Shared trunk card: a trunk profile or a full entry, like a customer’s trunk (server, username and password, number format, provider networks), and Shared trunk enabled. The card shows its status (registered or not), its last refusal and the number of customers using it; the Diagnostics too, with Re-register.

On the customer’s page, Trunk and usage cap tab, Change trunk offers Dedicated trunk or Operator’s shared trunk. The shared trunk requires a Main number (NDI): one of the customer’s numbers, presented when the extension has no presented number. The customer keeps its own numbers: the presented number of each call is the extension’s, otherwise the main number, emergency calls included, never the provider account’s number; a call that would have none is refused, except to emergency services. Usage cap, budget, extension restrictions, blocked destinations and the call cut-off without a licence apply the same way; inbound calls still arrive by their number, routed to the right customer.

A customer has a single trunk: its own or the shared trunk, never both.

  • Switching to the shared trunk deletes the customer’s dedicated trunk: it no longer registers with its provider and no longer shows on the customer’s page, which displays shared trunk next to the title. The card says so before the choice is saved.
  • Switching back to a dedicated trunk means entering it again: Change trunk, Dedicated trunk, Set up the trunk. The customer’s main number is kept. When the trunk is saved, the customer’s calls leave the shared trunk.

Good to know before choosing it:

  • the provider must accept, on this single account, calls presented with the numbers of all these customers, and deliver their inbound calls;
  • an outage of the shared trunk affects all its customers at once (the alert says so, with their number);
  • its customers share its capacity (concurrent calls at the provider);
  • a customer migrated from a former phone system in shared mode has its numbers to route, at the provider, to the shared trunk’s account.

The shared trunk cannot be deleted while customers use it. Through the API: /organisations/{id}/trunk-commun (read, save, delete, re-register) and PUT /clients/{id}/trunk/mode (propre or commun, with the ndi), restricted to the operator admin. commun deletes the customer’s dedicated trunk; PUT /clients/{id}/trunk saves one and takes the customer off the shared trunk.

Channels and alert

Your provider grants the shared trunk a number of channels (simultaneous calls). Enter it with Channels and alert, on the Shared trunk card: Number of channels (1 to 10000) and Alert threshold (%) (1 to 99; 80 is suggested the first time). This number is indicative: the phone system refuses no call on the shared trunk, the provider refuses beyond it. It serves two purposes:

  • the Channels in use module of the home page shows the shared trunk’s usage out of this number;
  • the Channels in use alert (Fleet alerts) is sent when usage reaches the threshold, then when all channels are in use.

With few channels, a threshold makes no sense: if it falls on the last channel (80% of 4 channels), only the “all in use” alert is sent, and the card says so. Without a threshold, the same. At most one alert of each level per 24 hours; changing the setting makes it possible again. Usage is read every 15 seconds: a shorter peak may go unnoticed. The external calls of the customers going through the shared trunk count, emergency calls included; an inbound call forwarded outside uses two channels.

A customer on its dedicated trunk has no threshold: if it has a channel limit, the alert is sent when the whole limit is in use. In every case, the alert is the operator’s: neither the customer’s reseller nor the customer receives it.

Through the API: PUT /organisations/{id}/trunk-commun/canaux (canaux, seuil_alerte), restricted to the operator admin, and GET /organisations/{id}/canaux-en-cours (live usage: across all trunks, shared trunk, per customer).

SIP trunk to a customer’s IP PBX

With the Sell raw SIP trunks feature (Features), a customer can be created as a SIP trunk customer: no extensions, no call flow, no voicemail, only its numbers, which reach its own IP PBX. On the provider side, it has its dedicated trunk or the shared trunk like any customer; on the IP PBX side, the SIP trunk tab of its page sets the authentication, the transport and the called number format. Everything is described in Raw SIP trunk.

Raw SIP trunk

Some customers already have their own IP PBX and only want a SIP trunk: their numbers, and the way out to the telephone network. The PBX sells it to them as a separate kind of customer, of type SIP trunk: no extensions, no call flow, no voicemail, only a trunk to their IP PBX and their numbers. You keep troubleshooting (call log, trace, capture) and the pooling of your provider trunk.

Turning the feature on

In Settings, Features card, tick Sell raw SIP trunks. The feature is off on a new instance: while it is, nothing changes in the portal, no creation option, no tab, no text. It cannot be turned off while a SIP trunk customer exists (delete them first). See Features.

Creating a SIP trunk customer

With the feature on, the New customer form (Customers page, operator and reseller) offers a Customer type field: Standard or SIP trunk. The rest does not change: name, domain, channel limit (the number of channels sold). The call recording box disappears for a SIP trunk: it has no extensions. The type cannot be changed afterwards: moving to the hosted PBX takes another customer. In the list, a SIP trunk customer shows SIP trunk under its name.

Its page has no extensions, no call flow and no phones: the SIP trunk tab comes first, then Numbers (each number leads to its IP PBX, with no destination to choose), Trunk and usage cap (its provider trunk, channel limit, usage cap and budget), Users (its admin’s accounts, without an extension) and Subscription. The SIP trunk tile shows the IP PBX status.

On the provider side, it is a customer like the others: its dedicated trunk or the shared trunk, with a main number (NDI).

Setting up the IP PBX

In the SIP trunk tab, the Customer’s IP PBX card (set by the operator admin; the reseller and support read it): Set up the IP PBX, then Edit.

  • Authentication:
    • By registration: the IP PBX registers with an eight-digit Username, drawn by the instance on the first save and kept, and the Password you enter (12 to 64 characters; Generate suggests one). The card then shows it hidden: Show reveals it (to the operator and the reseller; support only reads “Set”), Copy copies it; each display is recorded in the audit log. When editing, leave the field empty to keep it.
    • By IP address: only the declared IP PBX addresses are accepted (one per line, a single address or a network, at most /24 in IPv4 and /48 in IPv6), with no challenge and no password. Calls to the IP PBX go to the Call destination (host or address, :port if needed); empty, the first address. An address can overlap neither a provider’s network nor another customer’s IP PBX.
  • Transport: Standard (UDP or TCP), unencrypted audio, or Encrypted (TLS and SRTP required): TLS signaling and SRTP audio in both directions, an unencrypted call is refused.
  • Called number format delivered to the IP PBX: E.164 (+33…, default), National (0…) or International without + (33…), as the IP PBX expects.

Each save immediately rewrites the IP PBX account and the routes of all its numbers.

Information for the IP PBX

Below the card, Information for the customer’s IP PBX gathers what to give the customer:

  • Status: Registered or Not registered (by registration), By IP address otherwise; Channels in use, out of its limit if it has one;
  • Server and domain: the customer’s SIP domain, also the authentication realm; an Outbound proxy is added when this domain is not under the instance’s suffix, and always for encrypted: the instance’s name, the one on its TLS certificate, which the IP PBX can verify (the customer’s domain is not on it);
  • Port: 5060 (UDP or TCP) for standard, 5061 (TLS) for encrypted;
  • Username (by registration) and Password: “Set”; show it in the Customer’s IP PBX card, and the customer finds it in its space;
  • IP PBX addresses (by address) and Called number format.

The card ends with IP PBX firewall: the instance addresses (those the telephony engine announces: signalling and audio come from them), the transport’s SIP port and the audio range over UDP (16384-32768), to open in the IP PBX’s firewall.

The customer finds this information in its space, password included (its admin shows it on demand, recorded in the audit log). Calls from the IP PBX are accepted in every format of its country’s dialing plan, in G.711 only. The presented number must be one of its numbers, otherwise its main number goes out; a forward made by the IP PBX presents the original caller when a Diversion (or History-Info) header carries one of the customer’s numbers.

Encryption

With encrypted transport, encryption runs from the IP PBX to the instance only: beyond it, the call follows the provider’s network, like any outside call. Say so in your offer. The instance presents its certificate (the portal’s); the IP PBX must trust its authority.

Restrictions, cap and channels

The Call restrictions card of the SIP trunk tab chooses the restriction profile applied to the outbound calls of the IP PBX, like the extension default of a standard customer. Emergency numbers always stay reachable.

The usage cap, the budget and the channel limit are set in the Trunk and usage cap tab, as for any customer: the channel limit counts the IP PBX’s outside calls and the outside calls to its numbers.

Customer space

The customer’s admin sees a very reduced space: its home page (trunk status, channels in use, credentials with the password to show, this month’s usage, numbers), its call log, its rates (its sales rate plan) and its settings, nothing else (see Your SIP trunk in the customer guide). Open the customer’s space, on its page, shows it to you as the customer sees it. The customer shows its password but cannot change it: only you set and renew it.

Its Settings have only three cards: its Monthly budget, which it sets itself (amount, warning only or restriction of outgoing calls); the Usage cap, read only, whose hourly threshold it can lift (the thresholds stay with you, in the Trunk and usage cap tab); the Call restrictions of its IP PBX, where it chooses among the profiles you offer, as you do in the SIP trunk tab. Its standard users, if any, have no access to them.

Troubleshooting

As for other customers: call log, call trace, calls in progress, capture and authentication failures in diagnostics. An IP PBX that fails to authenticate several times gets its address banned: diagnostics shows it and unblocks it.

Through the API: GET and PUT /clients/{client_id}/trunk-sip (permissions trunk.lire and trunk.gerer), GET /clients/{client_id}/acces-ipbx (what the customer sees, client.lire permission).

Call restrictions

Extension call restrictions are set through profiles, which you write and offer to your customers (Settings page, Restrictions tab, /parametres/restrictions). The operator admin edits them; support reads them. The reseller and the customer only see the offered profiles, by their name and explanation, never the zones or rules.

On the customer’s side, the form stays as simple as before: a Restriction list on an extension’s page (see Users) and a Default extension restriction card in its settings (see Settings). Each extension follows the company default, unless it chooses another profile or no restriction; an extension created later follows the default. The restriction follows forwardings to outside numbers.

Restriction profiles

A profile has a name, an explanation (shown to the customer under the list) and, for each zone, Allowed, Blocked or No rule; Everything else says what happens to a number no zone recognises. Emergency numbers of the customer’s country always remain reachable, whatever the profile.

The most specific rule wins. A prefix counts for its length; a category for the length of the prefixes that describe it: premium-rate and short numbers like the country code followed by two digits (+33 8x), landlines and mobiles like the country code followed by one digit, the country like the country code, international like nothing. So an 0899 stays blocked if premium-rate numbers are blocked, even when the customer’s country or Europe is allowed. At equal specificity, a prefix list comes before a category, and blocking before allowing.

Template profiles provided:

TemplateRules
No premium-ratepremium-rate blocked, everything else allowed
National onlycustomer’s country allowed, premium-rate blocked, everything else blocked
Internal onlyeverything blocked, except emergency numbers
No internationaloutside the country blocked, everything else allowed (premium-rate reachable)

A template cannot be modified: Duplicate makes a copy that you rename and set (for example “included = France + Europe”: country and Europe allowed, premium-rate blocked, everything else blocked). Tick Offered to customers to add it to their list; a profile no longer offered stays on the extensions and customers that already have it. Editing a profile updates the customers using it at once; a profile in use cannot be deleted.

The usage cap and the monthly budget (see Instance settings), as well as blocked destinations, remain separate and add to the profiles.

Zones

Two kinds of zones:

  • the categories of the customer’s country, read in its country (see Language and region): Landlines and mobiles in the country (what the usage cap leaves reachable), Premium-rate numbers in the country, Short numbers, Customer’s country (everything that is not abroad) and Outside the country (international);
  • lists of international prefixes (+32, +1212), one per line. A prefix applies in every dialled form: national form for a prefix of the customer’s country, 00 (or 011 in the North American plan) and + elsewhere.

Template zones provided: Europe (European Union, EEA, Switzerland, United Kingdom, Andorra, Monaco, San Marino, Gibraltar), French overseas departments (+262, +590, +594, +596) and North America (United States and Canada, without the Caribbean or the 900 premium-rate code). They can be duplicated; a zone used by a profile cannot be deleted, and editing it updates the customers concerned.

For a French customer, the overseas numbers of the French plan (Réunion, Mayotte, Guadeloupe, French Guiana, Martinique: see Language and region) are part of the country: they belong to Landlines and mobiles in the country and Customer’s country, never to Outside the country, whether dialled 0696… or +596696…. To handle them separately, add to a profile a rule on the French overseas departments zone: more specific than these categories, it wins, in every dialled form.

All these changes are written to the audit log (restriction.gerer).

Premium-rate numbers (SVA)

French premium-rate numbers (SVA: 0800 to 0899, short numbers 3xxx, 118xxx…) have had, since 2015, a service charge set number by number by the service provider: one prefix mixes free numbers, numbers at the price of a normal call, per call or per minute, at different prices. A rate plan by prefix cannot rate them correctly. Kanadr rates them in real time, number by number, at the official rate.

The price of a call to an SVA number

A call to an SVA number costs:

  • the call charge, according to your rate plans, like a normal call, with your usual margin (purchase, sale to the reseller, sale to the customer);
  • plus the service charge, at the number’s official rate: price per call plus price per answered minute, the duration counted to the second. It is passed on as is, the same at purchase, sale to the reseller and sale to the customer: never any margin on it.

A free number (“free” family of the official rate) costs nothing, neither service nor call charge; a number “at the price of a normal call” costs only its call charge. A short number (3xxx, 118xxx) has no international form: no rate plan line covers it, its price is the service charge alone.

The service charge applies to French customers, in an instance that counts in euros (the official rate is in euros); elsewhere, a call to an SVA number is an ordinary call.

Outside the rate plans

The service charge appears in no rate plan: no rate plan, no rate plan export, no screen contains the list of SVA numbers or their rates. Only each rated call shows its two parts:

  • Call log: under each amount, “incl. service” gives the service charge (not under the margin, which it does not change);
  • Export (CSV): the service_amount and service_to_rerate columns, at the end of the line (part_service and part_service_a_revaloriser in French);
  • webhook cdr.month.page: service_amount and service_to_rerate; cdr.month gives each customer’s service_amount total;
  • API and AI assistants (MCP): part_service and part_service_a_revaloriser of each call of the call log.

The amounts (purchase, sales, the customer’s cost) include the service charge: the usage cap and the monthly budget count it.

Number-by-number lookup

The official rate comes from the official register of SVA numbers, which Kanadr’s publisher imports every month into its service. When a call to an SVA number is rated, your instance asks it for the tariff code of that number, and nothing else: the service never gives a list, nor a search by prefix, and limits the number of lookups of each instance. Your instance is recognised by its licence, as for the mobile app’s push gateway: nothing to set. The answer is kept for a few days; a number called often is asked only once.

“Service to re-rate” calls

If the service does not answer, or if the number is not (yet) in the register, the call is rated by a rule by number range:

  • 0800 to 0805: free;
  • 0806 to 0809: price of a normal call (the call charge alone);
  • 081, 082, 089, 3xxx, 118xxx: the call charge alone, without service charge.

The call is then marked service to re-rate (badge in the call log, service_to_rerate column at yes in the export): its amounts are provisional. Your instance takes them up by itself every half hour, for 40 days: as soon as the number’s rate is known, the call is fully recalculated, the mark disappears, and the re-rating is written to the audit log. Beyond that, or to force it, Recalculate prices for a customer over a period (see Rate plans and usage) also queries the service.

Before invoicing a month, check that no marked call remains: filter the CSV export on service_to_rerate.

Server setting

In /etc/kanadr/kanadr.env, usually nothing to set:

# Publisher's SVA rate service; empty: no lookup, the rule by number range alone.
#KANADR_SVA_URL=https://push.kanadr.com
# How long an answer is kept, in days (1 to 30; 3 by default).
#KANADR_SVA_CACHE_JOURS=3

The instance presents its licence; an instance without a publisher’s licence presents the key of KANADR_PASSERELLE_PUSH_CLE, if there is one. Empty address: every call to an SVA number follows the rule by number range and stays marked to re-rate. Restart the service after a change (sudo systemctl restart kanadr).

Desk phones

Kanadr configures your customers’ desk phones remotely: the phone requests its configuration from your instance, which builds it on request from a hardware profile. Kanadr provides the engine; you own your profiles.

Hardware profiles

A profile covers a family of phones. It states:

  • which models it covers, with their SIP accounts and programmable keys;
  • which files the phones request ({mac}.cfg, y000000000000.cfg, cfg{mac}.xml…) and which template produces each one;
  • how to request a resynchronisation (check-sync, resync… event) and a restart (check-sync;reboot=true; empty if the models cannot restart remotely);
  • additional parameters of the profile.

Kanadr ships starter profiles:

ProfileModelsLabel
Yealink deskT31G, T31P, T33G, T44U, T46G, T46S*, T54W, T73U, T73W, T85W, T87Wtested
Yealink DECT (W70B and W60B bases)W73P, W79P Pro, W70B with W73H, W74H, W79H handsets; W60P*, W53P*, W60B* with W56H, W53H, W59R handsetstested
Grandstream HT80xHT802, HT812community

* Models added from the manufacturer’s documentation, not yet tried on real hardware: check the first device before deploying more.

A tested profile is checked by the publisher on real hardware; those in this version are being checked in the field: check the first phone of each model before deploying more. A community profile is provided without guarantee: its values must be checked on your hardware. The number of accounts and keys of each model comes from the manufacturers’ data sheets: correct it in your copy if your hardware differs.

A shipped profile cannot be edited: duplicate it, then edit the copy. Each saved version goes into the history and can be restored. A Kanadr update never overwrites your copy; when a more recent version of the original profile is shipped, the copy says so and shows the differences, template by template.

Templates

Templates use Jinja syntax. An unknown variable is an error (not an empty value): the preview locates it, line and column, before you save. In an XML file, values are escaped.

Available variables:

VariableContent
appareilmac, modele, nom, numero_de_serie, mot_de_passe_admin (administrator password of the phone’s interface, specific to the device), mot_de_passe_utilisateur (the password of the interface’s user account, derived from the previous one)
lignesone per account: rang, combine, poste, nom, identifiant, mot_de_passe, domaine
serveurhote, port, transport (udp, or tls if the customer chose encrypted calls and the profile allows it), proxy_sortant (absent when the customer’s domain is under the instance suffix: the domain is then also the server; the instance host otherwise, as in the SIP settings of the user page)
clientnom, fuseau (IANA), langue (fr, en)
touchesposition, nature (ligne, supervision, numero_abrege), valeur, libelle, ligne
annuairenom, url, entrees (nom, numero): the customer’s extensions and shared directory
provisionnementurl (provisioning address), identifiant (the MAC), mot_de_passe: the device’s own HTTP credentials, to set in the phone for auto provisioning (the delivered Yealink profiles: static.auto_provision.server.username and .password)
parametresstacked additional parameters (cle, valeur)
parametres_supplementairesthe same, as key = value lines

Filters: yealink_transport, yealink_langue, yealink_touche, yealink_fuseau, yealink_decalage, yealink_heure_ete, grandstream_transport, grandstream_fuseau, grandstream_fuseau_perso. The SIP password is read on each request from the phone: a renewal reaches it on its next read.

The daylight saving time sent to phones follows the customer’s time zone (embedded IANA database, rule of the current year; daily resynchronization). Yealink (yealink_heure_ete, lines after local_time.time_zone): in Paris, the France(Paris) time zone name and the phone’s automatic daylight saving time, as in production; elsewhere, the computed rule (local_time.summer_time = 1, by week, local_time.start_time, local_time.end_time, local_time.offset_time in minutes), or local_time.summer_time = 0 without daylight saving time (Arizona, Saskatchewan, Hawaii). Grandstream: P64 takes the predefined value of Central European time or London, otherwise customize, with the POSIX rule in P246 (grandstream_fuseau_perso, for example EST5EDT4,M3.2.0/02:00:00,M11.1.0/02:00:00). The bundled profiles move to their next version: an operator’s copy keeps its former template until it takes the new version.

Additional parameters

One key = value line per parameter, on three levels that stack: the profile, then the customer, then the device. For a given key, the most precise level wins. These raw parameters are set by the operator and resellers; the customer admin does not see them.

A customer’s devices

A device is a phone (or a DECT base) of a customer, identified by its MAC, with one or more accounts: one of the customer’s extensions per rank (per handset on a DECT base). A DECT base can carry the extensions of several users; removing one handset leaves the others alone. A MAC belongs to one customer only.

The operator, resellers and the customer admin add and set up a customer’s phones; the holder of an extension sees theirs. The assistant and MCP only read.

Putting a phone into service

Each device has its own HTTP credentials: its MAC and a password, revealed on request (each reveal is in the audit log) and renewable. In the phone’s web interface, auto-provisioning setting:

  • address: https://<portal address>/api/v1/provision/materiel/ (Settings › Hardware, Connecting the phones card, Copy button);
  • username and password: those of the device.

On the customer’s network, DHCP option 66 can give the same address. Each request from the phone is recorded (file, response, address, agent): the latest ones are shown with the device, for troubleshooting. A 401 response means missing or wrong credentials, a 404 response a file the profile does not serve.

Certificate: factory Yealink phones silently refuse an ECDSA certificate chain. Serve the portal address with an RSA certificate (Let’s Encrypt: certbot … --key-type rsa), whose chain goes up to ISRG Root X1.

Phone administrator password

Recent Yealink firmware refuses to keep the factory password (admin): without a setting, the phone asks for a new password on its screen at first start-up, and the installation is no longer automatic. Kanadr therefore draws, for each device when it is added, its own administrator password (four groups of four letters and digits separated by -, without characters that look alike), encrypted and never written to the logs, and derives from it the password of the interface’s user account. The device’s file sets them in the phone from its first read, RPS first contact included: no more prompt at start-up. A device added before this version gets its own at its next request.

To open the phone’s web interface (or its advanced settings on screen): user’s record, Phones tab, the phone’s ⋯ menu, Manual configuration, Phone administrator password line, Show (each display is written to the audit log). The operator, the reseller and the customer’s admin can read it; a regular user, even the extension’s holder, cannot. Renew credentials does not change it (it is what opens the interface to enter the new ones); removing then adding the device again draws a new one.

The shipped Yealink profiles (version 6) write it this way: static.security.user_password = admin:{{ appareil.mot_de_passe_admin }}, then the same key for user:. In a copy, take these two lines over (Show differences); if you renamed the accounts (static.security.user_name.*), put their new names before :.

Resync and restart

In the phone’s ⋯ menu (user page, Phones tab), Resend the configuration asks the phone to read its configuration again, Restart to restart (a call in progress on this phone is cut). Kanadr has the telephony engine send a NOTIFY carrying the profile’s event to the account of the device’s line 1 (a DECT base receives only one). A phone that is not registered would receive nothing: the portal answers “the phone is not registered”, and it will read its configuration at its next boot. A softphone registered on the same extension also receives the NOTIFY and ignores it.

The operator, resellers and the customer admin resend the configuration and restart; the extension holder can resend the configuration to their phone, not restart it. Each request is in the audit log.

Yealink’s RPS tells a new phone, at its first boot, where to fetch its configuration: registered beforehand (MAC and serial number), it configures itself, without anyone touching its interface.

Once, in YMCS (your Yealink account):

  1. Integration › API: create a key pair (AccessKey ID and AccessKey Secret);
  2. RPS › Servers: create a server whose address is the provisioning one, https://<portal address>/api/v1/provision/materiel/, with ISRG Root X1 (the root of Let’s Encrypt’s RSA chain) as trusted certificate.

Then, in Settings › Hardware, Connecting the phones card, Yealink RPS block, Change the keys: the key ID, the secret, the account region (Europe, United States, Australia) and the exact name of the RPS server. The secret is encrypted and never shown again; when left empty, the saved one is kept. Test the connection asks YMCS for a token and looks for the server: a refusal gives YMCS’s message.

When adding a Yealink with its serial number, the Register with the Yealink RPS box (ticked by default) registers it; a refusal from YMCS (device already registered elsewhere, for example) does not prevent adding it: the phone shows the failure and its reason, and Register with the RPS tries again. Removing the device also removes it from the RPS. The keys are for the operator only: resellers and customers do not see them.

First contact

The RPS server only passes the phone the username and password entered in YMCS (RPS › Servers), the same for all your phones; Kanadr, however, asks for each file the device’s MAC and its own password. For the phone to configure itself, copy this username and password once into the Yealink RPS block (Change the keys, RPS server username and RPS server password fields). The password is encrypted and never shown again; when left empty, the saved one is kept; emptying the username removes first contact. Without this setting nothing changes: the registered phone is refused (401) until its credentials are entered by hand.

What happens, for a phone added with its MAC and serial number and registered with the RPS:

  1. once plugged in, the phone asks the RPS, which gives it the provisioning address and the shared username;
  2. with this username, Kanadr serves the files that carry this phone’s MAC (<mac>.cfg, <mac>/annuaire.xml…); common files (y000000000000.cfg, y000000000000.boot), which do not say which phone is asking, get a 404 so that the phone moves on to its <mac>.cfg file;
  3. that file sets the phone’s own credentials (the device’s MAC and password) for auto provisioning, the address staying the one received, and its administrator password (no more prompt on screen, see above);
  4. from its first request with its own credentials (the directory, the next resync), the shared username is refused for this phone.

Renewing a phone’s credentials does not reopen first contact; removing it and adding it again does (it is a new device). The device’s requests show first contact: shared username accepted, or refused and why (wrong password, phone not registered with the RPS, already configured with its credentials).

Risk limit: the shared username and a MAC only give the configuration of a phone that is added, registered with the RPS and not yet plugged in. A phone that has already read its configuration only hands it out against its own credentials. So add phones shortly before installing them.

In the portal

Settings › Hardware starts with the Connecting the phones card: the provisioning address with Copy, the RSA certificate reminder and, for the operator, the Yealink RPS keys.

Below, the table of hardware profiles, shipped and copies: name, brand, models (beyond four, +N shows the others), label (Tested, Community or Copy; hovering it recalls what it means), number of devices using it and version. A copy whose original profile has a newer version shows Update shipped. Beyond ten profiles, a search (name, brand, model code or name) and a Brand filter appear above the table.

Clicking a profile opens its record below the table:

  • at the top, the name, label, brand, version and devices; Duplicate, and on a copy Delete (impossible while devices use it); Close;
  • Models covered: code, accounts and keys of each model; on a copy, each model can be edited, added or removed;
  • History of a copy’s versions, with Restore;
  • Advanced, folded by default:
    • Template and preview: the template shown, next to it the file produced for a fictitious device of the chosen model; Preview recomputes it with your unsaved changes;
    • Served files: the requested names and the resync and restart events; on a copy, each served file (requested name, template, type) can be edited, added or removed;
    • Additional parameters of the profile (an unreadable line is flagged before saving).

On a copy, Save, at the bottom of the record, creates a version (the “What changes” field describes it in the history); when a newer version of the original profile is shipped, Show differences shows them, template by template. Resellers and the operator’s team members who are not admins see this tab read-only. An extension’s phones are set up in the user’s record, Phones tab.

A customer’s additional parameters are set in its record, Trunk and usage cap tab, Desk phones card: the operator and the customer’s reseller see it, the customer’s admin does not.

Through the API

Everything goes through the public API, materiel tag: profiles (listerProfilsMateriel, dupliquerProfilMateriel, modifierProfilMateriel, apercuMateriel, differencesProfilMateriel…), a customer’s parameters (lireParametresMaterielClient, reglerParametresMaterielClient), devices (ajouterAppareil, ajouterLigneAppareil, retirerLigneAppareil…) their credentials (revelerIdentifiantsAppareil), remote commands (resynchroniserAppareil, redemarrerAppareil) and the RPS (lireRps, reglerRps, essayerRps, retirerRps, declarerAppareilRps).

Mobile app

The app is on Google Play (Android); the iPhone version is not yet on the App Store.

A single, neutral app for all operators, on iOS and Android. It is set up by scanning a QR code that points it to your instance, and reuses the browser phone (WebSocket relay, TURN server).

Getting the app

Android. The app is on Google Play, under the name Softphone Pro:

  • the portal link, https://<your portal>/telephone/telecharger/android, leads to its Google Play listing (like /windows and /macos lead to the installers of the desktop app): give it as it is to your customers, together with your portal address; it does not require signing in. It is a fixed address that does not depend on the KANADR_BUREAU_URL setting; step 1 of Add a device, Mobile choice, in the portal, offers the same link;
  • the Downloads page, Android card, gives the Open Google Play button.

iPhone. There is no app yet: the App Store is not open. Use the browser phone (PWA).

Direct install (APK)

For those who do not use Google Play, the publisher also puts the Android APK on its server, to install directly. The Downloads page, Android card, gives the Download the APK link with the file’s version, size, date and SHA-256 checksum. The portal does not lead to this file: give it only to those who need it.

On the Android phone:

  1. open the link in the phone’s browser and save the file;
  2. open it: Android asks you to allow installing apps from this source (the browser or file manager you used), a setting to grant once, which you can remove afterwards;
  3. tap Install, then open the app and scan the QR code from the extension’s page (see Setting up the app).

To check the file before installing it, compare its checksum with the one on the Downloads page (sha256sum Telephone-android.apk on a computer). Two limits:

  • the APK does not update itself: to move to a new version, download it and install it over the old one; the app and its configuration are kept;
  • an APK installed directly does not update from Google Play (the two are not signed with the same key): to move to the store version, first uninstall the APK, then install the app from Google Play. The device’s configuration is then lost: plan a new QR code.

Setting up the app

The Mobile app feature is on by default (Settings, General tab, Features card). The Phones tab of the user page then offers, in its Add a device block, Mobile choice, Show the code:

  1. the user opens the app and scans the QR code;
  2. the app exchanges this code, only once, for a device token on behalf of the extension’s owner, then reads the extension’s configuration;
  3. the QR code is valid for one day; once scanned, it no longer works.

The device token only gives access to what the phone does (extension configuration, contacts, call log, voicemail, the owner’s forwarding), never to the rest of the portal. Your instance keeps only its fingerprint. The extension must have an owner account.

Apps activated on an extension appear in the Extension devices list, with their platform and status (Connected, or Reachable when it sleeps and will be woken). Disconnect the app, in its ⋯ menu, cuts it off (lost phone, user leaving): its token no longer works and it is no longer woken. Renewing the SIP password (SIP settings and troubleshooting, at the bottom of the tab) also voids QR codes not yet scanned. Every display of the code, activation and revocation is in the audit log.

The app also accepts manual entry: Enter a code, under the scanner, takes the pasted setup link (the QR code’s).

Incoming calls on a sleeping phone

A sleeping phone keeps no connection to your instance: it must be woken. The app registers its push token with your instance; when a call must ring the extension:

  1. your instance asks the shared push gateway, hosted by the publisher, for a wake-up, which it passes on to Apple or Google;
  2. the woken app shows the call and registers;
  3. your instance rings it along with the extension’s other devices (desk phone, browser phone): the first to answer takes the call, the others stop. The woken app can join the call as long as it rings elsewhere, 60 seconds at most: an Android phone woken with the app closed often takes more than 10 seconds to register.

If no device of the extension was registered, the caller hears the ringback tone during the wake-up, 20 seconds at most (adjustable). Without an answer, the call follows its usual route (no answer, voicemail).

If the call is answered elsewhere (another device of the extension, another group member, voicemail) or the caller hangs up before the woken app has registered, your instance tells it through the same gateway, and the app stops ringing at once; it records a missed call only if the caller hung up without anyone answering. For its part, a registered app that does not receive the call within 5 seconds stops showing it. On iPhone, this end of call will come with the iPhone version of the app: your instance will send it as a silent notification, never as a call wake-up (which an iPhone must always ring for). Apple may delay or drop such a notification, so the app will keep its own timeouts. An older gateway cannot send it to an iPhone: your instance logs it (réveil mobile), without an error, and keeps sending it to Android.

Only the call identifier, your instance’s address, and the caller’s number and name go through Apple or Google, for the phone’s call screen.

A forwarded call (forward all calls) does not wake the mobile.

A ring group also wakes its members’ mobiles:

  • all at once: the other members ring right away, and the woken app joins the call as soon as it is ready; the first to answer takes the call. If no member is reachable (and the group has no external number), the caller waits while the app wakes up, as for an extension;
  • one after the other: the app is woken as soon as the call enters the group, and rings when its member’s turn comes;
  • group with an early answer (announcement played while ringing): an app woken while other members are already ringing does not join the call; it rings only if no member was reachable.

The group only wakes members who have already registered the app; groups are read again each time the call flow is published.

Missed calls and voicemails

The app leaves a Missed call notification when it rang without being answered (neither on another device of the extension, nor declined), and New voicemail when a message arrives in the extension’s box. For a phone that could not ring (offline, woken too late, app closed by Android), your instance sends the notification itself through the push gateway, like a wake-up:

  • missed call: when the CDR arrives for a call received by an extension that has a mobile device (incoming to that extension, or a call from a colleague), left without being connected and without a message (the same rule as the call log); a call answered on another device of the extension is not notified;
  • voicemail: when the message is left in the box of the extension with the same number.

The app ignores the notification of a call it has already notified itself (same call identifier). Only the kind (missed call or voicemail), its identifier, your instance’s address, the caller’s number and name, and the time go through Apple or Google. On Android, it is a high-priority FCM message that the app shows in its Missed calls and Voicemail categories; on iPhone, an ordinary notification (not a call wake-up) that the iPhone will show itself with the app’s texts, in English or French depending on its language; it will come with the iPhone version of the app. Hunt groups are not notified by the instance: only the app that rang records the missed call (on iPhone, the app will show no notification for these calls).

Nothing to set: the same gateway, the same licence (or key) as for wake-ups. A gateway older than these notifications answers that it does not know them: your instance logs it (notification mobile) and the app keeps its own notifications.

Setting up

Nothing to do: your instance talks to the publisher’s push gateway (https://push.kanadr.com) and identifies itself with its license, the one on the License card of the Settings. As soon as a license is installed, the app can register and extensions are woken; without a license, the app cannot register and no extension is woken (the service log says so at startup).

The gateway only knows what your instance’s license says (instance identifier, operator name, end date) and the wake-ups it forwards. It accepts an expired license during the 30-day grace period; after that, it refuses wake-ups: the open app still receives its calls, but a phone asleep is no longer woken.

The settings remain, in /etc/kanadr/kanadr.env, for a gateway other than the publisher’s or an instance without a license (the publisher then gives you a key):

# Push gateway; empty: no wake-up, the app cannot register.
#KANADR_PASSERELLE_PUSH_URL=https://push.kanadr.com
# Key of the instance at the gateway; absent: the instance's license.
#KANADR_PASSERELLE_PUSH_CLE=
# Wait for the woken app to register when no device of the extension is registered
# (2 to 30 seconds; 20 by default).
#KANADR_MOBILE_ATTENTE=20

Restart the service after a change.

Devices of an extension

The apps registered on an extension are visible through the API (GET /clients/{client_id}/postes/{poste}/mobiles), with their platform, version and last registration, never their push token. The customer’s admin, you and the customer’s reseller can remove one (lost phone, departing user): it is no longer woken. An uninstalled app is removed on its own, as soon as Apple or Google refuse its token.

Troubleshooting

SymptomWhere to lookWhat to do
The app cannot register (“not available on this instance”)Settings, License card; service log (journalctl -u kanadr): réveil mobileNo license installed: load the publisher’s; or KANADR_PASSERELLE_PUSH_URL empty
The app does not ring, phone asleepService log: réveil mobileGateway unreachable, license expired more than 30 days ago or key refused: check the license, then KANADR_PASSERELLE_PUSH_URL and …_CLE if set
The caller waits, then reaches voicemailSame logThe app did not register in time: phone network, notification permissions
The app registers but does not ringDiagnostics, registrations of the extensionThe app’s contact must carry its token (pn-prid parameter)
No missed call notification with the phone offService log: notification mobileGateway without notifications (to update), licence or key refused; on the phone, the Notify… switches of the Status screen and Android’s notification categories

Desktop app (prototype)

Prototype. The desktop app is on trial, for Windows first. The browser phone remains the normal way to make calls from a computer.

A single, neutral app for all operators: a window around your instance’s browser phone (/telephone/), adding what a browser cannot do: incoming call notification with Answer and Decline with the browser closed, an icon in the notification area (line status, missed calls), tel: and callto: links, launch at sign-in. It also suits Firefox users, as Firefox cannot install the phone as an app. The customer guide describes it for your users (Desktop app page).

What your customers see

  • The displayed name is Téléphone, like the app installed from the browser; no publisher name.
  • On first launch, the user pastes your portal address (your instance’s), or any portal link; the app checks that it answers, then opens the phone, where they sign in as usual (password, SSO, passkeys).
  • Then your brand: the displayed name titles the window and the icon tooltip; the icon you uploaded (PNG) replaces the neutral icon near the clock.

Nothing to turn on or set on your instance: the app loads the instance’s phone, and every update of your instance brings its new features.

Distributing the app

The installers are published by the publisher on its server, never by your instance, and your portal offers them by itself: on Windows and Mac, the browser phone offers the desktop app instead of installing from the browser. Status and My account, Desktop app section: Download for Windows and Download for Mac (the computer’s system first), with the portal address to paste on first launch; the download icon in the left column leads there. Linux, phones and tablets keep installing from the browser; nothing shows in the app itself.

These links go through your instance, which redirects to the latest published version; they do not require signing in. Give them as they are to your customers (your website, an email), together with your portal address:

  • https://<your portal>/telephone/telecharger/windows: the Windows installer (…-setup.exe);
  • https://<your portal>/telephone/telecharger/macos: the Mac image (.dmg, Intel and Apple processors).

Where they lead is a server setting (KANADR_BUREAU_URL, see Server settings); the default, the publisher’s server, is fine.

The Windows installer installs per user, without administrator rights; /S installs it silently (scripted deployment). As long as it is not signed, Windows shows a warning (“Windows protected your PC”, More info, Run anyway): let your customers know. On a Mac, the app is signed and checked by Apple (notarized): it opens without a warning.

The app updates itself, from the publisher’s server, with signed packages; never during a call.

Security

  • Only your instance’s address can use the app’s features (notification, icon, received numbers); any other site opens in the computer’s browser.
  • An SSO sign-in goes through the app window, for the duration of the sign-in only.
  • The app sees no password and no token: the session stays the phone’s, as in the browser. Its log (bureau.log, in the app folder) contains none.

Prototype limits

  • Windows: the notification buttons respond while it is on screen, not from the notification center.
  • Linux: later.

Diagnostics

The Diagnostics page helps you understand and fix an incident without access to the server.

Health

The state of the installation: installed version, telephony engine (responding or not, calls in progress, time since it last started, to the minute), database, last call received, abandoned webhook deliveries, status of customer trunks.

For an operator with a shared trunk, the Shared trunk row gives its status, its provider, the number of customers going through it and its last refusal, with Re-register: an outage affects them all.

For the operator, two more rows concern the computer phone: Computer phone (“ready”, or “pending” while the internal SIP profile has not been restarted: the PBX does it by itself as soon as no call is in progress) and TURN server (“not set” without KANADR_TURN_HOTE, otherwise whether it responds).

When the license expired more than 60 days ago, the Calls line says so (“cut since … (license)”): new calls are refused, except emergency numbers, calls in progress continue; a valid license restores them at once (see License).

If the usage cap alert no longer reaches you, neither by email nor by a subscribed webhook (set to None, see Fleet alerts), the Usage cap alert line says so (“off”): fraud could go unnoticed.

When a new version is available, the health section says so (“update available”). An operator administrator installs it from here with Update (see Updates): only Kanadr is updated, the telephony engine keeps running; support sees the version but cannot install it.

When a system patch (kernel, library) is waiting for the machine to restart before it takes effect, the Machine line says so (“restart to plan”) with the date and the packages concerned: see Restart to plan.

How to read the version: 0.9.1 is the product version, which goes up with each delivery (minor for new features, patch for fixes only); the package adds the date and commit of its build (0.9.1~git20261102….abc1234).

  • Re-register restarts a trunk; its status updates in a few seconds.
  • Reload configuration reloads the telephony engine’s configuration for the whole installation, without cutting calls in progress.

Live calls

Calls across the whole installation: customer, caller, called party, status. Hang up ends a stuck call. A customer’s call log shows, for each past call, its Trace: who hung up, who it was connected to, the media. When the far end refused the call (the trunk provider, for example), the Refused by the far end line gives the SIP code it returned and its reason phrase, for example “SIP 403 · Forbidden”: this is what to pass on to its support.

Audio quality per leg

For choppy audio, gaps or one-way audio, the trace gives the audio of each leg of the call: the caller’s and the one it was connected to (the SIP trunk of an outgoing call, the extension of an incoming call), one column each. These are the telephony engine’s measurements on what it receives from each side; what the other party receives is not measured.

  • Codec: the negotiated codec, its sampling rate and the packet duration. Audio conversion says whether the engine converts the audio between the two legs (different codec or sampling rate). The instance’s softphones (browser, computer, mobile) speak Opus with the engine; desk phones, SIP trunks and connectors speak G.711 (PCMA, PCMU in North America). A call between a softphone and a SIP trunk therefore shows an audio conversion: this is expected. The engine keeps a jitter buffer on the Opus legs.
  • Packets received / sent, Flaws (loss rate): packets missing from the sequence.
  • Skipped packets: intervals where no packet arrived in time (loss, delay, but also silence or hold: nothing abnormal on its own). Discarded packets: received and then dropped to catch up on a delay.
  • Comfort noise received / sent: comfort noise packets in place of audio. An extension that receives them from the engine hears a 20 ms gap per packet.
  • Jitter min–max, Mean interval (usually 20 ms), MOS (quality), Jitter buffer.

To look at flags a leg whose loss rate reaches 1%, whose jitter reaches 30 ms, that sent no audio while the engine was sending it some (one-way audio), or to which the engine sent comfort noise. The damaged leg tells you where to look: the site’s network for an extension, the provider for a SIP trunk. Calls made before the version that brings these measurements only have the caller’s leg.

Live capture

To understand a failing call or a phone that does not register: choose the customer, Start the capture, then place the call or restart the phone. The SIP messages and telephony engine logs that concern this customer are shown as they arrive, for five minutes at most. Stop ends the capture, Download saves the text to pass on to support. Nothing is kept on the server; each capture is recorded in the audit log.

SIP ladder draws the SIP messages as a ladder diagram: one column per address (the telephony engine and its peers: phones, trunk), one arrow per message, in red for a failure (4xx, 5xx, 6xx). Pick a dialog to follow a single call or registration; click an arrow to read the whole message. Download the pcap gives a file to open in Wireshark (Telephony, SIP Flows): the messages are as the telephony engine sent or received them, already decrypted for TLS; the IP and UDP or TCP headers are rebuilt, and the media (RTP) is not included.

Restart the telephony engine

As a last resort (operator admin only). By default, the restart waits for calls in progress to end and refuses new ones meanwhile; tick Right now, cutting ongoing calls to cut calls in progress. The server is back in about a minute.

Audit log

The Audit log, a tab of the Settings page (the only tab for a reseller), shows who did what, when and from where: sign-ins (successful and denied), creations, changes, diagnostic actions. Filter by action (start of the name: utilisateur., connexion) or on denials; click an action for its details. Entries can be neither changed nor deleted. Everyone sees their organization and what depends on it: the operator everything, a reseller its customers, a customer admin their company. Automatic IP address bans, which are numerous, are hidden by default: tick Automatic bans to see them; those made by hand are always shown.

A customer’s softphone

When a user’s computer phone does not connect or the audio is poor, ask them for their softphone’s Diagnostics screen (see Computer phone): WebSocket and registration status, last SIP response, microphone and its permission, a summary of the last call (packets, losses, jitter, ICE path), and the log of the latest events, which they send you with Export the log. SIP messages in it carry no password or authentication header.

Banned IP addresses

After too many failed SIP registrations from an address (a misconfigured phone, or a bot looking for passwords), the address is banned for SIP and RTP only: the portal stays reachable. The ban ends on its own.

The list shows the reason, the account and the device involved: a misconfigured softphone at a customer blocks their whole site, and the diagnostics show it. Unban lifts the block right away, once the device is fixed. The customer admin also sees their site’s blocked address, the extension and the faulty device in their users’ Phones tab, and can unblock it themselves (Unblock the address); they never see the account or device of another customer behind the same address.

Ban an address bans it by hand, for the duration chosen (the one in the settings by default): a bot spotted in the capture, a device to cut off. An address in the allow list or of a trunk cannot be banned.

Ban settings: number of failures, window and duration (by default 10 failures in 5 minutes, banned for one hour), and an Allow list of networks that are never banned. Trunk networks, addresses with a registered phone and those of a recent portal sign-in are already spared.

Support access

The vendor’s support team has an account on your instance, but it is closed by default: it only gets in if you open it. An admin of your team chooses a duration (from 4 hours to 7 days), then Open access; Close access cuts it at once. When the time is up, it closes by itself. Openings, closings and every action of the support team are in the audit log.

On the machine, the command kanadr acces-assistance ouvrir|fermer|etat does the same.

Instance settings

These settings are on the Settings page: the operator admin changes them, support can view them. They are grouped in tabs, each with its own address:

TabSettings
General (/parametres)Brand, Customer domains, Features, License, Updates
Language and region (/parametres/region)Language and region: language, time zone, country, currency
Telephony (/parametres/telephonie)Trunk profiles, Shared trunk, Usage cap, Customer’s monthly budget, Blocked destinations
Restrictions (/parametres/restrictions)Restriction profiles and zones for extension calls
Sign-in and security (/parametres/securite)Sign-in from your portal, Sign-in with your directory
E-mails and alerts (/parametres/emails)E-mails (SMTP), Fleet alerts, Email templates
AI (/parametres/ia)Configuration assistant, Voicemail transcription, Text-to-speech
Personal data (/parametres/donnees)Retention periods: see GDPR
Audit log (/parametres/audit)See Audit log; the only tab for a reseller

Those of the machine (database, public address, text-to-speech) are in the service file: see Server settings. Troubleshooting stays on the Diagnostics page.

Features

Two features are turned off on a new instance, so as not to clutter the portal:

  • Resellers: the Resellers menu, the reseller column in the customer list and reseller sale rate plans. It can no longer be turned off while a reseller exists.
  • AI assistant: the assistant’s bubble at the bottom right of the portal and its button on the call flow, for your team, resellers and customer admins, and the assistant settings. Turned off, none of it appears; its settings (key, budgets) are kept.

A third one is turned on on a new instance:

  • Voicemail: extension voicemail boxes, the users’ Voicemail tab, the Voicemail module of the call flow, the Voicemail screen of the phone. Turning it off (after confirmation) disables every box: callers can no longer leave a message, and checking messages by phone answers “service unavailable”. The boxes’ messages and settings are kept; turning it back on gives each box its previous state back. A call flow exit that led to a voicemail box is flagged in the editor.

A fourth one is turned on on a new instance:

  • Mobile app: the app’s setup QR code in the Phones tab of the user page (Mobile app). Turning it off suspends apps already activated; turning it back on restores them.

Turned off, a feature disappears from the portal for every account, and the API refuses what depends on it.

A fifth one is turned off on a new instance, and turned on when updating an instance whose transcription service was already set up:

  • Voicemail transcription: the Transcribe messages to text option of voice mailboxes and the message’s text in its email. It can only be turned on once the transcription service is set up; while it is on, that service cannot be removed: turn it off first. Turned off, the option disappears from mailbox settings (customer, user, your team), no message is sent to the service and the email goes out without text. Each mailbox’s choice is kept, including one imported from a previous PBX, and comes back when it is turned back on.

A sixth one is turned off on a new instance:

  • Sell raw SIP trunks: customers of type SIP trunk, with no extensions and no call flow, who receive their numbers on their own IP PBX (Raw SIP trunk). Off, nothing of it shows in the portal; on, the SIP trunk type is added to the New customer form. It cannot be turned off while such a customer exists (through the API: trunk_sip field of PUT /organisations/{id}/fonctions).

Customer domains

The domain suffix is a subdomain of yours (voip.operateur.exemple), with a wildcard DNS record (*.voip.operateur.exemple) pointing to the instance. A customer is then created with its identifier alone: client gives the SIP domain client.voip.operateur.exemple, which its phones register to. You and your resellers see it at creation. A full domain, with dots, is still accepted as is (taking over an existing customer). Empty: a full domain at each creation. Changing the suffix does not affect existing customers.

Trunk profiles

A profile gathers what all of a provider’s trunks share: its name (“Provider A”), its server, the number format, the P-Asserted-Identity host and its networks. New profile, then Apply a template… to prefill the national (0…) or E.164 (+…) format.

On a customer’s page, a trunk based on a profile only asks for the username, password and main number. Changing a profile updates every trunk based on it: their gateway is reloaded if the server changes, their outbound routes if the format changes. A profile still in use cannot be deleted.

Usage cap

Protection against a hacked phone or SIP account: each customer’s outgoing usage, at purchase price excluding tax, is counted over a rolling hour and over a rolling day.

  • At 80% of a threshold, an alert e-mail goes to the operator’s and the customer’s reseller’s alert addresses (or by webhook, depending on the channel they chose), and to the customer’s admins.
  • At the threshold, the customer’s outgoing calls are restricted to landlines and mobiles in its country (in France 01 to 05, 06, 07, 09); emergency numbers remain reachable, and call length is not limited. A second e-mail reports it.
  • The restriction stays until it is lifted, on the customer’s page (Trunk and usage cap tab, Lift the restriction): the hourly threshold is lifted by the customer admin or by you, the daily threshold by you only (not by the reseller). The window’s count starts again from the lift.

The Usage cap card sets the default thresholds (€5 per hour and €20 per day at installation; 5 and 20 in the installation’s currency). On a customer’s page, the same card shows its usage and thresholds, and lets you give it others; empty, the instance’s apply. Calls without a purchase price (no purchase rate plan) are not counted.

Thresholds and usage are at your purchase price: only you see them as amounts. The reseller and the customer, who know their usage at their own price, could work out your margin from them: the card, the API, the audit log, the alert e-mail and the webhook only tell them the share of the threshold used, as a whole percentage (“62% of the cap”, 100% at the threshold and beyond). In the usage cap alert e-mail template, the {{ consommation }} and {{ plafond }} variables are therefore filled in for you only; {{ pourcentage }} is for everyone: wrap the amounts in {% if consommation %}…{% endif %}.

Customer’s monthly budget

Next to the anti-fraud cap, each customer can have a monthly budget: an amount excluding tax at the customer’s selling price (the amounts of its call log), counted over the calendar month in its time zone. The customer sets it in its Settings; you, or its reseller, set it on its page (Trunk and usage cap tab, Monthly budget card). Support reads it.

  • At 80% and then at the budget, an e-mail goes to the customer’s admins, once each per month, with a copy to the operator’s and the reseller’s alert addresses (or by webhook, depending on the channel they chose).
  • If the Restrict outgoing calls at the budget box is ticked, its outgoing calls are restricted to landlines and mobiles in its country at the budget (emergency numbers always reachable), until the 1st of next month or a lift (Lift until the end of the month) by the customer admin, you or its reseller. Otherwise, the budget only alerts.
  • The budget and the usage cap are independent: a customer can be restricted by both, and lifting one leaves the other in place.
  • Settings, restrictions and lifts are in the audit log (budget.regler, budget.restreindre, budget.lever). The assistant and the MCP read it without changing it.

Brand

The name, colors, logo and icon your customers see: portal, sign-in page, phone installation page, mobile app, desktop app and emails sent (see Email templates).

  • Display name: empty means your organization’s name.
  • Accent color: the color of buttons and links. A color that is too light, on which the white text of buttons would be unreadable, is refused.
  • Menu color: the side menu background. The menu text, light or dark, and the active entry are derived from it, to stay readable. The preview shows the result before saving.
  • Text color: the color of all portal text. It must stay very dark (contrast of at least 7 on the page background), otherwise it is refused; subdued text (hints, labels) is derived from it, lighter.
  • Icon: the browser tab and installed portal icon. Square PNG of at least 192 pixels per side (512 recommended), 256 KiB at most. Without an icon, the name’s initial on the accent color. The logo is not reused: often wide, it would be unreadable at 16 pixels.
  • Logo: PNG, JPEG or WebP, 256 KiB at most, shown 28 pixels high on the menu background. Without a logo, a square in the accent color.

Next to the menu preview, a sign-in page preview shows the name, the logo, the accent color (Sign in button) and the text color before you save.

Changes apply immediately, for everyone. The portal installed on a phone (see Home) carries this name and this icon.

Language and region

The Language and region tab gathers your organization’s language, time zone and country, and the installation’s currency. Each customer sets its own language and time zone in its Settings; its country is set there by you or by its reseller (open the customer’s Settings), the customer sees it without being able to change it.

Language: French or English, for your team (portal, invitations, forgotten password) and, by default, for customers created afterwards. Each customer can set its own, and each account its own in My account. A customer’s language also sets the voice of its announcements, voicemail and conference rooms (French voice, or Callie in English). The English text-to-speech voice is optional: KANADR_VOIX_PIPER_EN (an English Piper model); without it, a customer set to English uploads recordings, unless the Google voice is used (see Text-to-speech).

Time zone: your organization’s, Europe/Paris by default, inherited by resellers and customers created afterwards; each can set its own. It sets the opening hours of call flows, the dates shown in the portal and announced by voicemail, how months are split (usage, fleet export, end-of-month webhook) and the day of the license report. A customer’s published opening hours switch to its new time zone at once.

Country: your organization’s, France by default, inherited by resellers and customers created afterwards; each can set its own (D124). It sets its customers’ numbering plan: emergency numbers always reachable (which no extension or module can use), the national format of dialled and entered numbers, short and premium-rate numbers, the landlines and mobiles that stay reachable at the usage cap and the budget. Supported countries:

CountryDiallingEmergency numbers
France0… (9 digits), international 00…112, 15, 17, 18, 114, 115, 119, 191, 196, 197, 116000
Belgium0… (8 digits, 9 for 04xx mobiles), international 00…112, 100, 101, 1733, and the free help services 102 to 104, 106 to 108, 110, 116000, 1712, 1813 (with their long numbers)
Switzerland0… (9 digits), international 00…112, 117, 118, 144, 145, 147, 143, 142, 1414, 1415
United Kingdom0… (9 or 10 digits), international 00…999, 112, 18000, 111, 101, 116000, 116111, 116123
United States, Canada10 digits, or 1 and 10 digits; international 011…911, 988

The number is always stored in E.164 (+32 471 12 34 56). A customer’s country is set by the operator or its reseller, never by the customer: it decides which destinations stay reachable when its cap triggers. Changing a customer’s country republishes its routes at once; it is refused while an extension or a module uses one of the new country’s emergency numbers (a French company’s 100, in Belgium), while published business hours close on a public holiday that does not exist in the new country (14 July, in Belgium: untick it and publish first), or while forwardings or external numbers of its call flow, dialled in the former country, are saved: remove them first. Telemarketing blocking (ARCEP ranges) only applies to a French customer. The trunk’s country is set separately, on the trunk or its profile.

French overseas numbers. For a French customer, the numbers of Réunion and Mayotte (0262, 0263, 0269, 0692, 0693, 0639), Guadeloupe (0590, 0690, 0691), French Guiana (0594, 0694) and Martinique (0596, 0696, 0697) are part of the country. They are dialled and shown like a national number (0696 12 34 56), stored under their territory’s country code (+596 696 12 34 56: call log, directory, blocked numbers, rate cards, which price them by the +596 prefix) and sent to the provider that way. They are landlines and mobiles in the country: they remain reachable at the usage cap and at the budget, and are not “outside the country” for call restrictions, where the French overseas departments zone lets you handle them separately. Saint Pierre and Miquelon (+508) and the Pacific (+687, +689, +681) remain international.

The country also sets:

  • How numbers are displayed (portal, softphone, mobile app, voicemail emails): a number of the reader’s country in national format grouped as is customary there (01 99 00 10 10, 02 123 45 67, 0471 12 34 56, 044 123 45 67, 020 7946 0123, (212) 555-0142), a foreign number in international format (+33 1 99 00 10 10, +1 212 555 0142). On a customer’s pages (customer record, users, forwarding, call flow, call log, directory, settings…), the portal reads, displays and pre-fills numbers in that customer’s country, the one its entries are read in: opened from France, a Belgian customer shows 02 123 45 67 and a French number as +33 1 99 00 10 10. Elsewhere (number stock, diagnostics, operator home page), in the country of the signed-in account. The softphone and the mobile app read numbers in the country of the extension’s customer.
  • Call categories in the call log and in the Destinations module of the home page: landline, mobile, international, premium rate, short number, emergency, other special number, each call seen from its customer’s country (in the United States and Canada, landlines and mobiles share area codes: a single category).
  • The public holidays offered by its customers’ business hours, dates and substitutions included. National holidays only, regions will come later: France (the 11 of the Labour Code), Belgium (the 10 legal days; the replacement day of a holiday falling on a Sunday, specific to each company, is entered as an exceptional closure), Switzerland (ticked: New Year’s Day, Ascension Day, 1 August, Christmas; offered: Good Friday, Easter Monday, St Stephen’s Day, Whit Monday, observed depending on the canton), United Kingdom (the 8 bank holidays of England and Wales, moved to the next working day when they fall on a weekend), United States (the 11 federal holidays, observed on the Friday or the Monday when they fall on a weekend; ticked: New Year’s Day, Memorial Day, Independence Day, Labor Day, Thanksgiving, Christmas), Canada (the 10 general holidays of the Canada Labour Code; Canada Day moves to 2 July when 1 July is a Sunday; offered only: National Day for Truth and Reconciliation, Remembrance Day). A day decided case by case (a British jubilee…) is entered as an exceptional closure.
  • The ringback tone the call flow plays to the caller (transfer, voice menu, external forwarding, SIP connector): that of the customer’s country.
  • The format of dates, times and numbers, together with each account’s language, with no setting: in English, American in the United States (10/26/26, 3:04 PM), Canadian in Canada (2026-10-26, 3:04 p.m.), British elsewhere (26/10/2026, 15:04); in French, French, except in Belgium (26/10/26), Switzerland (26.10.26, 1'234,5) and Canada (2026-10-26, 15 h 04). Times are on 24 or 12 hours according to this format. The country of the signed-in account, or of the customer being viewed on its pages (like its numbers); in the softphone and the mobile app, that of the extension’s customer; in emails, that of the recipient. CSV exports stay readable by spreadsheets: RFC 3339 dates, separators by language.

Currency

One currency for the whole installation, the euro by default: euro, Swiss franc, pound sterling, US dollar or Canadian dollar. Every amount is in it: rate tables (and their CSV import, which only accepts this currency’s symbol or code), rated calls, margins, caps, budgets, the assistant’s budget, exports and emails. They are displayed in the reader’s format (12,50 €, €12.50, 12.50 CHF in French-speaking Switzerland, $12.50). The setup assistant suggests it from the country.

There is no conversion: changing the currency keeps the numbers as they are. As a precaution, the currency can therefore no longer change once a rate table (purchase or sale) exists or a call has been rated, even if the rate table has since been deleted; the field is then greyed out, and the API answers devise_tarifs_existants. Choose it before importing the first rate table. Usage cap thresholds and budgets already set keep their numbers: review them after a change.

Fleet alerts

The Fleet alerts card sets the addresses that receive your fleet’s alerts by email (ten at most), sent through the email server below, then, under Alert types, the channel of each alert: Email (the default), Webhook, Email and webhook or None.

AlertWhen
Trunk down or restoredA customer’s trunk no longer registers with its provider (with the reason given), then registers again.
Usage capA customer reaches 80% of a threshold, then the threshold, which restricts its outgoing calls (usage cap).
Monthly budgetA customer reaches 80% of its budget, then the budget (budget).
Channels in use (operator only)The shared trunk reaches its threshold of channels in use, then all are; or a customer on its dedicated trunk uses its whole channel limit. At most one alert of each level per 24 hours.
License (operator only)The license ends in 14 days, has expired, then administration becomes read-only, then calls are cut.
Storage (operator only)The recordings volume reaches 80% then 95%, or the system disk drops below 20% then 10% free.

One alert per change, not one per attempt. Webhook sends the alert event to your fleet’s endpoint, if it subscribes to it (API menu, see Fleet webhook); otherwise the card says so. The channel only changes what you receive: the cap and the budget still restrict calls, trunk status and the webhook’s trunk.down and trunk.up events go on, and the customer’s admins still get their cap and budget emails.

The usage cap set to None shows a warning: fraud may go unnoticed, since nobody on your side is told. The Diagnostics health reminds you of it (Usage cap alert: off) as long as the alert reaches you neither by email nor by a subscribed webhook.

Each reseller sets its own for its customers, on its Users page (trunk, usage cap, budget). Every change is in the audit log.

E-mails (SMTP)

The PBX’s emails (voicemail, invitations, alerts) go out through this server: server, port, encryption (STARTTLS, TLS or local relay), username, password, sender address and sender name. Send the test checks the setting. Without a server, the PBX sends no email, invitations included: set it up before creating the first users.

The saved password is never shown again, and it is kept when you leave its field empty. If you change the server or the port, enter it again: a saved password is never sent to an address other than the one it was entered for.

Email templates

The Email templates card replaces the text of the phone system’s emails with yours, in French and in English: each email goes out in its recipient’s language.

EmailReceived by
Invitation, Address change, Forgotten password, Phone setup, Voicemail messageYour customers’ users, and your team
Email server testThe test address (E-mails (SMTP))
Alert: trunk down or restored, storage, license, usage cap, monthly budget, channels in useThe alert addresses; for the usage cap and the budget, the customer admins too

Edit opens the editor on the text that applies (the Original text as long as you have changed nothing), in the chosen Email language. A template has a Subject and a Body (HTML). The email’s Variables are listed below the editor; a click inserts one at the cursor:

  • {{ nom }} writes a value (recipient’s name, link, amount…), escaped: a name cannot slip HTML into the email;
  • a condition chooses between two texts: {% if tombe %}Trunk down{% else %}Trunk restored{% endif %};
  • an optional variable may be empty: {% if transcription %}…{% endif %}.

A template is refused if it uses a variable the email does not have, if it has a syntax error or an empty subject or body, or if it is too long (1,000 bytes for the subject, 64 KiB for the body). The body of the invitation, the forgotten password and the phone setup must show {{ lien }}, that of the address change {{ nouvelle }}, in both preview examples: without them, the email is useless.

The invitation of a “phone only” account also fills in three variables, empty for other accounts: {{ telecharger }}, the page where the user downloads the desktop app for Windows or Mac (their system offered first, with the portal address to paste at first launch), shown as a Download the app button; {{ telephone }}, their phone in the browser, as a plain link (“or open your phone in the browser”); and {{ mobile }}, the link to the Android mobile app, shown as a Get the Android app button. This link is your portal’s (/telephone/telecharger/android), which redirects to the Google Play listing: the email never contains the store address. It is filled in only if the account has an extension and the Mobile app feature is turned on (see Features); otherwise {% if mobile %} is false and the mobile app paragraph does not appear. A template that has already been customised replaces the original text: it does not get this paragraph until you add it.

Preview renders the template with fictitious values, in two examples: the first fills in every variable and makes conditions true, the second leaves optional variables empty and makes conditions false. The email shows in an isolated frame, without scripts, with its plain text; images from other sites do not appear there, they show in the email received.

The HTML keeps an email’s formatting: paragraphs, headings, lists, tables, links, images, styles in tags (style="…"). Scripts, forms, frames, style sheets (<style>), on… attributes and links other than http, https, mailto and tel are removed at every sending; the preview shows what goes out. Every email, from a template or from the original text, goes out in HTML with your brand’s colors: your logo at the top (the display name if you have none, or if the reader blocks images), each action link (choose a password, set up a line…) as a button in the accent color with the link in clear below it, your name in the footer. It goes out with a plain text derived from it (tags removed, each link in clear) for readers without HTML.

Your templates apply to all your customers and to your team. A customer can replace, in its Settings, the five emails of its users; its template takes precedence for them. It does not see your templates as such, only the text that would apply to its emails (marked Operator’s template). Alerts and the server test only use your templates. Restore the original text deletes your template. Each save and each restore is written to the audit log.

Voicemail transcription

The service that transcribes messages in mailboxes where transcription is turned on: API address, model, language, key. Try checks that it responds. Leave the language empty so that each message is transcribed in its customer’s language (French or English); a language entered here applies to every customer. The saved key is kept when you leave its field empty; if you change the address, enter it again (or remove it).

Nothing is transcribed while the Voicemail transcription feature is off (see Features): set up and try the service, then turn it on; the card says so while it is off.

Kanadr does not impose any service: any service exposing the OpenAI-compatible transcription API (POST …/audio/transcriptions) works. The Provider list offers ready-made services; choosing one fills in the address and suggests its models, and the address stays editable (dedicated endpoint, other region). Other compatible service leaves everything to enter. An existing setting is recognised by its address.

ProviderAddressSuggested modelsKey
OpenAIhttps://api.openai.com/v1gpt-transcribe; gpt-4o-mini-transcribe, gpt-4o-transcribe, whisper-1 (shut down by OpenAI on 26/02/2027)platform.openai.com/api-keys
Groqhttps://api.groq.com/openai/v1whisper-large-v3-turbo, whisper-large-v3console.groq.com/keys
Mistral AIhttps://api.mistral.ai/v1voxtral-mini-transcribe-3, voxtral-small-transcribe-3console.mistral.ai/api-keys
Scaleway (hosted in Paris)https://api.scaleway.ai/v1whisper-large-v3console.scaleway.com/iam/api-keys
OVHcloud AI Endpoints (hosted in France)https://oai.endpoints.kepler.ai.cloud.ovh.net/v1whisper-large-v3Control Panel, Public Cloud, AI Endpoints (OVHcloud guide)
Speaches (server you install)http://127.0.0.1:8000/v1, to replace with the server’s addressSystran/faster-whisper-small, -medium, -large-v3optional, see Local transcription

With an online service, the audio of voicemail messages goes to that provider: to be declared according to your personal data policy (see GDPR). Prices, limits (file size, rate) and model availability are the provider’s; check them in its documentation. Without a key, OVHcloud only accepts 60 seconds of audio and 2 requests per minute: create a key. For a service installed on your premises, see Local transcription.

Text-to-speech

The voice that reads announcements typed as text (greeting, closed hours, voicemail):

  • Piper, the default, runs on the server: nothing leaves it, no account to create.
  • Google Cloud Text-to-Speech has more natural voices, with your own Google API key. The announcement text is then sent to Google (never the audio of calls): declare it according to your personal data policy (see GDPR).

Default voices: fr-FR-Chirp3-HD-Leda for customers in French, en-US-Chirp3-HD-Leda for customers in English (en-GB-Chirp3-HD-Leda for a British accent). Any voice from Google’s list works: the start of the name (fr-FR, en-US) gives the language. The key is never shown again: leave the field empty to keep it, tick Erase the saved key to remove it. Try in French and Try in English read a short sentence with the saved setting, or show Google’s error. Each change is written to the audit log, without the key.

Piper as fallback: if Google is chosen without a key, or if it fails (refusal, no answer within 15 seconds, invalid response), the announcement is read by Piper, and the cause is written to the service log. The test has no fallback: it shows the error. Without Piper installed, a Google outage prevents reading: upload an audio file instead.

Create the key, in the Google Cloud console:

  1. Create a project (or pick one) and enable its billing.
  2. In APIs & Services, enable the Cloud Text-to-Speech API.
  3. In APIs & Services › Credentials, create an API key.
  4. Restrict the key: to the Cloud Text-to-Speech API only, and to your servers’ IP addresses (the public IPv4 address of each, active and passive).
  5. Paste the key in the card, choose Google, save, then try.

The IPv6 trap: the PBX reaches Google over IPv4, to match the key’s restriction to the server’s IPv4 address (a server going out over IPv6 would be refused). If the test answers that the key is restricted to another IP address, the detail gives the address seen by Google: add it to the key, or correct the one you entered.

Pricing, indicative, to check on Google’s pricing page: Chirp 3 HD voices, 1 million characters free per month, then about $30 per million. An announcement is about 300 characters and is generated only once, when it is typed: more than 3,000 announcements a month fit in the free tier.

Voice chosen by the customer

Each customer keeps the instance voice by default, the one set above for its language. It can choose another one in its Settings, among the instance’s voices for its announcement language (its own), after listening to it:

  • the installed Piper voices: those of KANADR_VOIX_PIPER and KANADR_VOIX_PIPER_EN, and any other French or English model placed in the same folder (fr_FR-….onnx, en_GB-….onnx…, each with its .onnx.json), taken into account when the service restarts;
  • if a Google key is saved, even with Piper as the engine: the Google voices set above and eight Chirp 3 HD voices (Aoede, Charon, Fenrir, Kore, Leda, Orus, Puck, Zephyr), in fr-FR and fr-CA for a customer in French, in en-US and en-GB for a customer in English. The announcement text of a customer who chooses one is then sent to Google.

If the chosen voice disappears (key erased, model removed) or is no longer in the customer’s language, the instance voice replaces it, with a warning in the service log: reading never fails because of it, and the customer’s card says so. You can also set a customer’s voice from its page (Settings). Each choice and each test listen is written to the customer’s audit log.

Users’ phones

On a mobile phone, the mobile app. On a computer, each user has their phone in the browser, at the portal’s /telephone/ address, under your brand, installable as an app from the browser on Linux, phones and tablets; on Windows and Mac, it offers the desktop app instead: see the customer guide. It goes through the binary’s WebSocket relay and, outside the local network, through the TURN server (KANADR_TURN_HOTE, see Server settings). A “phone only” account opens nothing else. The desktop app (prototype) puts it in an app of its own, with incoming calls while the browser is closed.

Sign-in from your portal

Your tool (customer portal, Odoo, extranet) can sign your customers in to the PBX without them retyping their password. Create the key shows a key, only once: copy it into your tool. Replace the key creates a new one (the old one stops working immediately); Remove the key closes this sign-in method.

Your tool sends the customer’s browser to the Sign-in link shown, followed by a JWT token signed with the key (HS256). The token carries:

FieldValue
audthe Audience (aud) shown: the PBX address
emailthe email address of the customer’s account
iat, expissued at and expiry (Unix seconds), ten minutes apart at most; one minute is enough
jtia unique identifier: a token can be used only once
clientoptional: the customer’s identifier (in the address of its page), to create the account if it does not exist, if the customer has allowed it and if you let it add users (see Users added by the customer)
nameoptional: the name of the account to create

Example in Python (PyJWT library):

import time, uuid, jwt

maintenant = int(time.time())
jeton = jwt.encode(
    {"aud": AUDIENCE, "email": courriel, "iat": maintenant, "exp": maintenant + 60,
     "jti": str(uuid.uuid4())},
    CLE, algorithm="HS256")
redirection = f"{AUDIENCE}/api/v1/sso/jeton?jeton={jeton}"

Only customer accounts (customer admin, user) sign in this way: your tool’s key never opens an account of your team or of a reseller. The second factor is not asked again: your tool is responsible for it. A refused token (expired, already used, unknown or disabled account) brings the customer back to the sign-in page, with the reason; each sign-in and each refusal is recorded in the audit log.

Sign-in with your directory

If your team or your customers have a directory (Microsoft Entra, Google Workspace, Keycloak or any OpenID Connect provider), they can sign in with their account from that directory. First register an application with the directory, using the Redirect URI to declare in the directory shown on the card, then enter here the Issuer URL, the Application (client) ID and its Application secret, the Display name (“Microsoft”, “Google”) and, if you wish, the Accepted domains. The PBX checks the issuer when you save: it is an https address reachable on the Internet (port 443 or 8443), like the addresses of its discovery document; a directory only visible from an internal network, or one that answers with a redirect, is refused. The saved secret is kept when you leave its field empty; if you change the issuer, enter it again.

Set on the operator, the directory applies to all accounts of the installation that do not have their own: a customer can set its own directory in its settings, which takes precedence for its accounts. The account must already exist (same email address); two-step verification is the directory’s. On the sign-in page, the Use my company directory button starts from the address entered.

Configuration assistant

Once the AI assistant feature is turned on (see Features), to offer the assistant to administrators: a Claude API key, the model, a Monthly budget (in the installation’s currency) for the installation and, if you wish, per customer. The amount used this month is shown; once the budget is reached, the assistant pauses until the following month. For the call flow, the assistant writes the customer’s draft without confirmation; it never publishes: the user publishes it themselves. Its other writes are confirmed one by one. With the feature turned off, the assistant disappears from the portal for all accounts.

The assistant lives in a bubble at the bottom right of every page of the portal, and behind the AI assistant button of the call flow. With no key set, or the feature turned off, neither the bubble nor the button appear.

License

Every day, the number of users is recorded and signed. Depending on your contract, the report is sent automatically to the vendor, or you download it and pass it on. The breakdown by customer and the reports of past days can be viewed here: the last three at once, the older ones under Show history.

The vendor gives you back a license, valid until a date: it arrives automatically with the reply to the report, or you receive it as a file and upload it with Upload the vendor’s license. The card shows its end date.

Fourteen days before the end, a banner at the top of the portal and an email alert announce two dates: when the portal becomes read-only and when calls are cut. Once the license has expired:

Time after the endWhat happens
1 to 30 daysEverything works; the banner stays visible.
31 to 60 daysThe portal and the API become read-only: a red banner tells every account, your customers and resellers included (they are asked to contact you), with the date calls will be cut; the buttons that change something are disabled. Calls, voicemail, recordings and routing keep working; the only exception: the mobile app asleep is no longer woken (open, it still receives its calls).
After 60 daysCalls cut: new calls are refused, inbound, outbound and internal; callers hear “The service is temporarily unavailable”, then the call is rejected. Calls in progress are not cut and emergency numbers always go through (those of the customer’s country; in France 15, 17, 18, 112, 114, 115, 119, 116000, 191, 196, 197). The banner becomes “calls cut”; Diagnostics shows it too.

Everything is restored as soon as a new license is loaded, without a restart: read-only mode and the call cut are lifted at once. With no license received, the delays run from the installation.

The license also opens the vendor’s update repository: Kanadr presents it itself, with nothing to enter, and the repository accepts it until 30 days after it ends. Beyond that, no new version is offered any more, until a valid license is loaded; see Access to the repository.

The license in place is checked every time it is read: only a license signed by the vendor and issued for this installation counts. If it is not, the card shows The installed license is not valid: it is ignored, and the delays run as with no license received. Upload the file supplied by the vendor.

The calls-cut message is read by the installation’s text-to-speech voice, in French, or in English for a customer set to English; for a call from a trunk, in your language. Without an English voice installed, a short “I’m sorry” message replaces it.

While read-only, you can still:

  • view and export everything;
  • upload the license (this card); read-only mode is lifted at once;
  • sign in and secure your account: password, second factor, passkeys, sessions, assistant access (MCP);
  • manage a user’s telephony: forwarding, do not disturb, voicemail messages, mobile phone and phone installation, renewing a SIP password;
  • lift a spending cap or budget that blocks a customer’s calls;
  • deactivate an account (an employee who leaves), without changing anything else;
  • for your team: unban or ban an address, hang up a call, reload the configuration, re-register a trunk, restart the telephony engine, open access for the vendor’s support; the administrator can restart the machine when a system patch is waiting for it (Updates).

Everything else is refused (code licence_lecture_seule), including through an API key or an assistant: customers, users, numbers, call flows, rate plans, trunks, settings, API keys, setup, desk phones.

Updates

The Updates card shows the installed version, the waiting one and the link to its release notes, the last update and its result. The operator admin starts the update there (Update) and sets the automatic update within a time window, disabled by default. See Updates.

Blocked destinations

International prefixes refused for all customers, call forwarding included (+882 Satellites). Emergency numbers always remain reachable.

GDPR

Retention periods

Retention periods section of the Settings page, Personal data tab (and of each customer’s settings, as a customer can have its own). Beyond the period, the purge, which runs every hour, deletes:

  • Call recordings: 6 months at most, and by default; the call stays in the log. A recording whose call is not in the log is also deleted after 6 months.
  • Voicemail messages, with their transcription: no limit by default.
  • Call log (CDR): one year at least, the legal obligation to keep traffic data (French Postal and Electronic Communications Code, CPCE, art. L34-1); no limit by default.

An empty field takes the period of the level above (the customer that of the operator, the operator the default value).

Data subject rights

  • Access and portability: everyone downloads their data from My account (My data); an admin does it for a user (Account tab, Export their data). The JSON file contains the account, the extension, the sessions, the sign-ins and actions, the extension’s calls over twelve months, the voicemail messages, the authorized applications (AI assistants connected through OAuth), and the phone’s personal contacts and favourites.
  • Erasure: Erase (GDPR) deletes the account, the extension, the voicemail, the call recordings of the extension’s calls, and the phone’s personal contacts and favourites. What remains is the call log, kept for one year by legal obligation, and the audit log, protected against any change.

Each export and each erasure is recorded in the audit log.

Template processing record

To copy into your record of processing activities (GDPR Article 30).

ItemContent
ProcessingHosted business phone system provided to the operator’s customers
ControllerThe operator, for its accounts and billing; each customer, for its users and their communications (the operator is then its processor)
PurposesRouting calls; voicemail; call recording when the customer turns it on; billing; security and diagnostics
Data subjectsCustomers’ users; parties who call or are called
DataName, email address, extension, presented numbers; call log (numbers, timestamp, duration); voicemail messages and their transcription; call recordings; IP addresses used to sign in and to register phones; audit log
RecipientsThe operator and its resellers according to their rights; each customer’s admin; numbers are masked by default in the log, and showing them in full is restricted and logged
RetentionSee above; call log one year at least (CPCE L34-1, French traffic data retention rule)
TransfersNone outside the European Union by the PBX itself; transcription, assistant and the Google announcement voice (announcement text) only if the operator sets up a provider, to be declared according to that provider
SecuritySecond factor mandatory for operator and reseller teams, enforceable by each customer; encrypted secrets; chained audit log; banning of abusive addresses; updates through the vendor’s repository
VendorThe software vendor has no access to any personal data: the license report only counts users per customer, identified by an identifier

Operator API

Everything the portal does goes through the public API: resellers, customers, numbers, rate plans, trunks, diagnostics and instance settings can be automated with an API key of your organisation.

API keys

API menu (operator admin, reseller admin): give the key a purpose (“Monitoring”), a role of your organisation and, if you wish, an expiry date, then Create the key. Copy it right away: it will not be shown again. A key never has more rights than you, and only a signed-in person creates or revokes a key. Revoke cuts off the tool using it. Customers have the same page in their space.

Fleet webhook

Your tool (monitoring, CRM, billing) receives your fleet’s events at an https address, signed by a secret shown once: cdr.month (calls of the past month), client.created, extension.created, trunk.down, trunk.up, alert. The JSON body carries the event, its timestamp and the customer’s identifier (customer_id). The latest deliveries and their status are shown under the setting. A reseller has the same setting for its customers.

alert event

The alerts you set to Webhook or Email and webhook (see Fleet alerts) arrive as alert, one per alert, if the endpoint subscribes to it. trunk.down and trunk.up remain separate events, sent whatever this setting.

{
  "event": "alert",
  "id": "alert/0b6c7c1e-5d0a-4f43-9a51-2f4c8f0e7d21",
  "occurred_at": "2026-10-30T09:12:00Z",
  "alert": "usage_cap",
  "level": "warning",
  "customer_id": "3f1e2d4c-0000-4000-8000-000000000001",
  "customer_name": "Cabinet fictif",
  "window": "hour",
  "percent": 82,
  "consumption": 4100000,
  "threshold": 5000000,
  "currency": "EUR"
}
alertlevelOther fields
trunk.down, trunk.updown, upcustomer_id, customer_name, reason (reason given by the provider, or null)
trunk.down, trunk.up of the shared trunk, to the operator only (no separate trunk.down event)down, upshared_trunk (true), provider, customers (customers using it), reason
usage_capwarning (80% of a threshold), limited (threshold reached, calls restricted)customer_id, customer_name, window (hour, day), percent (share of the threshold used, integer from 0 to 100); to the operator only: consumption, threshold, currency
budgetwarning (80%), reached (budget reached)customer_id, customer_name, consumption, budget, currency, restricted (calls restricted)
channels, to the operator onlythreshold (shared trunk threshold reached), full (all channels in use)shared_trunk (true: shared trunk, with provider and threshold, the threshold in channels or null; false: customer on its own trunk, with customer_id, customer_name), in_use (channels in use), channels (number of channels of the shared trunk, or the customer’s limit)
licenceexpiring (ends within 14 days), expired (expired, within the grace period), read_only (administration read-only), calls_cut (new calls refused, except emergency numbers)end (last day of validity, null with no license received), days_since_end (negative before the end), read_only_from, calls_cut_from (YYYY-MM-DD)
storagewarning, criticalrecordings, system: size_bytes, free_bytes of each volume (null if unreadable)

Amounts are in millionths of the currency (currency), excluding tax: at purchase price for the usage cap, at the customer’s selling price for the budget. The usage cap amounts only go to the operator’s endpoint: a reseller’s receives percent alone, just as GET /clients/{client_id}/plafond only returns pourcentage_heure and pourcentage_jour to a reseller or a customer (seuil_heure, seuil_jour, seuils_du_client, consommation_heure and consommation_jour are null there). id is unique per delivery.

Migrating an existing customer

To migrate a customer from a former phone system without reconfiguring its phones, six API functions are reserved to the operator’s accounts and keys (code reserve_operateur for others):

  • PUT /clients/{id}/postes/{poste}/mot-de-passe-sip gives the extension the SIP password it had (8 to 128 characters); installation links already issued are revoked;
  • inviter: false when creating a user (POST /clients/{id}/utilisateurs): no invitation until the address is confirmed;
  • actif: false on the trunk: see Disabled trunk;
  • POST /clients/{id}/boites/{poste}/messages migrates a voicemail message (the audio file, the depose_le date, the caller, lu), without email or webhook;
  • POST /clients/{id}/appels/reprise migrates the call log, in batches of 1,000 calls at most (original identifier, direction, numbers, extension, start, answer, end, durations, cause): the calls are marked “imported”, never rated nor counted (consumption, budget, cap, concurrent calls, dashboard, fleet statistics, fleet export, cdr.month webhook), and shown in the customer’s call log, its summary, its statistics and its export (imported column). Replaying a batch duplicates nothing (deja_repris); a call older than the customer’s CDR retention is not migrated (expires);
  • POST /clients/{id}/appels/reprise/enregistrements migrates their recordings: a tar archive (application/x-tar, 256 MiB and 1,000 files at most) of <call>.wav or <call>.mp3 files, stored like those of the instance (same listening rights, same retention: a recording it would already have deleted is not migrated).

Each batch gives one audit log entry.

The customer’s full domain (client.voip.operateur.fr) is accepted as is when it is created. The kanadr reprise importer command chains these calls, and all the others (numbers, extensions, voicemail, call flow, announcements, trunk), from a batch prepared from the former phone system: a dry run by default, which only reads, then --appliquer to create the customer; the API key is read from a file (--cle-api), never as an argument. The batch’s call log and recordings follow; for a customer already migrated, --journal-seulement migrates only them.

Monitoring

The Monitoring (Prometheus) card on the same page creates the token that opens /metrics to your Prometheus: see Monitoring.

Documentation

The phone system serves two documentations:

  • the full one, for you and your resellers: /api/docs/operateur/en (/api/docs/operateur in French; OpenAPI description: /api/v1/openapi.en.json and /api/v1/openapi.json). The one for the latest version is also on the public site, https://docs.kanadr.com/api/en/, where the portal link takes your teams;
  • the customer area one, which your customers see (neutral title, “Customer area API”): /api/docs/en (description /api/v1/openapi-client.en.json), limited to their own operations.

The MCP server (/api/v1/mcp) exposes the same operations, with the rights of the key used: see AI assistants (MCP). An error carries a stable code and a detail; with the Accept-Language: en header, the detail is in English. Each key can send 300 requests in a row, then 10 per second; beyond that, the response is 429 (trop_de_requetes) with Retry-After.

AI assistants (MCP)

The PBX exposes an MCP (Model Context Protocol) server: an AI assistant, whether Claude, ChatGPT, Le Chat or any other MCP client, uses the API operations. You ask it in plain language “which trunks are failing?”, it calls the operations it needs and answers you.

Two ways to connect it:

  • With your account: you add the server in the assistant, which sends you to a portal page; you sign in and authorize access. The assistant then acts with your rights. This is the way for web assistants (claude.ai, ChatGPT, Le Chat) and Claude Code.
  • With an API key: for command-line tools and your own integrations, which send a fixed key.

Before you start

  • Server address: https://<portal address>/api/v1/mcp, over streamable HTTP. In the examples below, replace portal.example with your portal’s address.
  • Data sent: API responses (call log, numbers, user names) go to the assistant’s provider. Check that this use is compatible with your GDPR commitments.
  • Network: tools installed on your computer (Claude Code, Codex, Vibe) reach the portal from your computer. Web assistants (claude.ai, ChatGPT, Le Chat, OpenAI API) reach it from their provider’s servers: the portal must be reachable from the internet.

With your account

In the assistant, add a connector with just the server address, no key. It opens an Authorize an application page on the portal (sign-in first, second factor included):

  • check the application’s name and above all the host that will receive the access (claude.ai, chatgpt.com, chat.mistral.ai…); if in doubt, refuse;
  • if the access goes to an application installed on this computer, the page says so: only accept if you just started it yourself.

The assistant then acts with your rights, but only for the operations the portal’s assistant can do: no sign-in, no API keys, no instance settings (SSO, directory), no webhooks, no phone setup, nothing that creates an account, an invitation or another access (an account’s email address, monitoring token, SIP connector password). Those stay with the portal and API keys. Every write is recorded in the audit log, on the mcp channel, in your name and the application’s. If the application asked to stay connected, access lasts until you remove it in My account, MCP connector, and 90 days at most; otherwise, one hour. It also ends if your account or organization is disabled, if your second factor is reset, if you sign out of all devices or if you change your password.

claude.ai and Claude Desktop: Settings, Connectors, Add custom connector, the server address, then Connect.

Claude Code: add the server, then run /mcp in Claude Code and choose Authenticate: the browser opens on the portal.

claude mcp add --transport http phone https://portal.example/api/v1/mcp

ChatGPT: in Settings, Apps & Connectors, turn on developer mode in the advanced settings, then Create a connector with the server address and OAuth authentication.

Le Chat: a workspace administrator opens Connectors, Add Connector, Custom MCP Connector tab. They give a name without spaces (phone) and the server address; Le Chat recognizes OAuth and opens the portal.

With an API key

  • Key: create one in the API menu (API keys). The MCP client sends it in the Authorization: Bearer <key> header.
  • Rights: the tool has exactly the key’s rights. Choose the narrowest role that is enough, read-only to start with. Every write is recorded in the key’s name.
  • One key per tool: revoking it cuts off that tool alone.
  • Secret: don’t paste the key into a conversation. Put it in the tool’s configuration, or better in an environment variable (PHONE_KEY below).

Claude Code, without going through your account:

claude mcp add --transport http phone https://portal.example/api/v1/mcp \
  --header "Authorization: Bearer $PHONE_KEY"

Codex (command line and editor extension): add the server to ~/.codex/config.toml, export PHONE_KEY before starting Codex, then check with codex mcp list.

[mcp_servers.phone]
url = "https://portal.example/api/v1/mcp"
bearer_token_env_var = "PHONE_KEY"

OpenAI API (Responses), for your own integrations: declare the server in the request’s tools. allowed_tools limits the operations offered to the model, and require_approval makes you approve each call.

"tools": [{
  "type": "mcp",
  "server_label": "phone",
  "server_url": "https://portal.example/api/v1/mcp",
  "authorization": "<key>",
  "require_approval": "always"
}]

Vibe (Mistral, command line): add the server to ~/.vibe/config.toml, and export PHONE_KEY before starting Vibe.

[[mcp_servers]]
name = "phone"
transport = "http"
url = "https://portal.example/api/v1/mcp"
api_key_env = "PHONE_KEY"
api_key_header = "Authorization"
api_key_format = "Bearer {token}"

Other MCP clients: any client that sends a fixed header works.

{
  "mcpServers": {
    "phone": {
      "type": "http",
      "url": "https://portal.example/api/v1/mcp",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}

Tools

Each API operation is a tool with the same name as in its documentation (listerClients, reglerRenvois…). With the Accept-Language: en header, tool descriptions and error details are in English.

The assistant also has access to this guide, then to the customer guide, in your account’s language: it can search them for the answer to a question and read a whole page. A customer’s account or key only has the customer guide. The monCompte tool gives it the connected account and its organization, its starting point. Before any change, it must have the user confirm.

Example requests

  • “Which trunks are failing, and since when?”
  • “List the clients of reseller Example with their number of extensions.”
  • “Why isn’t extension 100 of client Example registering?”
  • “Which IP addresses are banned, and for which account?”

To cut off an assistant’s access: remove it in My account, or revoke its key in the API menu.

Installing on a VPS

The most common case: a VPS at the hosting provider of your choice (OVH, Scaleway, Hetzner, Ionos…), installed with the provider’s standard Debian 13 template. One command installs Kanadr on it; at the end, the machine is in the same state as a VM made from the image after its first boot.

The VPS

  • Debian 13 (trixie), amd64, the provider’s template as is, with no other software;
  • at least 2 vCPUs, 4 GB of memory and 20 GB free (see Sizing);
  • a public IPv4 address and SSH access (root, or an account with sudo, with the key the provider installed);
  • a fully qualified name for the machine (pbx.operator.example), with its DNS record (A) pointing to the VPS address: preferably before installing, otherwise before the Certificate step of the wizard.

In one command

Have the download token the vendor gave you at hand (with your order, or for a trial): the vendor’s repository asks for it, see Access to the repository. Connected to the VPS over SSH:

JETON='paste your token here'
curl -fsSL -u "jeton:$JETON" https://apt.kanadr.com/installer.sh \
  | sudo bash -s -- --nom pbx.operator.example --jeton "$JETON"

The token is used for the download and stays on the machine for updates, until the instance’s license takes over.

Allow 10 to 20 minutes. The installer:

  1. checks the machine (below) and stops at once if it is not suitable, before changing anything;
  2. gives the machine its name (hostname, /etc/hosts), and keeps it across reboots if the provider installed cloud-init;
  3. declares the (signed) update repository;
  4. downloads the telephony engine and the installation files, from the same build as the image, and checks their SHA-256 checksums;
  5. performs the same installation as the image: Debian packages, telephony engine, Kanadr, nginx, speech synthesis;
  6. runs the first boot: secrets specific to the machine, database, telephony engine settings, recordings volume, services (see First boot);
  7. shows the setup link, under the name and under the IP address, the ports to open and the check command:
Kanadr est installé : pbx.operator.example (192.0.2.10)

Mise en route de Kanadr / Kanadr setup
Ouvrir / Open : https://pbx.operator.example/mise-en-route#…
…
Ou par l'adresse IP / Or by IP address :
  https://192.0.2.10/mise-en-route#…

Ports à ouvrir vers la machine (pare-feu de l'hébergeur) :
  443/tcp et 80/tcp              portail, API, certificat Let's Encrypt
…
Vérifier la machine : sudo kanadr verifier

Open the link, then follow the Quick start from step 3. The link is shown again at each SSH login; a new one: sudo kanadr mise-en-route.

The network, SSH, the accounts and the SSH key stay the provider’s: the installer does not touch them. To read the script before running it: curl -fsSLO -u "jeton:$JETON" https://apt.kanadr.com/installer.sh, then sudo bash installer.sh --nom … --jeton "$JETON".

OptionFor
--nomFully qualified name of the machine (mandatory): it gives the portal address and the default domain.
--versionA specific version (the latest by default; only the latest build is published).
--sans-enregistrementsNo dedicated volume for call recordings (see below).
--essaiChecks the machine and shows the commands, without changing anything.
--forcerOverrides insufficient resources or a machine already in use. Dangerous: what exists may stop working.

Checks

The installer refuses, with a message saying what to do:

  • without root or sudo;
  • outside Debian 13, or outside amd64;
  • below 2 vCPUs, 3.5 GB of memory or 20 GB free (--forcer to override);
  • on a machine already in use: Kanadr or a telephony engine present, PostgreSQL with databases, nginx configured, Apache, or another service on ports 80, 443, 5060, 5061 or 5080 (--forcer to override). It never breaks an existing server: reinstall the VPS with the Debian 13 template instead.

A name that does not resolve to the VPS yet does not block: a warning says so, and the link by IP address works without it.

Interruption, rerun

If the SSH connection drops or a step fails, run the same command again: the installation resumes where it was (under the same name), first boot included. The installation log is in /var/log/kanadr-installation.log, the first boot log in journalctl -u kanadr-premier-demarrage. For a long installation over a fragile connection, run it inside tmux or screen.

Changing the name during the installation

An interrupted installation resumes under the name of its first command. Run again with another --nom (an example name copied as is, a typo):

  • before the packages are installed (machine name, repository, download): it starts again under the new name, nothing else to do;
  • after: it refuses. Run it again with the first name or, to change it, reinstall the hosting provider’s Debian 13 template and run the command again with the right name.

Run again on an installed machine, the command changes nothing and shows the setup link again.

Recordings volume

Call recordings go on their own volume (Recordings volume): an empty second disk, if there is one, otherwise a file of half the remaining space (50 GB at most; none below 2 GB). --sans-enregistrements: no dedicated volume, to create later with kanadr-volume-enregistrements creer.

Next

  • Provider firewall: open the ports from Prerequisites (the OVH network firewall, for instance, is set in the customer area, per IP address).
  • DNS: the A record of the name to the VPS, and the wildcard record for the customer domains (*.pbx.operator.example).
  • Then the wizard: Let’s Encrypt certificate, emails, provider, first customer.

Limits

  • IPv6: not configured by the installer; the portal and SIP work over IPv4.
  • Address translation (VPS whose public address is not on the interface): the installer compares the machine’s address with the one seen from the Internet and, if they differ, shows “NAT détecté : adresse publique …” (NAT detected) with the command to run, without applying it. The link is given under the private address: open it under the public address. If the NAT is really 1:1 to the machine, sudo kanadr adresse-publique <public address> sets the address announced by the telephony engine and by TURN, then sudo systemctl restart kanadr-moteur. Turn off the firewall’s SIP ALG; NAT that rewrites ports and double NAT are not supported (see Prerequisites).
  • Active/passive: two VPSs on the same network, with an IP address that can move between them; few providers allow it (see Active/passive).
  • Disk enlarged at the provider: the system grows as its Debian template provides; the recordings volume, with kanadr-volume-enregistrements agrandir.

Prerequisites

What to gather before installing Kanadr: a virtual machine, its network, a name and a certificate, a SIP trunk and an email server.

Virtual machine

Kanadr installs in one command on a Debian 13 VPS (see Installing on a VPS), or ships as a complete VM image: Debian 13, PostgreSQL, nginx and Kanadr with its telephony engine, ready to start (see Installing from the image).

HypervisorA Debian 13 VPS, at any provider (installer); KVM, Proxmox or OpenStack (qcow2 image); VMware or VirtualBox (OVA image).
CPU and memory2 vCPUs and 4 GB by default, up to 200 simultaneous calls; see Sizing.
Disk12 GB at least; the image grows on first boot to the size given. Plan more for call recordings and voicemail (about 1 MB per minute in 8 kHz WAV).
AccessA public SSH key, given on first boot through cloud-init: the image has no password. On a VPS, the one the provider installed.

For high availability, two identical VMs on the same network, plus a free IP address (the floating IP): see Active/passive.

Network

A fixed public IP address, preferably carried by the VM itself: phones and the trunk provider reach it.

Behind 1:1 address translation (NAT: a private address on the VM, the public address at the hosting provider or on the firewall), Kanadr must announce the public address, otherwise audio only flows one way. A single command sets it for the telephony engine and for the computer phone’s TURN server: sudo kanadr adresse-publique 203.0.113.10, then sudo systemctl restart kanadr-moteur (TURN follows by itself within a minute; see Commands). The image’s first boot and the VPS installer compare the machine’s address with the one seen from the Internet: if they differ, they announce “NAT détecté” (NAT detected) on the console and at SSH login, with the exact command to run; they do not apply it themselves, since a provider may do something other than 1:1 NAT.

  • Turn off the SIP ALG of the firewall or router in front of the VM: it rewrites SIP messages and breaks phone registration or audio.
  • Not supported: NAT that rewrites ports (the ports below must reach the VM unchanged) and double NAT.

Ports to open towards the VM (the image installs no firewall: filter upstream, or on the VM):

PortProtocolFor
443TCPPortal and API (HTTPS).
80TCPRedirect to HTTPS, and Let’s Encrypt certificate validation.
5060UDP and TCPSIP from phones and softphones (internal profile).
5061TCPSIP over TLS from softphones (internal profile).
5080UDP and TCPSIP from the trunk: SIP provider (external profile). Can be limited to the provider’s addresses.
16384 to 32768UDPAudio (RTP).
3478UDP and TCPTURN server of the computer phone (coturn): STUN and relay.
5349TCPTURN over TLS, for networks that only let TLS through.
40000 to 41999UDPTURN relay ports (KANADR_TURN_RELAIS).
22TCPAdministration (SSH), from your own addresses only.

Between the two VMs of an active/passive pair: VRRP (IP protocol 112), PostgreSQL (5432) and SSH (22).

Phone SIP is in clear on 5060 and over TLS on 5061, with the machine’s certificate, for the SIP phones of customers who choose encrypted calls (Settings). A phone that fails to authenticate too often gets its address banned (see Diagnostics): add your own addresses to the allow list right after installing.

The computer phone (browser or installed app) relays audio through the machine’s TURN server when the user’s network blocks direct UDP. On the image, it is set up at first boot with the machine’s name; installed from apt, set KANADR_TURN_HOTE in /etc/kanadr/kanadr.env, then restart Kanadr: it writes coturn’s configuration and restarts it. Behind address translation, TURN announces the address set with kanadr adresse-publique. It only relays to the machine itself and to public addresses, never to your internal network. Its TLS certificate is the portal’s: kanadr-certificat-sip gives it to TURN on the image, kanadr-certificat-turn CERTIFICATE KEY does otherwise (or as a certbot --deploy-hook).

The external profile also has TLS (5081): customers’ SIP connectors register over TLS with their service. These connections go out from the machine: port 5081 does not need to be open inbound.

Name and certificate

  • A fully qualified machine name (pbx.operator.example), with its DNS record pointing to the public address. It gives the portal address and the default domain.
  • A domain for customers, with a wildcard DNS record (*.pbx.operator.example) pointing to the instance: each customer has its SIP domain (customer.pbx.operator.example), which its phones register to. Set as the domain suffix, it saves entering the full domain for each customer.
  • A TLS certificate for the machine name, for the portal and SIP over TLS: the operator’s, or Let’s Encrypt (certbot). On first boot, the VM uses a self-signed certificate, to be replaced: softphones reject it.

SIP trunk

An account with a SIP provider for each customer that calls out: username and password, or IP address authentication. Calls between customers also go out through the trunk. See A customer’s trunk.

Email

An SMTP server (address, port, credentials, sender): invitations, password links, voicemail and alerts are sent by email. It is set in the portal, before creating the first users.

Optional

  • Voicemail transcription: a service compatible with OpenAI’s transcription API (online service, or a local engine: see Local transcription).
  • Configuration assistant: a Claude API key (Anthropic).
  • Monitoring: Prometheus, for the metrics and the alerts shipped (Monitoring).
  • Backups: storage outside the VM to copy the archives to (Backup).

Sizing

What a VM handles, measured on the image: 50 customers with 20 extensions each, authenticated extension-to-extension calls, G.711 audio relayed by the telephony engine, quality computed on every call (MOS).

Guidelines

VMSimultaneous callsExtensions (guideline)
1 vCPU, 2 GB100700 to 1,000
2 vCPUs, 4 GB (image default)2001,300 to 2,000
  • Capacity follows the number of vCPUs: one vCPU handles 100 calls with headroom. Memory is not a limit (under 800 MB at 300 calls).
  • The extensions column assumes 10 to 15% of extensions on a call at peak time, the usual order of magnitude in companies; a call center needs much more. The number of customers matters little: simultaneous calls are what loads the machine.
  • Quality stays intact (MOS 4.48) as long as the CPU is not saturated: beyond 250 calls on 2 vCPUs, or 125 on 1 vCPU, it degrades.
  • SIP registrations are not a limit: 1,000 phones re-registering every minute make about 17 registrations per second, and a 2-vCPU VM absorbs 200.

When to grow

  • CPU above 75% at peak: the suggested alert threshold. Add vCPUs.
  • Costlier uses than extension-to-extension calls, not measured: transcoding (G.722, Opus), call recording, conferences, ring groups, call queues. Keep headroom if your customers use them heavily.
  • Recordings: about 16 MB per hour of recorded call, on their own volume (50 GB by default, about 3,000 hours): see Recordings volume.
  • Availability: a single VM is a single point of failure. Two VMs in active/passive restore service in under 2 minutes.

Telephony engine limits

  • 1,000 sessions at most (about 500 established calls).
  • 100 new sessions per second; beyond that, the telephony engine refuses new calls for a few minutes (503). An internal call costs about three, and a ring group one per extension: a VM accepts some thirty new internal calls per second.

Quick start

From the VPS or the image to the first call, on one page. Each step is detailed in the following pages.

  1. Install the machine, with at least 2 vCPUs and 4 GB, an SSH key and the fully qualified name of the machine (pbx.operator.example).
    • VPS (the most common case): a VPS installed with the provider’s Debian 13 template, then one command over SSH, which installs Kanadr, runs the first boot and shows the setup link; see Installing on a VPS:

      JETON='paste your token here'
      curl -fsSL -u "jeton:$JETON" https://apt.kanadr.com/installer.sh \
        | sudo bash -s -- --nom pbx.operator.example --jeton "$JETON"
      

      The download token is given to you by the vendor; see Access to the repository.

    • On a hypervisor, from the image; see Installing from the image.

    • Proxmox: one command in the host shell, which creates the VM, starts it and waits for the setup link:

      JETON='paste your token here'
      curl -fsSL -u "jeton:$JETON" https://apt.kanadr.com/images/proxmox.sh | bash -s -- --id 120 \
        --nom pbx.operator.example --ip 192.0.2.50/24 --passerelle 192.0.2.254 \
        --cle "ssh-ed25519 AAAA… admin@operator" --jeton "$JETON"
      
    • VMware: import the OVA and fill in its properties (name, SSH key, and the fixed IP address, gateway and DNS, or nothing for DHCP).

  2. Let the first boot finish (one to three minutes; on a VPS, the installer waits for it): the VM generates its own secrets, sets up the telephony engine, then starts Kanadr and nginx; until then, the console and the SSH login show “first boot in progress”. Connect over SSH (ssh debian@192.0.2.50, or the account given to cloud-init), then check the machine: sudo kanadr verifier.
  3. Open the setup link, shown at the end of the VPS installer or of the Proxmox script, at SSH login and on the VM console (with a QR code for a phone); see Connecting to the VM. It is given under the machine name and under its IP address (https://192.0.2.50/mise-en-route#…), which works without DNS; single use, 24 h; a new one: sudo kanadr mise-en-route. The page creates the operator and your administrator account (name, address, password), then asks for the second factor (mandatory). Without a valid link, it refuses. For automation, sudo kanadr initialiser does the same without a link.
  4. Follow the wizard, which opens next: nine steps, each Save and continue or Skip this step, to resume later (Setup tile on the home page, or the frequent action of the same name):
    1. Language and region: the instance language (Français or English), its time zone (Europe/Paris by default, to search in the list) and its default country, suggested from the time zone (Paris: France, Brussels: Belgium, Zurich: Switzerland, London: United Kingdom, America: United States or Canada) and editable; it sets the customers’ numbering plan and date format; finally the installation’s currency, suggested from the country (France, Belgium: euro; Switzerland: Swiss franc; United Kingdom: pound sterling; United States: US dollar; Canada: Canadian dollar) and editable as long as no rate table exists. The portal switches to the chosen language right away, and every following step with it; your resellers, your customers and their emails inherit it. Save and continue writes the instance language, time zone, country and currency, and your account now follows the instance language (each account can then choose its own in My account). Everything is then found in Settings, Language and region tab.
    2. Identity: name, logo and color of the portal.
    3. Domains: what the DNS gives for the machine’s name, and the customers’ domain suffix (pbx.operator.example), with its wildcard record (*.pbx.operator.example) towards the machine.
    4. Certificate: Get a Let’s Encrypt certificate, in one click, for the machine’s name (it must point to it, port 80 reachable); renewed by itself, also given to SIP over TLS. A certificate of your own: sudo kanadr-certificat-sip chain.pem key.pem for SIP, on top of nginx.
    5. Emails: SMTP server, then Send the test. Without it, invitations are not sent.
    6. Network: HTTPS, SIP 5060, 5061 (TLS) and 5080, RTP 16384 to 32768 (see Prerequisites); your addresses in the ban allow list.
    7. Provider: the profile of your transit carrier (Instance settings).
    8. Numbers: the stock, from the Numbers page (Number pool).
    9. First customer: Customers page, New customer, with its name and identifier (customer, which gives the SIP domain customer.pbx.operator.example), its trunk (A customer’s trunk), a user with an extension, then Open the customer’s space, Users, Phones tab, Add a device: Email the link or Show the code (QR code) installs and sets up the phone (Users and extensions).
  5. Call: extension to extension, then out and in. The Diagnostics page shows the health of the instance, live calls and the trace of each call.

Next: check the update repository, schedule backups, plug in monitoring.

Installing from the image

The image is a complete VM ready to start: Debian 13, PostgreSQL, Kanadr with its telephony engine, nginx in front of the portal, text-to-speech (Piper, French and English voices), plus keepalived and rsync for active/passive, idle until configured. It is the way to install Kanadr on a hypervisor (Proxmox, VMware, KVM, OpenStack); on a VPS, whose provider does not accept an imported image, see Installing on a VPS. Installing from the Debian package, on an already equipped machine, is available on request.

FileFor
proxmox.shProxmox: installation in one command (below).
kanadr-<version>.qcow2KVM, Proxmox, OpenStack.
kanadr-<version>.ovaVMware, VirtualBox (2 vCPUs, 4 GB, VMXNET3 NIC).
kanadr-<version>.sha256Checksums of both: check them before importing.

The Downloads page gives the files of the latest version, with their size, date and checksums, plus the commands to copy.

12 GB disk, grown on first boot to the size given to the VM. Add a second, empty disk for call recordings: see Recordings volume.

The image contains the guest agents of Proxmox (QEMU) and VMware (open-vm-tools): each one only starts under its own hypervisor, which then shows the VM’s IP address.

Proxmox, in one command

In the Proxmox host shell, as root (the node’s Shell in the web interface, or SSH), with the download token given by the vendor (see Access to the repository):

JETON='paste your token here'
curl -fsSL -u "jeton:$JETON" https://apt.kanadr.com/images/proxmox.sh | bash -s -- --id 120 \
  --nom pbx.operator.example --ip 192.0.2.50/24 --passerelle 192.0.2.254 \
  --cle "ssh-ed25519 AAAA… admin@operator" --jeton "$JETON"

The token downloads the image, then the script installs it in the VM for updates.

The script downloads the latest image, checks its SHA-256 checksum, creates the VM (guest agent enabled), imports the disk, adds the recordings disk, sets up cloud-init (debian account, SSH key, address) and starts the VM. It then waits for the first boot to finish (one to three minutes) and shows the setup link, under the machine name and under its IP address, as well as the SSH command:

VM 120 prête : pbx.operator.example (192.0.2.50)

Mise en route de Kanadr / Kanadr setup
Ouvrir / Open : https://pbx.operator.example/mise-en-route#…
…
Ou par l'adresse IP / Or by IP address :
  https://192.0.2.50/mise-en-route#…

Se connecter en SSH : ssh debian@192.0.2.50
OptionFor
--idA free VMID, 100 or more.
--nomFully qualified machine name: it gives the portal address and the default domain.
--ip, --passerelleFixed address (with its prefix) and gateway; or --dhcp.
--dnsDNS servers ("192.0.2.1 192.0.2.2"); by default, the host’s.
--clePublic SSH key of the administration account, as text; or --fichier-cle (an authorized_keys file).
--utilisateurAdministration account, with sudo (debian by default).
--stockageDisk storage (local-lvm by default).
--pontNetwork bridge (vmbr0 by default).
--disqueSystem disk size (32G by default, at least 12 GB).
--enregistrementsRecordings disk size (50G by default; 0: none, a file on the system disk replaces it).
--coeurs, --memoirevCPUs and memory in MB (2 and 4096 by default).
--versionA specific image version (the latest by default).
--essaiShows the qm commands without running anything.

It stops at once, before creating anything, if the VMID is taken, if the storage or the bridge does not exist, if space is short or if the image checksum is wrong. A VM created but not yet started is deleted on error; a started VM is left, and the message says how to look at it or delete it. To read the script before running it: curl -fsSLO -u "jeton:$JETON" https://apt.kanadr.com/images/proxmox.sh, then bash proxmox.sh --id 120 … --jeton "$JETON".

Proxmox, by hand

Download the image: kanadr.sha256 gives the name of the latest version and its checksums.

JETON='paste your token here'
curl -fsSLO -u "jeton:$JETON" https://apt.kanadr.com/images/kanadr.sha256
nom=$(awk '/qcow2$/ {print $2}' kanadr.sha256)   # or /ova$/ for VMware
curl -fLO -u "jeton:$JETON" "https://apt.kanadr.com/images/$nom"
sha256sum -c --ignore-missing kanadr.sha256

From a browser, the download asks for a user name, jeton, and a password, the token itself. A VM created by hand does not know your token: once it has started, install it for updates, sudo kanadr depot jeton poser (see Access to the repository).

Then, from the host shell (here VM 120, storage local-lvm):

echo "ssh-ed25519 AAAA… admin@operator" > key.pub
qm create 120 --name pbx.operator.example --cores 2 --memory 4096 \
  --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-single --ostype l26 --agent enabled=1
qm disk import 120 "$nom" local-lvm
qm set 120 --scsi0 local-lvm:vm-120-disk-0,discard=on --boot order=scsi0 \
  --scsi1 local-lvm:50 --ide2 local-lvm:cloudinit \
  --ciuser debian --sshkeys key.pub --ciupgrade 0 \
  --ipconfig0 ip=192.0.2.50/24,gw=192.0.2.254 --nameserver 192.0.2.1
qm disk resize 120 scsi0 32G
qm start 120
  • --sshkeys expects a file present on the host: key.pub, your public SSH key. It opens the debian account (--ciuser), an administrator with sudo.
  • --ipconfig0: a fixed address, which you will know without searching; ip=dhcp works too (the address obtained is shown in the VM’s Summary).
  • --ciupgrade 0: no package upgrade by cloud-init on first boot.
  • scsi1 is the recordings disk.
  • The VM name becomes the machine name and the portal address: give the full name, or use your own cloud-init configuration (--cicustom, example further down).

The same settings can be made in the web interface: import the disk as above, then the Hardware tab (Cloud-Init drive, second disk), the Cloud-Init tab (user, SSH key, IP address), and Options › QEMU Guest Agent.

VMware

Import the OVA (Deploy OVF Template). The wizard asks for the VM properties, read on first boot:

  • Nom de la machine (machine name): fully qualified name (pbx.operator.example). It gives the portal address and the default domain.
  • Clé SSH publique (public SSH key): authorized for the debian account (administrator, sudo).
  • Adresse IP fixe (192.0.2.50/24), Passerelle (gateway, 192.0.2.254) and Serveurs DNS (192.0.2.1, 192.0.2.2): left empty, the address comes from DHCP. An invalid value is reported on the console and leaves DHCP.
  • Configuration cloud-init (optional): a #cloud-config document in base64.

VMware then shows the VM’s address (open-vm-tools is in the image).

Other hypervisors

The image has no open account and no password: access is granted on first boot, through cloud-init, as for Debian or Ubuntu images of this kind. Under KVM or OpenStack, use the hypervisor’s cloud-init fields (user, SSH key, name), or a NoCloud source. Example:

#cloud-config
fqdn: pbx.operator.example
prefer_fqdn_over_hostname: true
users:
  - name: admin
    sudo: "ALL=(ALL) NOPASSWD:ALL"
    ssh_authorized_keys:
      - ssh-ed25519 AAAA… admin@operator

Without a key (VirtualBox, OVA imported without filling in the key), nobody can log in: import again with the key, or attach a NoCloud CD.

First boot

Once, after cloud-init, the VM:

  1. generates its own secrets: passwords of the database, the telephony engine and the CDRs, self-signed certificate, first secrets encryption key;
  2. creates the database, with the machine name as the default domain;
  3. sets up the telephony engine: local control only (sudo kanadr console without a password), CDRs to Kanadr, French voice, 100 new sessions per second, SIP over TLS on 5061 with the self-signed certificate;
  4. fills in the Kanadr settings (/etc/kanadr/kanadr.env), with https://<machine name> as the public address;
  5. puts call recordings on their own volume: the second disk if there is one, otherwise a 50 GB file (Recordings volume);
  6. starts PostgreSQL, the telephony engine (kanadr-moteur), Kanadr and nginx;
  7. compares its IPv4 address with the one seen from the Internet: if they differ, the console and SSH login show “NAT détecté : adresse publique …” (NAT detected) and the command to run, sudo kanadr adresse-publique …, never applied automatically (see Prerequisites). Without Internet access, nothing is shown.

No secret is shared by two VMs made from the same image: SSH keys, machine ID and cloud-init state are erased when the image is built.

Allow one to three minutes. Meanwhile, the console and the SSH login show “Premier démarrage en cours / first boot in progress”; the setup link replaces it as soon as it is ready.

Connecting to the VM

The setup link (single use, 24 h) is shown:

  • at the end of the Proxmox script;
  • at SSH login: ssh debian@192.0.2.50 (or the account given to cloud-init);
  • on the hypervisor console, above the login prompt, with a QR code to open it on a phone if the console is large enough (on 80 × 25, the text only). No account has a password: the console is only for reading it.

It is given under the machine name and under each IP address of the VM (https://192.0.2.50/mise-en-route#…): the latter works even if your computer does not resolve the name yet. The certificate is self-signed until the wizard’s Certificate step: the browser warns, accept to continue. Opened by IP address, the portal offers the second factor by code (authenticator app); passkeys need the machine name and can be added later, from My account.

From the VM:

  • sudo kanadr mise-en-route: a new link;
  • sudo kanadr-message-mise-en-route --attendre: during the first boot, waits for the link and shows it.

Next

  1. Create the operator and its first administrator: open the setup link (see Connecting to the VM), then follow the wizard (Quick start). For automation: sudo kanadr initialiser.
  2. Replace the self-signed certificate of nginx (/etc/nginx/sites-available/kanadr) and of SIP over TLS: Let’s Encrypt in one click in the wizard (Certificate step), or yours, which sudo kanadr-certificat-sip chain.pem key.pem gives to SIP.
  3. Fix the public address (KANADR_URL_PUBLIQUE in /etc/kanadr/kanadr.env, then sudo systemctl restart kanadr) if the portal is not served under the machine name: the links in invitations and for phones use it. Behind 1:1 NAT, also set the announced address: sudo kanadr adresse-publique <public address>, then sudo systemctl restart kanadr-moteur.
  4. Set up email in the portal (Settings, E-mails and alerts tab), before creating users.
  5. Check the update repository: the image declares it itself (/etc/apt/sources.list.d/kanadr.sources, Updates); without it, no new version is reported. If that file is missing (VM created from an older image), declare the repository as described in Updates.

Free software sources

The notices of the free software shipped with the image, their licences and where to get their sources are on the machine: /usr/share/doc/kanadr/LOGICIELS-LIBRES, or kanadr licences.

Server settings

The service settings are in /etc/kanadr/kanadr.env (root:kanadr, 0640: it contains passwords). On a VM installed from the image, the first boot fills them in. After a change: sudo systemctl restart kanadr.

Everything else (brand, language, time zone, email, transcription, SSO, assistant, license…) is set in the portal: see Instance settings.

Required

VariableValue
KANADR_BASE_URLThe instance’s PostgreSQL database, shared with the telephony engine (postgres://user:password@127.0.0.1:5432/database); Kanadr creates its centrex schema in it (internal name, unchanged).
KANADR_URL_PUBLIQUEPublic address of the portal (https://pbx.operator.example): links sent by email, phone links, passkeys.
KANADR_MOTEUR_ADRESSEControl connection of the telephony engine (127.0.0.1:8021). The names used before 26/10/2026 are still read.
KANADR_MOTEUR_MOT_DE_PASSEIts password.
KANADR_CDR_IDENTIFIANTSusername:password expected from the telephony engine for its call records (CDRs); without them, no call reaches the log.
KANADR_TROUSSEAUKeyring of the encryption keys (/etc/kanadr/cles).

Optional

VariableDefaultFor
KANADR_PIPER, KANADR_VOIX_PIPERabsent (set by the image)Text-to-speech (Piper program and French voice model); without it, announcements are uploaded as audio files.
KANADR_VOIX_PIPER_ENabsent (set by the image)English voice model, for customers set to English. Other French or English models placed in the same folder as these two voices (fr_….onnx, en_….onnx, each with its .onnx.json) are offered to customers when the service starts (see Text-to-speech).
KANADR_HUB_URLabsentThe vendor’s Hub, which receives license reports; without it, the report is downloaded from the portal.
KANADR_PARE_FEUnftablesAddress banning (nftables) or nothing (aucun, bans only recorded in the database).
KANADR_TELEPHONE_WEBSOCKET127.0.0.1:5066WebSocket listener of the internal SIP profile, enabled at startup, which the binary relays for the browser softphone (/api/v1/telephone/ws); on the loopback, the telephony engine is not exposed over WebSocket. The listener opens when the engine restarts (sudo systemctl restart kanadr-moteur, which drops calls in progress).
KANADR_TURN_HOTEabsentPublic host name of the softphone’s TURN server (coturn); without it, no ICE server is given to the browser.
KANADR_TURN_IP_EXTERNEabsentPublic address announced by TURN behind address translation. Not needed since 31/10/2026: when absent, TURN takes the one from kanadr adresse-publique (see Commands); when set, it wins.
KANADR_TAMPON_GIGUE_SOFTPHONE60:300Jitter buffer of the telephony engine on calls from the instance’s softphones, in Opus: 60 to 300 ms, adapted to the measured jitter; it smooths an irregular mobile network and lets the engine rebuild a lost packet (Opus FEC). <min>:<max> in milliseconds, or in 20 ms packets (3p:15p); 0 for none.
KANADR_TAMPON_GIGUE_TRUNKabsentThe same buffer on SIP trunk and connector legs, in G.711. None by default: it delays the whole call and can disturb a fax. Worth trying if a call trace shows jitter coming from the provider.
KANADR_BUREAU_URLhttps://apt.kanadr.com/bureauAddress of the desktop app installers, published by the vendor: the portal’s Download links (/telephone/telecharger/windows, /macos) redirect there, while /telephone/telecharger/android leads to the Google Play listing of the mobile app, whatever this setting. Change it only to serve the installers from elsewhere.
KANADR_ECOUTE127.0.0.1:8080Listening address of the portal and API, behind nginx.
KANADR_CDR_ECOUTE127.0.0.1:8085Listening address for the telephony engine’s CDRs.
KANADR_LOGinfoLog level (debug for troubleshooting: it may write signed links).
KANADR_ETAT/var/lib/kanadrThe service’s state directory: first access link of the setup, certificate request.
KANADR_ETAT_CERTIFICAT/var/lib/kanadr-certificatState and log of the Let’s Encrypt certificate service, read by the portal.

Commands

They run on the VM with sudo kanadr <command>: the command reads /etc/kanadr/kanadr.env itself, like the service. Those that write what the service reads back (mise-en-route, initialiser, migrate, inviter, secrets…) switch to its account, kanadr, on their own; verifier, sauvegarder, restaurer, bascule, console and adresse-publique stay as root. A variable given on the command line keeps its value.

CommandFor
mise-en-routeShow a new first access link (24 h, single use), also written on the console and at SSH login; no effect once the operator exists.
initialiser --operateur … --admin-courriel … --admin-nom …Create the operator and its first administrator, once, without the first access link (automation).
inviter --courriel …Print a new link to choose one’s password (email not set up yet).
reinitialiser-second-facteur --courriel …Lost phone: remove an account’s two-step verification and close its sessions.
cle-api --nom … [--heures N]Create an operator admin API key valid for 1 to 24 hours (1 by default), to set up a freshly initialised instance through the API (automation). The key is shown once, alone on standard output; it is in the audit log. cle-api --revoquer revokes the key read from standard input, without waiting for it to expire.
sauvegarder, restaurerBackup and restore.
verifierCheck the machine: settings, keyring, database and schema, telephony engine (tables, SIP profiles, CDRs), files, portal, service. Each item ok, attention or ÉCHEC; exit code 1 on failure. Read-only.
migrateApply database migrations (the service does it on start).
bascule …Active/passive.
acces-assistance ouvrir --heures …, fermer, etatVendor support access, closed by default, 7 days at most.
audit verifierCheck that the audit log has not been tampered with (exit code 1 otherwise).
secrets nouvelle-cle, rechiffrer, etatRotation of the secrets encryption key.
consoleOpen the telephony engine console (its own arguments after --); console --journal follows its log.
adresse-publique [IP], --machinePublic address announced behind 1:1 NAT, by the telephony engine and by the computer phone’s TURN: show it, set it, or go back to the machine’s address. The engine applies it when it restarts (sudo systemctl restart kanadr-moteur, calls in progress are cut), TURN within a minute, without a restart (unless KANADR_TURN_IP_EXTERNE is set, which wins: the command says so). It removes the “NAT détecté” notice from the console and SSH login.
licencesNotices of the free software shipped with Kanadr, and where to get their sources.

The telephony engine is the kanadr-moteur service: sudo systemctl status kanadr-moteur, sudo systemctl restart kanadr-moteur.

Recordings volume

Call recordings live on their own fixed-size volume, mounted on the telephony engine’s recordings folder. When full, only new recordings fail: calls carry on normally, and the database, the telephony engine and voicemail, which are on the system disk, keep their space. Customer announcements are in the same folder: with a full volume, uploading a new announcement fails too.

At installation

The image sets it up on its first boot:

  • with a second, empty disk added to the VM (recommended in production): it is formatted and mounted whole; its size is the one you give it;
  • otherwise, a 50 GB file (/var/lib/kanadr-systeme/enregistrements.img), mounted in the same place. If the system disk lacks space, the volume is reduced (5 GB stay free on the system disk) and the first-boot log says so; if it is too small, the instance starts without a dedicated volume and the portal home page says so.

A disk is only used if it is entirely empty (no partition, no filesystem), neither removable nor read-only, and of 1 GB at least (an empty floppy drive is ignored); a disk holding data is never formatted.

With the package, set it up yourself, with the telephony engine stopped (calls are cut during the operation):

sudo systemctl stop kanadr-moteur
sudo kanadr-volume-enregistrements creer --disque /dev/vdb    # a dedicated empty disk
sudo kanadr-volume-enregistrements creer --taille 50G         # or a file
sudo systemctl start kanadr-moteur

Recordings already there are copied into the volume.

How much space

The telephony engine records in stereo MP3: about 16 MB per hour of recorded call. 50 GB therefore hold about 3,000 hours. Retention (6 months at most) deletes the oldest every hour: count the hours recorded over that period.

Monitoring and growing

  • sudo kanadr-volume-enregistrements etat: size, used and free space.
  • The portal home page warns at 80% usage, alerts at 95%, and flags recordings without a dedicated volume; the operator’s email alerts go out at the same thresholds, and below 20% then 10% free space on the system disk.
  • Prometheus: kanadr_volume_taille_octets, kanadr_volume_libre_octets and kanadr_enregistrements_volume_dedie, with reference alerts (see Monitoring).

To grow it, live (calls and recordings carry on):

  • file: sudo kanadr-volume-enregistrements agrandir 100G (the system disk must have the space);
  • second disk: grow it in the hypervisor, then sudo kanadr-volume-enregistrements agrandir.

A volume cannot shrink. To free space without growing it, shorten recording retention (Settings, Personal data tab, or per customer).

Updates

Kanadr is updated with apt, from the vendor’s signed repository. A new version is reported in the portal; an operator administrator installs it with one button, or lets it install automatically within a time window they choose. Nothing installs without that choice.

Only Kanadr is updated this way. Debian security fixes (system, PostgreSQL, nginx…) install by themselves, once a day: see Debian security updates. Other Debian updates remain yours (sudo apt upgrade, see below).

Debian security updates

The image and the VPS installer install unattended-upgrades and turn it on. Every day, early in the morning (apt-daily-upgrade timer, machine time), it installs Debian security fixes and nothing else:

  • no other Debian updates, no Kanadr repository (kanadr is also on its exclusion list), no repository you may have added;
  • the machine is never rebooted automatically: after a kernel or system library fix, the /var/run/reboot-required file appears and the reboot is up to you, at a time that suits you (in active/passive, the passive first). The portal tells you (see Restart to plan);
  • an updated service (PostgreSQL, nginx…) is restarted by its package, as with apt by hand; each machine of an active/passive pair updates by itself;
  • old kernels are removed: each kernel fix installs a new one next to the previous ones, which would end up filling the disk. The running one and the most recent ones are always kept. A machine installed before this setting receives it when Kanadr is updated.

The settings are in /etc/apt/apt.conf.d/52kanadr-unattended (origins, exclusion, reboot) and /etc/apt/apt.conf.d/20auto-upgrades (activation); unattended-upgrades’ own file is left untouched. To check:

sudo unattended-upgrade --dry-run -d      # origins in use, packages that would be upgraded
sudo less /var/log/unattended-upgrades/unattended-upgrades.log
systemctl list-timers 'apt-daily*'

On a machine installed before this version, sudo apt install unattended-upgrades alone turns it on with Debian’s default configuration, which also admits ordinary Debian updates. To get the same settings as a recent installation:

sudo apt install unattended-upgrades
sudo tee /etc/apt/apt.conf.d/52kanadr-unattended >/dev/null <<'EOF'
#clear Unattended-Upgrade::Allowed-Origins;
#clear Unattended-Upgrade::Origins-Pattern;
Unattended-Upgrade::Origins-Pattern {
        "origin=Debian,codename=${distro_codename},label=Debian-Security";
        "origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
};
#clear Unattended-Upgrade::Package-Blacklist;
Unattended-Upgrade::Package-Blacklist {
        "kanadr";
};
Unattended-Upgrade::Automatic-Reboot "false";
Unattended-Upgrade::Remove-Unused-Dependencies "false";
Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
EOF
sudo tee /etc/apt/apt.conf.d/20auto-upgrades >/dev/null <<'EOF'
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
EOF
sudo unattended-upgrade --dry-run -d 2>&1 | grep -E 'Allowed origins|blacklist'

The last command must list only the Debian-Security origins, and kanadr in the exclusion list.

Restart to plan

A kernel or system library fix is installed, but only takes effect when the machine restarts. Until it has restarted, it runs on the old kernel: the fixed vulnerabilities stay open. Nothing is blocked though, neither the following fixes nor Kanadr updates.

The portal tells the operator:

  • the Home page, under To deal with: “A system patch has been waiting for a machine restart”, with the number of days;
  • the Health section of Diagnostics, Machine line: “restart to plan”, with the date and the packages concerned;
  • the Updates card of the Settings;
  • the kanadr_redemarrage_machine_a_prevoir metric, which goes to 1 (RedemarrageMachineAPrevoir alert after a week, see Monitoring).

Restart the machine at a quiet time, calls in progress are cut off.

From the portal (operator administrator): in the Updates card of the Settings (the To deal with entry leads there), Restart the machine. The confirmation shows the machine that restarts, the number of calls in progress (read again every 5 seconds while it stays open) and the waiting packages; its button, Restart: calls cut off, portal unavailable for a few minutes, restarts right away. The portal shows “Machine restart requested”, then “reconnecting”, and reloads by itself as soon as the machine responds again; the notice is then gone. The button only appears when a patch is waiting for a restart, and it is refused during a Kanadr update; it stays allowed when the instance is read-only (expired licence). Support sees it without being able to do it; neither the AI assistant, nor the MCP server, nor an authorised application restart the machine. Each request is written to the audit log (machine.redemarrer, with the number of calls in progress and the packages). Through the API, with a key of the operator administrator: POST /organisations/{id}/machine/redemarrage.

On the server:

sudo systemctl reboot

The notice disappears on restart. In active/passive, it concerns the machine that answers (the active one), and the portal button only restarts that one (the confirmation says so): the passive takes over meanwhile, and the former active comes back as passive. Restart the passive by hand; to avoid any needless interruption, restart it first, then switch over.

Access to the repository

The vendor’s repository is reserved for the operators it knows: the package, the image and the installation scripts can only be downloaded by presenting one of these two credentials. The repository signing key and the users’ applications (desktop, mobile) remain public.

  • The instance’s license. As soon as a license is in place, Kanadr presents it to the repository itself: nothing to enter, when the license is installed or renewed. The repository accepts it while it is valid, and for 30 more days after it ends.

  • A download token, for a machine that has no license yet: first installation, trial. The vendor gives it to you; it is in your name and valid until a date. The installation commands take it as an option (--jeton) and install it on the machine. On a machine already installed:

    sudo kanadr depot jeton poser        # then paste the token, Enter, Ctrl-D
    

    The command checks the token, installs it for apt and queries the repository. A license loaded afterwards takes over; the token is no longer needed.

The credential is kept in /etc/apt/auth.conf.d/kanadr.conf, readable by root only: apt presents it each time it reads the repository, whether the update comes from the portal or from sudo apt. Do not copy it elsewhere.

If the repository refuses (license missing or expired for more than 30 days, token expired): no new version is visible any more, and the Updates card of the Settings says so, “The update repository refuses this instance”; on the server, sudo apt update answers 401 Unauthorized. Load a valid license, or ask the vendor for a token; access comes back within a minute, without a restart. Calls are not affected.

In active/passive, the passive machine receives the credential from the active one with the file copy: it is updated first with nothing more to do.

Declaring the repository

The vendor’s repository is https://apt.kanadr.com. The VM image and the VPS installer declare it by themselves; do it by hand only on a VM created from an older image (no /etc/apt/sources.list.d/kanadr.sources file, no update ever reported) or on a machine installed another way:

sudo curl -fsSL https://apt.kanadr.com/kanadr.gpg \
    -o /usr/share/keyrings/kanadr.gpg
sudo tee /etc/apt/sources.list.d/kanadr.sources >/dev/null <<'EOF'
Types: deb
URIs: https://apt.kanadr.com
Suites: stable
Components: main
Signed-By: /usr/share/keyrings/kanadr.gpg
EOF
sudo apt update

If apt update answers 401 Unauthorized, the machine has no credential yet: see Access to the repository.

Being notified

The package list refreshes every day. When a newer version is waiting:

  • the Home page reports it under To do;
  • the health card of the diagnostics shows the installed version and the waiting one;
  • so does the Updates card of Settings (General tab), with the link to the release notes when the instance knows their address;
  • the kanadr_mise_a_jour_disponible metric goes to 1 (MiseAJourDisponible alert, see Monitoring).

From the portal

Wherever the new version is reported (Home, diagnostics health, Settings), an operator administrator sees Update. After confirming:

  1. the portal shows “update in progress”;
  2. a system service of the machine installs the offered version of the Kanadr package only, keeping your settings;
  3. Kanadr restarts (usually one to two minutes) and applies its database migrations; the portal reconnects by itself, then shows the result; Reload the portal loads the new version of the interface.

The telephony engine is not restarted: calls in progress continue. Those going through Kanadr itself at that moment (leaving or listening to a voicemail message, browser phone) may be interrupted: prefer a quiet time. The update is written to the audit log, its request and then its result.

Make a backup first; before any migration, Kanadr also takes a snapshot of its database (see below).

The update is not done, and the reason is shown, if:

  • it would install, upgrade or remove a package other than Kanadr: do it on the server;
  • the offered version is no longer in the repository (refresh the page);
  • the repository does not respond, or the installation fails: the end of apt’s log is shown under End of the update log.

If the machine stops during the installation, the update is marked interrupted: on the server, sudo dpkg --configure -a, then start it again.

The button does not appear, replaced by an explanation, when this installation cannot be updated from the portal: development installation, machine without systemd, update service disabled (sudo systemctl enable --now kanadr-mise-a-jour.path turns it back on), or active/passive, where the update is done manually (see below).

Automatic update

Disabled by default, it is set in Settings, General tab, Updates card: tick Update Kanadr automatically and choose the time window (3 am to 5 am suggested; it can span midnight, 11 pm to 4 am for example), in the instance’s time zone. As soon as a version is released, Kanadr updates itself within the window, the same way as with the button.

After a failure, or an update that could not be done, automatic update is suspended: the card says so, and it only resumes after an update started manually succeeds.

On the server

The update service is kanadr-mise-a-jour; its state and the end of its log are in /var/lib/kanadr-mise-a-jour/:

sudo systemctl status kanadr-mise-a-jour.path kanadr-mise-a-jour.service
sudo journalctl -u kanadr-mise-a-jour.service
cat /var/lib/kanadr-mise-a-jour/etat

Kanadr itself gets no extra rights: it only drops the wanted version in a folder of its own, and the update service checks the request before installing anything.

Updating on the server

  1. Back up first (Backup).
  2. sudo apt update && sudo apt install --only-upgrade kanadr (Kanadr only), or sudo apt update && sudo apt upgrade (Kanadr and the Debian packages). The Kanadr package only restarts its own service, which applies the database migrations; a Debian update may restart other services (PostgreSQL for example): pick a quiet time.
  3. Check the health in the portal (Diagnostics page).

Before any migration, Kanadr takes a snapshot of its own database in /var/backups/kanadr (the last three are kept). It is not a full backup: neither the telephony engine data, nor the keyring, nor the files are in it.

In active/passive: the passive first, then kanadr bascule ceder on the active (the promoted passive migrates the database), then the former active.

Call rules rewritten after an update

A version may change how Kanadr writes your customers’ call rules into the telephony engine: outbound routes, call flows, restrictions. At the first start after an update, Kanadr therefore rewrites them once for all customers, in the background: the portal answers at once, calls in progress are not affected and nothing is restarted.

If the telephony engine does not answer at that moment, nothing is written and Kanadr retries by itself, at growing intervals (a quarter of an hour at most). A customer whose rules cannot be rewritten does not hold up the others; the retry then covers that customer only. The operation appears in the audit log (action dialplans.republier) and in the service log:

sudo journalctl -u kanadr | grep -i republication

Going back to an earlier version

sudo apt install --allow-downgrades kanadr=<version>

The package of the target version first brings the database back to its schema, using the binary still installed; if this fails, the installed version is kept and restarts. Going back destroys the data of the undone migrations (the snapshot keeps it): make a full backup first. In active/passive, go back on the active.

Settings after an update

/etc/kanadr/kanadr.env is never rewritten by an update, and no question is asked. A new setting, always optional, appears commented out in the template /usr/share/kanadr/kanadr.env: compare it with your settings after an update.

Desktop softphone after the update

The version that brings the desktop softphone turns on the telephony engine’s WebSocket listener (127.0.0.1:5066) and restarts the extensions’ SIP profile when no call is in progress. On some machines, the listener only opens when the telephony engine is fully restarted: if the Diagnostic page reports the softphone closed, run sudo systemctl restart kanadr-moteur at an off-peak time (calls in progress are cut). The image does it by itself at first boot.

Backup and restore

Backups are the operator’s responsibility; Kanadr provides the two commands. They run on the VM, as root, with the service’s settings.

What a backup contains

A .tar archive:

  • the whole database: the Kanadr data and the telephony engine data;
  • the keyring of the encryption keys. Without it, the database secrets (trunk and email server passwords, webhook and two-step verification secrets…) would be unreadable; it is therefore included, and the archive is as sensitive as the machine: it is created readable by its owner only, to be kept outside the VM, encrypted or in a protected place;
  • the telephony engine files: call recordings, voicemail, announcements, music on hold;
  • a manifest: Kanadr version, schema version, date.

The machine configuration (nginx and its certificate, telephony engine configuration, systemd units) is not part of it: it comes from the installation.

Backing up

Live, services running:

sudo kanadr sauvegarder --sortie /srv/backups/kanadr-$(date +%F).tar

Schedule it daily (systemd timer or cron), copy the archive outside the VM, and keep several generations.

Each successful backup is recorded in the database (date, size, machine): the Backups and certificate module of the Home page shows how many days ago the last one was made.

Restoring

On a VM installed with the same version (or a newer version) of Kanadr:

  1. Describe the archive, without replacing anything:

    sudo kanadr restaurer --archive kanadr-2026-10-12.tar
    
  2. Stop Kanadr and the telephony engine (sudo systemctl stop kanadr kanadr-moteur), then restore, with --confirmer. The database is replaced in one transaction; keys and files are copied back, then the telephony engine cache is emptied.

  3. If the archive comes from an earlier version: sudo kanadr migrate. An archive from a newer version is refused.

  4. Restart the telephony engine, then Kanadr (sudo systemctl start kanadr-moteur kanadr).

Try a restore on a test VM from time to time: a backup never restored is not a backup.

Active/passive

Two identical VMs on the same network: the active one carries a floating IP and provides the service, the passive one keeps an up-to-date copy and takes over if the active one fails. Service comes back in under 2 minutes; live calls are lost.

What is copied

  • The database, whole, continuously (PostgreSQL replication): a few seconds behind at most. Phone registrations are part of it: after a failover, phones do not have to register again.
  • The files (voicemail, announcements, music, recordings) and the keyring: every minute. A failover may lose the last minute of voicemail.
  • The configuration: copied when pairing.

The floating IP is the service address: SIP, audio, portal, API and trunks. DNS, phones and providers only see it.

Setting up

Two VMs installed from the image, each with its fixed address, plus a free address for the floating IP. Between them: VRRP (IP protocol 112), PostgreSQL (5432) and SSH (22). As root:

# Active 192.0.2.11, passive 192.0.2.12, floating IP 192.0.2.10.
kanadr bascule cle            # on the passive: prints its public SSH key
kanadr bascule preparer --ip-flottante 192.0.2.10/24 --autre 192.0.2.12 \
    --cle-autre "ssh-ed25519 …"     # on the active
kanadr bascule rejoindre --actif 192.0.2.11 --cle-actif "ssh-ed25519 …"   # on the passive

preparer prints the full rejoindre command. Options: --temoin (address each VM must reach to keep or take the IP; the gateway by default) and --routeur (VRRP identifier, 51 by default, unique on the network).

PostgreSQL replication between the two VMs is not encrypted: link them through a private network.

Failover

  • The active announces itself every second; after 3 seconds of silence, the passive takes the IP.
  • A health check (PostgreSQL, telephony engine, Kanadr) runs on the active; three failures in a row, and it gives up the IP.
  • A VM that can no longer reach the witness gives up the IP and stops: an isolated VM never promotes itself.
  • A former active that comes back stays passive: no automatic failback.

Operating

CommandFor
kanadr bascule etatRole of the VM, state of both databases, witness, services, replication lag, last file copy.
kanadr bascule cederOn the active: the passive takes over (maintenance, update).
  • Log: /var/log/kanadr-bascule.log.
  • Update: the passive first, then ceder on the active, then the former active (Updates). The passive receives from the active, with the file copy, what it presents to the vendor’s repository (Access to the repository).
  • Monitoring: on the active, kanadr_bascule_passives_connectees (1 in steady state) and kanadr_replication_retard_secondes (Monitoring).

Monitoring

Kanadr exposes its metrics in Prometheus format, and ships reference alerts.

Plugging in Prometheus

Two ways to read /metrics:

  • From the VM, with nothing to set up: Prometheus, or a local agent that relays (Grafana Agent, node_exporter…), scrapes 127.0.0.1:8080.

    scrape_configs:
      - job_name: kanadr
        static_configs:
          - targets: ["127.0.0.1:8080"]
    
  • From your Prometheus, over https, with a monitoring token: API menu of the portal, Monitoring (Prometheus) card, Create a token. The configuration to copy is shown only once, token included:

    scrape_configs:
      - job_name: kanadr
        scheme: https
        authorization:
          credentials: cxs_…
        static_configs:
          - targets: ["voip.operateur.exemple"]
    

    One token at a time: Replace the token invalidates the old one at once, Revoke makes /metrics local only again. The card shows Prometheus’s last read. Without a valid token, a request that goes through nginx is refused. Only an operator admin, signed in in person, manages this token: neither an API key nor the publisher’s support access.

Metrics

MetricMeaning
kanadr_info{version, schema}Installed version and database schema.
kanadr_mise_a_jour_disponible1 if a newer version is waiting in the repository.
kanadr_redemarrage_machine_a_prevoir1 if a system patch is waiting for the machine to restart.
kanadr_moteur_joignable1 if the telephony engine answers.
kanadr_appels_en_coursLive calls on the instance.
kanadr_postes_inscritsRegistered phones and softphones.
kanadr_licence_jours_restantsLicense days left; negative: expired for that many days.
kanadr_licence_bloquee1 if the license expired more than 30 days ago (portal and API read-only).
kanadr_appels_coupes1 if the license expired more than 60 days ago (new calls refused, except emergency numbers).
kanadr_trunks{etat}Customer trunks by registration state (REGED, FAIL_WAIT, NOREG for an IP-authenticated trunk, INCONNU).
kanadr_cdr_recusCalls kept in the log.
kanadr_cdr_dernier_horodatage_secondesWhen the last call reached the log.
kanadr_webhooks_en_attenteWebhook deliveries waiting.
kanadr_webhooks_abandonnesDeliveries given up after all their attempts.
kanadr_ip_banniesAddresses banned right now.
kanadr_volume_taille_octets{volume}Volume size: enregistrements (theirs, see Recordings volume) or systeme (system disk).
kanadr_volume_libre_octets{volume}Free bytes on the volume.
kanadr_enregistrements_volume_dedie1 if recordings have their own volume, 0 if they share the system disk.
kanadr_bascule_passives_connecteesActive/passive, on the active: passives replicating (1 in steady state).
kanadr_replication_retard_secondesActive/passive, on the active: lag of the passive.

Reference alerts

/usr/share/doc/kanadr/supervision/alertes.yml, to load into Prometheus: Kanadr or the telephony engine unreachable, trunk not registered, no more calls in the log during the day, webhooks waiting or given up, too many banned addresses, update waiting for a week, active/passive without a passive or lagging, license about to expire or expired, sudden drop of registered phones, recordings volume at 80% then 95% or sharing the system disk, less than 10% free on the system disk. The thresholds are starting points, to adjust.

Add an alert on CPU (above 75% at peak, see Sizing) and on disk space, with your system agent.

In active/passive, Kanadr is stopped on the passive: monitor both VMs, and only raise “Kanadr unreachable” if neither answers.

In the portal

The Diagnostics page shows the health of the instance (telephony engine, database, call log, webhooks, trunks), live calls and banned addresses; fleet alerts by email or webhook (trunk down or restored, usage cap, budget, license, storage) are set in the instance settings.

Local transcription

Kanadr transcribes voicemail through the OpenAI-compatible transcription API (POST …/audio/transcriptions). The service can be online (OpenAI, Groq, Mistral AI, Scaleway, OVHcloud: see the list of providers) or installed on your premises: messages then never leave your network. Kanadr does not ship an engine; any server that exposes this API works.

Kanadr sends the file (file), the model (model) and the language (language), and reads the text of the JSON response ({"text": …}) or a plain-text response: the server needs nothing else.

Example: Speaches (faster-whisper)

Speaches serves Whisper models through faster-whisper behind this API. On a separate VM, with Docker:

# CPU only (replace latest-cpu with latest-cuda and add --gpus=all with an NVIDIA card)
# API_KEY: optional; once set, the service requires this key (Bearer header).
# Service key, to copy into the portal (Key field)
CLE=$(openssl rand -hex 24)
echo "$CLE"
docker run --detach --restart unless-stopped --name speaches \
  --publish 8000:8000 \
  --env API_KEY="$CLE" \
  --volume hf-hub-cache:/home/ubuntu/.cache/huggingface/hub \
  ghcr.io/speaches-ai/speaches:latest-cpu

# Download a multilingual model (French and English): Speaches has no default model
curl -X POST -H "Authorization: Bearer $CLE" \
  http://localhost:8000/v1/models/Systran/faster-whisper-small

Then, in the portal, Settings page, Voicemail transcription section, provider Speaches (server you install):

FieldValue
Addresshttp://VM-ADDRESS:8000/v1 (8000: Speaches’ default port)
ModelSystran/faster-whisper-small, or another downloaded model
Languageempty: each message in its customer’s language
Keythe API_KEY one; empty if you did not set it

Try checks that the service responds. Then turn on the Voicemail transcription feature (Settings page, Features card).

  • Model: small runs on a 4-core CPU for a few hundred messages a day; medium or large-v3 transcribe better, preferably with a graphics card. Do not use the .en models, English only.
  • Network: without API_KEY, the service has no authentication; set a key and open it to Kanadr only (firewall).
  • Outage: a transcription may take up to 7 minutes. On failure, Kanadr retries after 1 minute then after 5 minutes, then sends the message’s email without the text.

These commands come from the Speaches documentation, to follow for recent versions.

Software security

The software has not been through an external security audit (penetration test by a firm). Instead, each version goes through:

  • static analysis of the code (compiler warnings treated as errors);
  • a dependency audit: known vulnerabilities, licences and origin of each library;
  • a secret scan of the whole code history;
  • isolation tests between customers: a customer, a reseller or an API key reads or changes nothing outside its scope;
  • tests on a real telephony engine: calls, call flows, forwarding, encryption, on every change;
  • a written security review, redone at each major version.

If your business requires it, you can have a penetration test carried out at your own cost: let the vendor know, who will give you the scope and respond to the findings.

What protects your instance

  • Accounts: long passwords, lockout after 5 failures, second factor required for the operator’s and resellers’ teams, passkeys.
  • API: revocable keys, rights limited to their organisation.
  • SIP: banning of addresses that fail to authenticate too often (Diagnostics), SIP over TLS and SRTP offered.
  • Secrets (trunks, email server, keys) encrypted in the database; none is returned by the API.
  • Audit log of every change, readable in the portal.

Report a vulnerability

Write to the vendor, at the security address in your contract, with “Security” in the subject. Give the version (version in /api/v1/sante), what reproduces the problem and its effect. Answer within 3 working days. The fix is published in the apt repository and you are told directly, with the version that fixes it: apply it like an update.

Troubleshooting

Most incidents are handled from the portal, Diagnostics page (see Diagnostics), without SSH: health, live calls, live SIP capture, call trace, banned addresses, reloading and restarting the telephony engine. Each action there is recorded in the audit log, and also exists in the API and the MCP server.

Typical incidents

SymptomWhere to lookWhat to do
A customer has no more inbound or outbound callsHealth: its trunk is not REGED, with the provider’s last refusal401/403: fix the username or password on the trunk page; 404: account unknown to the provider; 408/503 or FAIL_WAIT: the provider does not answer (address, network). Then Re-register.
A whole site has no phones, the portal answersBanned IP addresses: the site’s address, the account targeted and the faulty deviceFix the device (password, domain), then Unban; an address that must never be banned goes in the allow list. The customer admin sees the same block in their users’ Phones tab and can Unblock the address of their site.
A bot is trying passwordsLive capture, Banned IP addressesBan an address by hand, for the duration chosen.
“My call didn’t go through”, “it cut off”The customer’s Call log, then the call’s TraceThe trace shows the steps followed, the cause and the SIP code. A call flow error: Replay publication, in the ⋯ menu of the customer’s page.
Choppy audio, gaps, one-way audioThe customer’s Call log, the call’s Trace, Audio quality per legThe flagged leg tells you where to look: the site’s network for an extension, the provider for a SIP trunk; see Diagnostics.
A phone configured by hand does not registerOpen the customer’s area, Users, Phones tab, SIP settings and troubleshootingCompare username, password, server and domain, port (and outbound proxy, shown when the customer’s domain is not under the instance suffix) with the phone’s; each time the password is shown is written to the audit log.
A phone does not register, a call fails without explanationLive captureThe customer’s SIP messages, as text, as a ladder diagram, or as a pcap for Wireshark.
A phone set to record has no recordingssudo kanadr verifier and the service logkanadr verifier reports an unreadable recording template; the service adds recording to the customers that lack it when it restarts. Full volume: see Recordings.
Importing recordings, uploading an announcement or a voicemail message fails with “internal error”; the home page reports telephony engine folders closed to writingsudo kanadr verifier (droits line), journalctl -u kanadr (the refused path and the folder’s permissions)The telephony engine creates its folders without group write access; Kanadr requests their repair itself, and every package update repeats it. By hand: sudo kanadr-droits-fichiers, then try again.
No update is offered any more; on the server, sudo apt update answers 401 UnauthorizedSettings, Updates card: “The update repository refuses this instance”License missing or expired for more than 30 days, or download token expired: load a valid license, or install a token; see Access to the repository.
A call is stuckLive callsHang up.
Nothing works in the telephony engineHealthReload configuration, then as a last resort Restart the telephony engine.

On the VM

ForCommand
Check everything at oncesudo kanadr verifier
Service statesystemctl status kanadr kanadr-moteur nginx postgresql
Kanadr logsjournalctl -u kanadr (level set by KANADR_LOG)
Telephony engine logssudo kanadr console --journal
Telephony engine consolesudo kanadr console
Image first bootjournalctl -u kanadr-premier-demarrage
Active/passivesudo kanadr bascule etat, /var/log/kanadr-bascule.log
Audit log integritysudo kanadr audit verifier
Calls without an amount, received before their rate plansudo kanadr revaloriser (see Rate plans)

The kanadr commands run with the service’s settings: see Server settings.

Accounts

  • Forgotten password: the “Forgot your password?” link on the sign-in page, or Send invitation (the account’s Manage button) on the customer’s page. Without email set up: sudo kanadr inviter --courriel … prints the link.
  • Two-step verification phone lost: an administrator resets it in the portal, or sudo kanadr reinitialiser-second-facteur --courriel … on the VM.
  • Account locked after 5 failures: it unlocks by itself after 15 minutes.

Engine administration interface

Kanadr drives the telephony engine, whose administration interface stays closed. For in-depth troubleshooting, the procedure that opens it for the time of an intervention is shipped on the machine: /usr/share/doc/kanadr/advanced-troubleshooting.md.

Vendor support

For an intervention by the vendor, open time-limited access: portal, Diagnostics page, Support access section, or sudo kanadr acces-assistance ouvrir --heures 24. It is closed by default, can be closed at any time, and each of its actions is in the audit log.