Margin protection makes a carrier carry the call only if it leaves you the minimum profit you set. It is the difference between routing cheap and routing profitably: LCR picks the cheapest carrier, but nothing stops it from picking one that still loses you money on that particular destination.
Where it is
Routing → Dial Peers → CONFIGURE on the peer, section 2. How the call goes out, Protect the margin block.
How it works
For every number, NEXIA compares two prices it already holds:
| Price | Where it comes from |
|---|---|
| Selling | The tariff you pick in Selling tariff to protect — what you charge the client for that number. |
| Cost | The provider tariff assigned to the Termination Point — what that carrier charges you for that number. |
The difference is the margin: selling − cost. A carrier that does not clear
the floor is not used for that number, and the call moves on to the next one. If none
clears it, the dial peer does not take the call and it falls through to the next peer in the
routing group.
The two floors
- Min. margin / min: minimum profit per minute, in the tariff's currency. For example
0.002requires keeping at least two thousandths per minute. - or min. margin %: minimum profit as a percentage of the selling rate. For example
15requires keeping 15% of what you charge.
Set both and a carrier has to clear both.
-0.001 means
“I accept losing up to one thousandth per minute”, useful when you want to keep a
destination alive at a controlled loss. 0 is the classic “never lose
money”. Leaving the tariff empty turns the check off entirely.Example
You sell Colombia mobile at 0.0220 and have two carriers, one at
0.0100 and one at 0.0215. With a 0.005 floor:
- Carrier A leaves
0.0120→ clears the floor, it is used. - Carrier B leaves
0.0005→ short of it, left out for that destination.
Carrier B stays available wherever it is profitable: the check runs per number, not per carrier.
Check it before your traffic does
Further down the same peer sits the Simulator. Type a real number and it shows the selling rate applied, the configured floor, the margin each carrier leaves, and which ones were rejected and why.
How precise the check is
Margin is evaluated with the price of the most specific prefix your tariffs carry. If
your rule covers a whole country (say 51) while the tariffs price 519,
protection applies there — where the money actually changes.