PHP Version 5
Author: Marcelo Gornstein (marcelog@gmail.com)
コード例 #1
0
ファイル: NodeController.php プロジェクト: marcelog/pagi
 /**
  * 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
ファイル: CallerIdFacade.php プロジェクト: d4rkstar/pagi
 /**
  * (non-PHPdoc)
  * @see PAGI\CallerId.ICallerId::setCallerPres()
  */
 public function setCallerPres($presentationMode)
 {
     $this->_client->exec('SET', array("CALLERPRES()={$presentationMode}"));
 }
コード例 #3
0
ファイル: AsteriskLoggerImpl.php プロジェクト: marcelog/pagi
 /**
  * (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);
 }