PAGI\ChannelVariables\Impl\ChannelVariablesFacade

ChannelVariables facade implementation.

PHP Version 5

Properties

$variables

private array<mixed,string> $variables

Channel variables given by asterisk.

  • Visibility: private

$arguments

private array<mixed,string> $arguments

AGI Arguments (agi_arg_N).

  • Visibility: private

Methods

getAGIVariable

string PAGI\ChannelVariables\Impl\ChannelVariablesFacade::getAGIVariable(string $key)

Returns the given variable. Returns false if not set.

  • Visibility: protected

Arguments

  • $key string - <p>Variable to get.</p>

getChannel

string PAGI\ChannelVariables\IChannelVariables::getChannel()

Returns channel (agi_channel).

getLanguage

string PAGI\ChannelVariables\IChannelVariables::getLanguage()

Returns language (agi_language).

getType

string PAGI\ChannelVariables\IChannelVariables::getType()

Returns channel type (agi_type).

getUniqueId

string PAGI\ChannelVariables\IChannelVariables::getUniqueId()

Returns channel uniqueid (agi_uniqueid).

getVersion

string PAGI\ChannelVariables\IChannelVariables::getVersion()

Returns asterisk version (agi_version).

getCallerId

string PAGI\ChannelVariables\IChannelVariables::getCallerId()

Returns caller id number (agi_callerid).

getCallerIdName

string PAGI\ChannelVariables\IChannelVariables::getCallerIdName()

Returns caller id name (agi_calleridname).

getCallingPres

string PAGI\ChannelVariables\IChannelVariables::getCallingPres()

Returns CallingPres (agi_callingpres).

getCallingAni2

string PAGI\ChannelVariables\IChannelVariables::getCallingAni2()

Returns CallingAni (agi_callingani2).

getCallingTon

string PAGI\ChannelVariables\IChannelVariables::getCallingTon()

Returns CallingTon (agi_callington).

getCallingTns

string PAGI\ChannelVariables\IChannelVariables::getCallingTns()

Returns CallingTns (agi_callingtns).

getDNID

string PAGI\ChannelVariables\IChannelVariables::getDNID()

Returns DNID (agi_dnid).

getContext

string PAGI\ChannelVariables\IChannelVariables::getContext()

Returns context (agi_context).

getRDNIS

string PAGI\ChannelVariables\IChannelVariables::getRDNIS()

Returns RDNIS (agi_rdnis).

getRequest

string PAGI\ChannelVariables\IChannelVariables::getRequest()

Returns agi requested (agi_request).

getDNIS

string PAGI\ChannelVariables\IChannelVariables::getDNIS()

Returns extension dialed (dnis) (agi_extension).

getThreadId

string PAGI\ChannelVariables\IChannelVariables::getThreadId()

Returns thread id (agi_threadid).

getAccountCode

string PAGI\ChannelVariables\IChannelVariables::getAccountCode()

Returns account code (agi_accountcode).

getEnhanced

string PAGI\ChannelVariables\IChannelVariables::getEnhanced()

Returns if using enhanced (agi_enhanced).

getPriority

string PAGI\ChannelVariables\IChannelVariables::getPriority()

Returns context priority (agi_priority).

getTotalArguments

integer PAGI\ChannelVariables\IChannelVariables::getTotalArguments()

Returns total number of agi arguments.

getArgument

string PAGI\ChannelVariables\IChannelVariables::getArgument(integer $index)

Returns the given agi argument. (agi_arg_N).

Arguments

  • $index integer - <p>Argument number, starting with 0.</p>

getArguments

array<mixed,string> PAGI\ChannelVariables\IChannelVariables::getArguments()

Returns all arguments as an array.

getDirectoryConfig

string PAGI\ChannelVariables\IChannelVariables::getDirectoryConfig()

Returns the config directory for this running version of asterisk.

Uses environment variable AST_CONFIG_DIR.

getConfigFile

string PAGI\ChannelVariables\IChannelVariables::getConfigFile()

Returns the config file for this running version of asterisk.

Uses environment variable AST_CONFIG_FILE.

getDirectoryModules

string PAGI\ChannelVariables\IChannelVariables::getDirectoryModules()

Returns the modules directory for this running version of asterisk.

Uses environment variable AST_MODULE_DIR.

getDirectorySpool

string PAGI\ChannelVariables\IChannelVariables::getDirectorySpool()

Returns the spool directory for this running version of asterisk.

Uses environment variable AST_SPOOL_DIR.

getDirectoryMonitor

string PAGI\ChannelVariables\IChannelVariables::getDirectoryMonitor()

Returns the monitor directory for this running version of asterisk.

Uses environment variable AST_MONITOR_DIR.

getDirectoryVar

string PAGI\ChannelVariables\IChannelVariables::getDirectoryVar()

Returns the var directory for this running version of asterisk.

Uses environment variable AST_VAR_DIR.

getDirectoryData

string PAGI\ChannelVariables\IChannelVariables::getDirectoryData()

Returns the data directory for this running version of asterisk.

Uses environment variable AST_DATA_DIR.

getDirectoryLog

string PAGI\ChannelVariables\IChannelVariables::getDirectoryLog()

Returns the log directory for this running version of asterisk.

Uses environment variable AST_LOG_DIR.

getDirectoryAgi

string PAGI\ChannelVariables\IChannelVariables::getDirectoryAgi()

Returns the agi directory for this running version of asterisk.

Uses environment variable AST_AGI_DIR.

getDirectoryKey

string PAGI\ChannelVariables\IChannelVariables::getDirectoryKey()

Returns the key directory for this running version of asterisk.

Uses environment variable AST_KEY_DIR.

getDirectoryRun

string PAGI\ChannelVariables\IChannelVariables::getDirectoryRun()

Returns the run directory for this running version of asterisk.

Uses environment variable AST_RUN_DIR.

__construct

void PAGI\ChannelVariables\Impl\ChannelVariablesFacade::__construct(array<mixed,string> $variables, array<mixed,string> $arguments)

Constructor.

  • Visibility: public

Arguments

  • $variables array<mixed,string> - <p>Initial channel variables given by asterisk.</p>
  • $arguments array<mixed,string> - <p>AGI arguments given by asterisk (agi_arg_N).</p>

getNetworkScript

string PAGI\ChannelVariables\IChannelVariables::getNetworkScript()

Returns agi_network_script.

getNetwork

string PAGI\ChannelVariables\IChannelVariables::getNetwork()

Returns agi_network.