/** * 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}"); }
/** * (non-PHPdoc) * @see PAGI\CallerId.ICallerId::setCallerPres() */ public function setCallerPres($presentationMode) { $this->_client->exec('SET', array("CALLERPRES()={$presentationMode}")); }
/** * (non-PHPdoc) * @see PAGI\Logger\Asterisk.IAsteriskLogger::dtmf() */ public function dtmf($msg) { $this->agi->log($msg, 'DTMF'); }
/** * 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); }