全部博文(156)
分类: LINUX
2011-08-16 14:09:21
AES_DECRYPT AES_DECRYPT(key,string) Decrypt a string encoded in base64 with AES given a 16 character key.
AES_ENCRYPT AES_ENCRYPT(key,string) Encrypt a string with AES given a 16 character key.
AGC AGC(channeldirection) Apply automatic gain control to audio on a channel.
AGENT AGENT(agentid[:item]) Gets information about an Agent
ARRAY ARRAY(var1[,var2[,...][,varN]]) Allows setting multiple variables at once.
AST_CONFIG AST_CONFIG(config_file,category,var Retrieve a variable from a configuration file.
AUDIOHOOK_INHERIT AUDIOHOOK_INHERIT(source) Set whether an audiohook may be inherited to another channel
BASE64_DECODE BASE64_DECODE(string) Decode a base64 string.
BASE64_ENCODE BASE64_ENCODE(string) Encode a string in base64.
BLACKLIST BLACKLIST() Check if the callerid is on the blacklist.
CALLERID CALLERID(datatype[,CID]) Gets or sets Caller*ID data on the channel.
CALLERPRES CALLERPRES() Gets or sets Caller*ID presentation on the channel.
CDR CDR(name[,options]) Gets or sets a CDR variable.
CHANNEL CHANNEL(item) Gets/sets various pieces of information about the channel.
CHANNELS CHANNELS([regular_expression]) Gets the list of channels, optionally filtering by a regular expression.
CHECKSIPDOMAIN CHECKSIPDOMAIN(domain) Checks if domain is a local domain.
CSV_QUOTE CSV_QUOTE(string) Quotes a given string for use in a CSV file, escaping embedded quotes as necessary
CURL CURL(url[,post-data]) Retrieves the contents of a URL
CURLOPT CURLOPT(
CUT CUT(varname,char-delim,range-spec) Slices and dices strings, based upon a named delimiter.
DB DB(family/key) Read from or write to the Asterisk database.
DB_DELETE DB_DELETE(family/key) Return a value from the database and delete it.
DB_EXISTS DB_EXISTS(family/key) Check to see if a key exists in the Asterisk database.
DENOISE DENOISE(channeldirection) Apply noise reduction to audio on a channel.
DEVICE_STATE DEVICE_STATE(device) Get or Set a device state.
DIALGROUP DIALGROUP(group[,op]) Manages a group of users for dialing.
DIALPLAN_EXISTS DIALPLAN_EXISTS(context[,extension[ Checks the existence of a dialplan target.
DUNDILOOKUP DUNDILOOKUP(number[,context[,option Do a DUNDi lookup of a phone number.
DUNDIQUERY DUNDIQUERY(number[,context[,options Initiate a DUNDi query.
DUNDIRESULT DUNDIRESULT(id[,resultnum]) Retrieve results from a DUNDIQUERY.
ENUMLOOKUP ENUMLOOKUP(number[,method-type[,opt General or specific querying of NAPTR records for ENUM or ENUM-like DNS pointers.
ENUMQUERY ENUMQUERY(number[,method-type[,zone Initiate an ENUM query.
ENUMRESULT ENUMRESULT(id,resultnum) Retrieve results from a ENUMQUERY.
ENV ENV(varname) Gets or sets the environment variable specified.
EVAL EVAL(variable) Evaluate stored variables
EXCEPTION EXCEPTION(field) Retrieve the details of the current dialplan exception.
EXISTS EXISTS(data) Test the existence of a value.
EXTENSION_STATE EXTENSION_STATE(extension[@context] Get an extension's state.
FIELDQTY FIELDQTY(varname,delim) Count the fields with an arbitrary delimiter
FILE FILE(filename,offset,length) Obtains the contents of a file.
FILTER FILTER(allowed-chars,string) Filter the string to include only the allowed characters
GLOBAL GLOBAL(varname) Gets or sets the global variable specified.
GROUP GROUP([category]) Gets or sets the channel group.
GROUP_COUNT GROUP_COUNT([groupname][@category]) Counts the number of channels in the specified group.
GROUP_LIST GROUP_LIST() Gets a list of the groups set on a channel.
GROUP_MATCH_COUNT GROUP_MATCH_COUNT(groupmatch[@categ Counts the number of channels in the groups matching the specified pattern.
HASH HASH(hashname[,hashkey]) Implementation of a dialplan associative array
HASHKEYS HASHKEYS(hashname) Retrieve the keys of the HASH() function.
HINT HINT(extension[@context][,options]) Get the devices set for a dialplan hint.
IAXPEER IAXPEER(peername[,item]) Gets IAX peer information.
IAXVAR IAXVAR(varname) Sets or retrieves a remote variable.
ICONV ICONV(in-charset,out-charset,string Converts charsets of strings.
IF IF(expresion?[true][:false]) Check for an expresion.
IFMODULE IFMODULE(modulename.so) Checks if an Asterisk module is loaded in memory.
IFTIME IFTIME(timespec?[true][:false]) Temporal Conditional.
IMPORT IMPORT(channel,variable) Retrieve the value of a variable from another channel.
ISNULL ISNULL(data) Check if a value is NULL.
KEYPADHASH KEYPADHASH(string) Hash the letters in string into equivalent keypad numbers.
LEN LEN(string) Return the length of the string given.
LISTFILTER LISTFILTER(varname,delim,value) Remove an item from a list, by name.
LOCAL LOCAL(varname) Manage variables local to the gosub stack frame.
LOCAL_PEEK LOCAL_PEEK(n,varname) Retrieve variables hidden by the local gosub stack frame.
LOCK LOCK(lockname) Attempt to obtain a named mutex.
MAILBOX_EXISTS MAILBOX_EXISTS(mailbox[@context]) Tell if a mailbox is configured.
MATH MATH(expression[,type]) Performs Mathematical Functions.
MD5 MD5(data) Computes an MD5 digest.
MEETME_INFO MEETME_INFO(
MINIVMACCOUNT MINIVMACCOUNT(
MINIVMCOUNTER MINIVMCOUNTER(
PP_EACH_EXTENSION PP_EACH_EXTENSION(
PP_EACH_USER PP_EACH_USER(
QUEUE_MEMBER QUEUE_MEMBER(queuename,option) Count number of members answering a queue.
QUEUE_MEMBER_COUNT QUEUE_MEMBER_COUNT(queuename) Count number of members answering a queue.
QUEUE_MEMBER_LIST QUEUE_MEMBER_LIST(queuename) Returns a list of interfaces on a queue.
QUEUE_MEMBER_PENALTY QUEUE_MEMBER_PENALTY(queuename,inte Gets or sets queue members penalty.
QUEUE_VARIABLES QUEUE_VARIABLES(queuename) Return Queue information in variables.
QUEUE_WAITING_COUNT QUEUE_WAITING_COUNT([queuename]) Count number of calls currently waiting in a queue.
QUOTE QUOTE(string) Quotes a given string, escaping embedded quotes as necessary
RAND RAND([min][,max]) Choose a random number in a range.
REALTIME REALTIME(family,fieldmatch[,value[, RealTime Read/Write Functions.
REALTIME_DESTROY REALTIME_DESTROY(family,fieldmatch[ RealTime Destroy Function.
REALTIME_FIELD REALTIME_FIELD(family,fieldmatch,va RealTime query function.
REALTIME_HASH REALTIME_HASH(family,fieldmatch,val RealTime query function.
REALTIME_STORE REALTIME_STORE(family,field1,fieldN RealTime Store Function.
REGEX REGEX("regular expression" string) Check string against a regular expression.
SET SET(varname[=value]) SET assigns a value to a channel variable.
SHA1 SHA1(data) Computes a SHA1 digest.
SHARED SHARED(varname[,channel]) Gets or sets the shared variable specified.
SHELL SHELL(command) Executes a command as if you were at a shell.
SIP_HEADER SIP_HEADER(name[,number]) Gets the specified SIP header.
SIPCHANINFO SIPCHANINFO(item) Gets the specified SIP parameter from the current channel.
SIPPEER SIPPEER(peername[,item]) Gets SIP peer information.
SORT SORT(key1:val1[,key2:val2[,...]]) Sorts a list of key/vals into a list of keys, based upon the vals.
SPEECH SPEECH(argument) Gets information about speech recognition results.
SPEECH_ENGINE SPEECH_ENGINE(name) Change a speech engine specific attribute.
SPEECH_GRAMMAR SPEECH_GRAMMAR([nbest_number/]resul Gets the matched grammar of a result if available.
SPEECH_RESULTS_TYPE SPEECH_RESULTS_TYPE() Sets the type of results that will be returned.
SPEECH_SCORE SPEECH_SCORE([nbest_number/]result_ Gets the confidence score of a result.
SPEECH_TEXT SPEECH_TEXT([nbest_number/]result_n Gets the recognized text of a result.
SPRINTF SPRINTF(format,arg1[,arg2[,...][,ar Format a variable according to a format string.
STAT STAT(flag,filename) Does a check on the specified file.
STRFTIME STRFTIME([epoch][,timezone[,format] Returns the current date/time in the specified format.
STRPTIME STRPTIME(datetime,timezone,format) Returns the epoch of the arbitrary date/time string structured as described by the format.
SYSINFO SYSINFO(
TIMEOUT TIMEOUT(timeouttype) Gets or sets timeouts on the channel. Timeout values are in seconds.
TOLOWER TOLOWER(string) Convert string to all lowercase letters.
TOUPPER TOUPPER(string) Convert string to all uppercase letters.
TRYLOCK TRYLOCK(lockname) Attempt to obtain a named mutex.
TXTCIDNAME TXTCIDNAME(number[,zone-suffix]) TXTCIDNAME looks up a caller name via DNS.
UNLOCK UNLOCK(lockname) Unlocks a named mutex.
URIDECODE URIDECODE(data) Decodes a URI-encoded string according to RFC 2396.
URIENCODE URIENCODE(data) Encodes a string to URI-safe encoding according to RFC 2396.
VALID_EXTEN VALID_EXTEN([context],extension[,pr Determine whether an extension exists or not.
VERSION VERSION([info]) Return the Version info for this Asterisk.
VMCOUNT VMCOUNT(vmbox[@context][,folder]) Count the voicemails in a specified mailbox.
VOLUME VOLUME(direction) Set the TX or RX volume of a channel.