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:
sluther
2009-09-17 00:00:23 -07:00
parent c8e2903766
commit 35bb375be3
2 changed files with 51 additions and 6 deletions

View File

@@ -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));
}