[OpenSIPS-Users] cdrtool custom e164 class
Aubrey Wells
dozure at gmail.com
Fri Feb 14 06:33:14 CET 2014
Hey all,
I'm trying to create a custom e164 class in cdrtool. I started out
with just uncommenting the default example one in global.inc that is
just a copy of the real E164_US class found in cdr_generic.php; it
looks like:
class E164_US_Custom extends E164 {
function E164_US($intAccessCode='011',
$natAccessCode='[1-9][0-9]{2}',$CountryCode='',$ENUMtldRegexp="([0-9]{7,})")
{
$this->regexp_international = "/^".$intAccessCode."([1-9][0-9]{5,})\$/";
$this->regexp_national = "/^".$natAccessCode."([0-9]{3,})\$/";
$this->CountryCode = trim($CountryCode);
$this->ENUMtldRegexp = trim($ENUMtldRegexp);
}
}
To my surprise, this prevents ratingEngine.php from running, and web
requests bomb out with:
PHP Fatal error: Class 'E164' not found in /etc/cdrtool/global.inc on line 205
I tried placing it in phplib/local.inc instead, with similar results.
Is this a bug, or am I missing something really obvious?
TIA.
-----------
Aubrey
More information about the Users
mailing list