Exemplo n.º 1
0
 /**
  * Initialize the fax environment detection
  *
  * @return void
  */
 protected function _initFaxEnvDetection()
 {
     $this->_relayer->reset();
     $this->_relayer->setOptions(array(Streamwide_Engine_Automatic_Signal_Relayer::OPT_PRIORITY => PHP_INT_MAX));
     $this->_relayer->setLeftCallLeg($this->_sipCallLeg);
     $this->_relayer->setRightCallLeg($this->_msCallLeg);
     $this->_relayer->setEventsList(array(Streamwide_Engine_Events_Event::MOVED, Streamwide_Engine_Events_Event::FAILMOVED, Streamwide_Engine_Events_Event::OKMOVED));
     $this->_relayer->addEventListener(Streamwide_Engine_Events_Event::SIGNAL_RELAYED, array('callback' => array($this, 'onFaxEnvDetectionUpdate')));
     $this->_relayer->start();
 }