setVariable() public method

Sets a variable. Uses agi command "SET VARIABLE".
public setVariable ( string $name, string $value ) : void
$name string Variable name.
$value string Variable value.
return void
Example #1
0
 /**
  * Access AGI client to set the variable.
  *
  * @param string $name  Variable name.
  * @param string $value Value.
  *
  * @return void
  */
 protected function setCallerIdVariable($name, $value)
 {
     $this->_client->setVariable('CALLERID(' . $name . ')', $value);
 }
Example #2
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);
 }