PHP Version 5
Author: 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
 /**
  * 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);
 }