PHP Version 5
Author: Marcelo Gornstein (marcelog@gmail.com)
Example #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}");
 }
Example #2
0
 /**
  * (non-PHPdoc)
  * @see PAGI\CallerId.ICallerId::setCallerPres()
  */
 public function setCallerPres($presentationMode)
 {
     $this->_client->exec('SET', array("CALLERPRES()={$presentationMode}"));
 }
Example #3
0
 /**
  * (non-PHPdoc)
  * @see PAGI\Logger\Asterisk.IAsteriskLogger::dtmf()
  */
 public function dtmf($msg)
 {
     $this->agi->log($msg, 'DTMF');
 }
Example #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);
 }