Even better do not modify the supplied class as it will be overwritten on upgrade. If you look in setup/global.inc.complex.sample you will see this option per data source:

"E164_class" => "E164_custom", // define a custom class to determine the E164 for a telephone number // see E164 classes as example in library/cdr_generic.php

Adrian


On Jun 11, 2009, at 3:56 PM, Joan wrote:

I'm using the opensips+cdrtool+mediaproxy+freeradius solution for an
opensips setup.
My users are dialing directly the number in case of national calls,
i.e. 912123123.
In the SIP Destination table, it gets writen as [email protected].

And the problem is that I cannot get a price for the calls because, it
depends on the definition of E164_Europe in the cdr_generic.php
Since it doesn't fit on any of the categories, the call is just free.

My question is, what is the better solution for this?

1.- Users have to mandatory use either 912123123 or
00international_code912123123 for the call
2.- I correct the E164_Europe to suit my needs
3.- Somehow change the values before normalizing the table?
4.- Something else?

Thanks for your answers

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to