Fixed a bug that prevented Australian numbers from provisioning

This commit is contained in:
sluther 2009-09-17 22:37:04 -07:00
parent c690acb0f1
commit a0e4f2b002

View File

@ -1234,6 +1234,9 @@ class voip
if ($cc == '1') {
$station = substr($e164, 8);
$where = "country_code=1 and npa=::$npa:: and nxx=::$nxx:: and station=::$station::";
} elseif ($cc == '61') {
$station = substr($e164, 12);
$where = "country_code=61 and npa=::$npa:: and nxx=::$nxx:: and station=::$station::";
} else {
$station = substr($e164, 4 + strlen($cc));
$where = "country_code=::$cc:: and station=::$station::";