public static function getInstance() { // This will keep this driver from loading before we know // if we can extend the domdocument (such as during install) if (!class_exists('DOMDocument')) { return NULL; } if (!isset(self::$instance)) { self::$instance = new self(); Kohana::log('debug', 'FreeSWITCH -> New instance of FreeSwitch telephony driver created.'); self::reset(); } return self::$instance; }