System information

For more control over the A number you can use the prefix rules form or manually edit the v_check_pxrules stored procedure.
Prefixed can be also used for authentication, routing and billing.
5.100. How to rewrite caller/called numbers
The server is configured by default to do some basic number normalization like removing junk characters from the numbers, removing + or 00 and
a few others. To control this operation (change or turn on/off) you can change the normalizexxx global configuration options: normalize_clean,
normalizenumbers, normalize_localpx, minnormalizelength, etc.
If you just need to add or remove a techprefix, then you should use the “techprefix” field associated to the caller/called (traffic sender / sip server).
This is accessible on the Users and devices form -> Edit tab
If you would like some more, then use the Routing -> Prefix Rules form. With this method you can simply add or remove prefixes based on a few
simple rules. For more details please read the prefix rules section.
For more control, use the Routing -> Dial plan form. With this feature you will have direct access to the dialplan stored procedure and you can use
the power of the SQL language to implement any kind of rules and number rewriting. For more details please read the dial plan section.
It is a good practice to always have the IEC (international escape code: + ,00,011,etc) removed before the routing is done and add it back only for the
outgoing routes when this is required (for example by filling the techprefix for that route). This will also simplify your routing and billing rules (you can
have the price listing filled only with numbers that begins with the country code and not with IEC codes)
Please note that when you are using prefix based routing or billing, than usually the already modified (normalized) number are used by these modules. This
means that for example if user will dial 1999999 and if you rewrite the 1 prefix to 44222 (resulting in 44222999999) then the routing and the billing will
be done after 44222.. and not after the original number.
In the cdr record 3 called (B) number is stored:
-origcallernumber: this is the original called number arrived to our server
-callednumber: this is the normalized number (with applied number rewrite rules)
-dialednumber: this is the number sent out on the b call leg (this can have an additional techprefix for example)
5.101. Reseller checklist
-set the “resellerbilling” global config option to true
-create at least one Owner account and put all top reseller below this account (needed for proper billing).
-unlimited reseller child/parent relationship can be created (limited by the maxresellers” global config options)