`

asterisk dialplan可用函数

阅读更多

--------------------------------------------------------------------------------

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(<option>)                    Set options for use with the CURL() function

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(<keyword>,<confno>)      Query a given conference of various properties.

MINIVMACCOUNT         MINIVMACCOUNT(<account>:item)        Gets MiniVoicemail account information

MINIVMCOUNTER         MINIVMCOUNTER(<account>:name[:opera  Reads or sets counters for MiniVoicemail message

PP_EACH_EXTENSION     PP_EACH_EXTENSION(<mac>|<template>)  Execute specified template for each extension

PP_EACH_USER          PP_EACH_USER(<string>|<exclude_mac>  Generate a string for each phoneprov 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(<parameter>)                 Returns system information specified by parameter.

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.


分享到:
评论

相关推荐

    Asterisk Dialplan命令中文翻译

    Asterisk Dialplan命令中文翻译,希望帮到大家。

    asterisk_dialplan学习笔记

    asterisk_dialplan学习笔记,归纳总结出来的,强烈推荐

    asterisk dialplan中文版

    对asterisk有一定的简单认识之后,需要对asterisk进行更高级的复杂的拨号方案的配置之时,电话的未来之路已经不能再给予帮助,那么这个拨号方案就是一个必须品。里边详细讲解了如何使用变量和如何编写复杂的拨号方案...

    Asterisk 中dialplan实现去电黑名单

    Asterisk 中dialplan实现去电黑名单

    asterisk info 录音实现方案

    asterisk 使用info 触发录音,http告知服务器;带有主叫信息,被叫信息等。

    Asterisk CookBook.pdf

    and implementers, then show solutions to those problems using the Asterisk dialplan. As you go through the recipes and start looking at the solutions, you may think, “Oh, that’s a neat idea, but ...

    Asterisk拨号方案常用函数

    这是一些关于拨号常用的函数,通过这些函数可能更深了解拨号

    asterisk app函数中文说明

    asterisk app函数中文说明,希望帮到大家

    Asterisk Cookbook

    Asterisk has a wealth of features to help you customize your PBX to fill very specific business needs. This short cookbook offers recipes for tackling dialplan ...Record calls from your Asterisk dialplan

    Asterisk权威指南中文

    Asterisk权威指南(第3版)第06章Dialplan基础 Asterisk权威指南(第3版)第07章外线连接 Asterisk权威指南(第3版)第08章语音邮件 Asterisk权威指南(第3版)第10章深入Dialplan Asterisk权威指南(第3版)第11章Parking&...

    Asterisk.Cookbook(第1版)

    中文名: Asterisk Cookbook (第1版) 原名: Asterisk Cookbook:...Record calls from your Asterisk dialplan 目录: Chapter 1 Dialplan Fundamentals Chapter 2 Call Control Chapter 3 Audio Manipulation

    FreeSwitch的mod_dialplan_xml模块分析

    dialplan包含四个模块,mod_dialplan_directory|mod_dialplan_asterisk|mod_dialplan_xml|mod_dialplan_yaml。freeswitch默认是加载mod_dialplan_xml,即配置文件是采用XML文件格式。XML文件格式非常灵活,而且可以...

    asterisk AGI应用说明

    asterisk AGI应用说明,主要讲述在asterisk中如何应用AGI.

    asterisk函数说明

    在该文档中对asterisk的各个功能模块的实现经行了详细的说明,对于学习asterisk的朋友是一份很好的工具。

    Asterisk 简介 Asterisk 架构 Asterisk程序框图

    Asterisk 简介 Asterisk 架构 Asterisk程序框图

    asterisk中英文教程

    asterisk中英文教材,包括原英文文档asterisk.pdf和部分翻译中文版,翻译版如下:第02章Asterisk体系结构 第05章用户设备配置 第06章Dialplan基础 第07章外线连接 第08章语音邮件 第10章深入Dialplan 第11章Parking&...

    Asterisk 代码学习笔记,深入浅出asterisk,asterisk通道,呼叫情景(call scenario)

    Asterisk 代码学习笔记,深入浅出asterisk,由于工作上的VOIP项目需要,最近亲密接触了一下asterisk工程代码。关于asterisk在VOIP上的伟大地位和作用,俺就不絮叨了,请看前作:Astersik+Radius简易攻略 国内对于...

    asterisk for windows

    Asterisk[1] 是一个开放源代码的软件VoIP PBX系统,它是一个运行在Linux环境下的纯软件实施方案。Asterisk是一种功能非常齐全的应用程序,提供了许多电信功能,能够把你的x86机 器变成你自己的交换机,还能够当作一...

    Asterisk.NET 1.6.3 控制Asterisk

    用于控制Asterisk的.net类库,包含了AMI和FastAGI,最新的1.6.3版本

    asterisk16版本安装包

    asterisk16版本安装包,下载之后直接编译安装即可。

Global site tag (gtag.js) - Google Analytics