Example #1
-1
 /**
  *
  * @return Asterisk
  */
 public static function getInstance()
 {
     // create a new instance if there isnt one already
     if (!isset(self::$instance)) {
         self::$instance = new self();
         Kohana::log('debug', 'Asterisk -> New instance of Asterisk telephony driver created.');
         // reset all the accumulators in this driver
         self::reset();
     }
     // return this instance
     return self::$instance;
 }