getFullVariable() public method

Returns a variable value. Uses agi command "GET FULL VARIABLE". False if variable is not set.
public getFullVariable ( string $name, string $channel = false ) : string
$name string Variable name.
$channel string Optional channel name.
return string
示例#1
0
 /**
  * Access AGI client to get the variables.
  *
  * @param string $name Variable name.
  *
  * @return string
  */
 protected function getCallerIdVariable($name)
 {
     return $this->_client->getFullVariable('CALLERID(' . $name . ')');
 }
示例#2
0
 /**
  * Access AGI client to get the variables.
  *
  * @param string $name Variable name.
  *
  * @return string
  */
 protected function getCDRVariable($name)
 {
     return $this->client->getFullVariable('CDR(' . $name . ')');
 }