public function getDIDMinutesInfo($DIDNumber) { $client = new SoapClient(null, array('location' => "http://" . DIDX_SITE . "/cgi-bin/WebGetDIDSMinutes.cgi", 'trace' => 1, 'uri' => "http://" . DIDX_SITE . "/GetMinutes")); try { $ret = $client->getDIDMinutesInfo(DIDX_ID, DIDX_PASS, $DIDNumber); $ret = $ret['Array'][1]; } catch (SoapFault $exception) { $ret = false; } catch (Exception $e) { $ret = false; } $cost = $this->GetCostOfDIDByNumber($DIDNumber); $ret = array("Setup Price" => $this->setupcost($cost[0]), "Monthly Price" => $this->monthly($cost[1]), "Minutes Included" => $this->freeminutes($ret[1]), "After free Minute Charges" => $this->minutecharge($ret[2]), "Channels" => $ret[3]); return $ret; }