PHP Version 5
저자: Marcelo Gornstein (marcelog@gmail.com)
예제 #1
0
 /**
  * Used internally to log debug messages
  *
  * @param string $msg
  *
  * @return void
  */
 protected function logDebug($msg)
 {
     $logger = $this->client->getAsteriskLogger();
     $ani = $this->client->getChannelVariables()->getCallerIdName();
     $dnis = $this->client->getChannelVariables()->getDNIS();
     $logger->debug("NodeController: {$this->name}: {$ani} -> {$dnis}: {$msg}");
 }
예제 #2
0
 /**
  * (non-PHPdoc)
  * @see PAGI\CallerId.ICallerId::setCallerPres()
  */
 public function setCallerPres($presentationMode)
 {
     $this->_client->exec('SET', array("CALLERPRES()={$presentationMode}"));
 }
예제 #3
0
 /**
  * (non-PHPdoc)
  * @see PAGI\Logger\Asterisk.IAsteriskLogger::dtmf()
  */
 public function dtmf($msg)
 {
     $this->agi->log($msg, 'DTMF');
 }
예제 #4
0
파일: CDRFacade.php 프로젝트: marcelog/pagi
 /**
  * Access AGI client to set the variable.
  *
  * @param string $name  Variable name.
  * @param string $value Value.
  *
  * @return void
  */
 protected function setCDRVariable($name, $value)
 {
     $this->client->setVariable('CDR(' . $name . ')', $value);
 }