예제 #1
0
 /**
  * Access agi client to set the variable.
  *
  * @param string $name  Variable name
  * @param string $value Value
  */
 protected function setCDRVariable($name, $value)
 {
     $this->client->setVariable(sprint('CDR(%s)', $name), $value);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function dtmf($message)
 {
     $this->client->log($message, self::PRIORIT_DTMF);
 }
예제 #3
0
 /**
  * Registers a new node in the application. Returns the created node.
  *
  * @param string $name The node to be registered
  *
  * @return Node
  */
 public function register($name)
 {
     $node = $this->client->createNode($name);
     $this->nodes[$name] = $node;
     return $node;
 }