Every client and every carrier seems to want numbers in a different format: one sends 00447700900123, another +447700900123, a vendor wants 1234#447700900123. Callee rewrite rules and prefix conversion in your VOS3000 VoIP switch make all of them work without breaking billing.
The golden rule: one internal number format
Choose one format inside your switch — for example full international format with no 00 or + (447700900123). Then:
- On the way in, rewrite each client’s format to your internal format.
- On the way out, rewrite your internal format to what each vendor wants.
Your rate tables use the internal format, so billing is always matched against the same prefixes, whatever the client or vendor does.
Common prefix conversions
| Situation | Number in | Number out | Rule |
|---|---|---|---|
| Client dials with 00 | 00447700900123 | 447700900123 | Remove leading 00 (client side) |
| Client sends a private prefix | 777447700900123 | 447700900123 | Remove leading 777 (client side) |
| Vendor needs a tech prefix | 447700900123 | 1234#447700900123 | Add 1234# (vendor side) |
| Vendor wants national format | 447700900123 | 07700900123 | Replace 44 with 0 (vendor side) |
The exact screen where you enter each rule depends on your VOS3000 version, but the logic is the same: match a prefix, remove or replace it, and add what is needed.
Blocking unwanted numbers and traffic
Rewrite rules also help keep bad traffic off your switch:
- Allow only the prefixes a client buys. A client who buys UK termination should not be able to dial premium-rate or satellite prefixes.
- Reject impossible numbers. Numbers that are far too short or too long for the destination are often test or fraud calls.
- Filter by traffic type. If you only want CLI routes, or want to keep calling-card traffic off a premium route, limit which clients can reach that routing gateway.
These controls are part of a wider anti-fraud setup — see our VOS3000 security and anti-fraud guide.
Test every rule
- Make a test call in each format your client may send.
- Check the CDR: the callee number, the matched rate and the vendor.
- Check the SIP trace to the vendor shows the format they asked for.
A wrong rule usually shows up as a 404 from the vendor or a call billed at the wrong rate. The SIP call flow guide explains where in the call each rule runs.
Let us set it up
Customers who rent VOS3000 from us can ask our 24/7 team to build and test rewrite rules for new clients and vendors. Message us on WhatsApp +1 (626) 977-8241.
Frequently asked questions
What is a callee rewrite rule in VOS3000?
A rule that changes the dialled (called) number before the switch routes or sends it. It is used to strip or add prefixes so the number matches what your rate tables and vendors expect.
Where should I put a rewrite rule: on the client side or the vendor side?
Put client-specific clean-up (for example removing a client prefix) on the client side, and carrier-specific formatting (for example a tech prefix) on the vendor side. Your internal format stays the same in between, so billing stays correct.
Why are calls billed at the wrong rate after I added a rule?
Rates are matched by prefix. If a rewrite runs at the wrong stage, the number the billing engine sees may not match the prefix you priced. Test with a CDR check after every rule change.
Can VOS3000 block certain number patterns?
Yes. You can limit which prefixes each client may dial and reject numbers that do not match the expected format, for example numbers that are too short or too long.
Need a VOS3000 or Sippy server?
Talk to our team — we'll recommend the right plan for your traffic.