Fixed a bug that prevented Australian numbers from provisioning
This commit is contained in:
parent
c690acb0f1
commit
a0e4f2b002
@ -1234,6 +1234,9 @@ class voip
|
|||||||
if ($cc == '1') {
|
if ($cc == '1') {
|
||||||
$station = substr($e164, 8);
|
$station = substr($e164, 8);
|
||||||
$where = "country_code=1 and npa=::$npa:: and nxx=::$nxx:: and station=::$station::";
|
$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 {
|
} else {
|
||||||
$station = substr($e164, 4 + strlen($cc));
|
$station = substr($e164, 4 + strlen($cc));
|
||||||
$where = "country_code=::$cc:: and station=::$station::";
|
$where = "country_code=::$cc:: and station=::$station::";
|
||||||
|
Reference in New Issue
Block a user