Added support for Australian numbers. When importing Australian numbers, they should be in the following format: 61xxxxxxxxxx. NPA is first two digits after country code, NXX is next 4 digits, and Station is final 4 digits.
This commit is contained in:
@@ -106,6 +106,8 @@ class voip_pool
|
||||
$fields['nxx'] = $nxx;
|
||||
if ($cc == '1') {
|
||||
$fields['station'] = substr($e164, 8);
|
||||
} elseif($cc == "61") {
|
||||
$fields['station'] = substr($e164, 12);
|
||||
} else {
|
||||
$fields['station'] = substr($e164, 4 + strlen($cc));
|
||||
}
|
||||
|
Reference in New Issue
Block a user