Fixed an issue with adding Australian DIDs to the cart.

This commit is contained in:
sluther
2009-09-17 01:28:54 -07:00
parent 35bb375be3
commit 3e8e4152e3
2 changed files with 22 additions and 0 deletions

View File

@@ -87,6 +87,10 @@ class base_voip_plugin extends base_product_plugin
$station = substr($e164, 8);
$sql = sqlSelect($db,"voip_pool","*",
"(date_reserved IS NULL OR date_reserved=0) AND (account_id IS NULL OR account_id=0) AND country_code=$cc AND npa=$npa AND nxx=$nxx AND station=$station");
} elseif ($cc == '61') {
$station = substr($e164, 12);
$sql = sqlSelect($db,"voip_pool","*",
"(date_reserved IS NULL OR date_reserved=0) AND (account_id IS NULL OR account_id=0) AND country_code=$cc AND npa=$npa AND nxx=$nxx AND station=$station");
} else {
$station = substr($e164, 4 + strlen($cc));
$sql = sqlSelect($db,"voip_pool","*",