[Spce-user] billing issues in a development environment

Andreas Granig agranig at sipwise.com
Wed Mar 28 07:29:55 EDT 2012


Hi Joan,

On 03/28/2012 08:16 AM, Joan Cifre (ibred) wrote:
> I've tried with your pattern ^6[0-9]+$ for example and... IT SEEMS TO
> WORK!

Perfect.

> - The billing matching pattern is verified before or after the "Rewrite
> matching rule" of the Calle?

One of the most important facts of the platform is that it internally
deals exclusively with E.164 formats, that is, it expects every number
to be in format "<country-code><area-code><subscriber-number>", without
any leading international prefixes like "+" or "00".
So with your rewrite rules, make sure that every formats you expect your
customers to dial are being rewritten to E.164 format.

Having said that, everything else within the plaform also operates on
this format, so any pattern you're providing (be it these billing
destination patterns, or patterns for peering selections or block lists
etc) will need to match this E.164 format, which means you always need
to take into account the country code and area code (where applicable)
as well when designing your patterns.

> - If I fill the column of "Onpeak follow rate" (for example), in cents,
> I got the charges in cents? Or the system multiplies it by 100 to got
> Euro (or dollar or whatever)?

In the rate columns, you define the value in cents per second, and in
MySQL it'll show up in cents as well in accounting.cdr.customer_cost.
Just remember that the rate you put into the billing profile is always
cents per second, not cents per interval.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120328/612adf1c/attachment-0001.asc>


More information about the Spce-user mailing list