Esempio n. 1
0
 /**
  * Ensure the media server call is alive
  *
  * @param string $errorCode
  * @return boolean
  */
 protected function _ensureAliveMediaServerCallLeg($errorCode)
 {
     if (!$this->_msCallLeg->isAlive()) {
         $this->dispatchErrorEvent($errorCode);
         return false;
     }
     return true;
 }
Esempio n. 2
0
File: Filter.php Progetto: cwcw/cms
 /**
  * @param Streamwide_Engine_Media_Server_Call_Leg $mediaServerCallLeg
  * @return void
  * @throws InvalidArgumentException
  */
 public function setMediaServerCallLeg(Streamwide_Engine_Media_Server_Call_Leg $mediaServerCallLeg)
 {
     if (!$mediaServerCallLeg->isAlive()) {
         throw new InvalidArgumentException(__METHOD__ . ' requires parameter 1 to be an alive media server call leg');
     }
     $this->_mediaServerCallLeg = $mediaServerCallLeg;
 }