`

asterisk1.6支持的函数

阅读更多

Installed Custom Functions:
--------------------------------------------------------------------------------
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 1.6

    8. **兼容性与互操作性**:Asterisk 1.6支持多种硬件设备和第三方软件,如各种SIP电话、硬件编解码器和PBX系统,以及与其他VoIP系统的互操作。 9. **安全性**:Asterisk 1.6加强了安全措施,包括身份验证、加密和...

    Asterisk1.6最全中文语音包.zip

    这个"Asterisk1.6最全中文语音包.zip"是专为Asterisk 1.6版本设计的,目的是为了让系统能够支持中文语音服务,提供更友好的用户体验。 在Asterisk系统中,语音包是非常关键的一部分。它们包含了各种语音提示、菜单...

    Asterisk1.6最全的中文语音包

    Asterisk1.6最全的中文语音包。解压后上传到asterisk服务器,直接覆盖原sounds目录即可。

    asterisk-1.6.2.6-2来电显示的bug修复以及asterisk-1.6.2.6-2 rpm重新打包

    标题中的“asterisk-1.6.2.6-2来电显示的bug修复”涉及到的是 Asterisk 通信软件的一个特定版本及其存在的问题。Asterisk 是一个开源的PBX(Private Branch eXchange)系统,它允许用户创建自己的电话网络,并提供...

    Asterisk 1.6 - Build feature-rich telephony systems with Asterisk Sep 2009

    ### Asterisk 1.6 – 构建功能丰富的电话系统 #### 一、Asterisk 1.6 概览 Asterisk是一款开源的框架软件,用于构建通信应用程序和服务,如电话交换机(PBX)、IVR系统、会议桥接服务等。自2001年发布以来,...

    asterisk 1.6

    详细介绍asterisk1.6,开发不可多得材料

    Asterisk 1.6.0.1参考手册

    Asterisk 1.6.0.1参考手册 非常好的学习资料

    Asterisk1.6最全的中文语音包(2)

    Asterisk1.6最全的中文语音包。解压后上传到asterisk服务器,直接覆盖原sounds目录即可。

    Build feature-rich telephony systems with Asterisk

    相比早期版本,Asterisk 1.6在稳定性和功能上有了显著提升,支持更多的硬件设备和更广泛的通信协议,使得构建复杂电话系统变得更加容易。 ### 构建功能丰富的电话系统的必要性 随着企业对通信需求的不断增长,传统...

    asterisk-1.6 command

    Asterisk是一款强大的开源PBX(Private Branch Exchange)软件,被广泛应用于构建语音通信系统,如电话交换机、呼叫中心等。Asterisk CLI(Command Line Interface)是其管理界面的一部分,通过一系列命令行指令,...

    Asterisk拨号方案常用函数

    在Asterisk中,拨号方案(Dialplan)是控制通话流程的核心元素,它由一系列的函数组成,这些函数用于处理从接听电话到挂断的整个过程。以下是一些常见的拨号方案函数的详细说明: 1. Answer():此函数用于接听一个...

    Asterisk.NET.1.6.3.1.zip

    Asterisk.NET 1.6.3.1 是一个针对 Asterisk PBX 系统的.NET接口库,它允许开发者使用C#、VB.NET或其他.NET兼容的语言与Asterisk进行交互。Asterisk是一个开源的IP电话系统,广泛应用于VoIP(Voice over IP)通信,...

    Asterisk安装.pdf

    Asterisk是一款功能强大的开源PBX系统,它支持多种语音通信协议,并且能够提供丰富的电话管理功能。本文档将详细介绍如何在Linux CentOS 5.0环境下安装Asterisk 1.6.1.20版本。对于初次接触Asterisk的新手来说,本...

    asterisk app函数中文说明

    Asterisk是一个开源的PBX软件,它提供了丰富的应用程序接口(API)和函数,用于构建和定制通信系统。本文将详细介绍一些Asterisk的app函数,帮助你理解和应用这些功能。 1. Authenticate: 此函数用于鉴别用户,通常...

    Asterisk 手册

    Asterisk 1.6.0.1版 html格式

    asterisk gateway interface 1.4 and 1.6 programming

    ### Asterisk Gateway Interface (AGI) 1.4 和 1.6 编程 #### 安装“原味”Asterisk 本章节详细介绍了如何安装“原味”(即未经修改)版本的Asterisk,这为后续的学习和实践打下了坚实的基础。 ##### 下载...

    Asterisk.Gateway.Interface.1.4.and.1.6.Programming.pdf

    1.6版本则进一步提升了稳定性和可扩展性,引入了更多的API函数,便于开发者进行更高级的定制。书中会对比这两个版本的差异,帮助读者理解和选择适合自己的开发环境。 此外,本书还会涵盖如何调试AGI脚本、日志分析...

    Asterisk.NET.1.6.3.1

    该源码基于VS2005.net的简单应用,同时提供asttapi-0.10源码(VS2003 C++)。压缩包包含: 1、Asterisk.NET源码; 2、Asterisk.NET.Test; 3、Asterisk.NET.WinForm; 4、asttapi-0.10。

    Asterisk群呼功能实现1

    在本文中,我们将讨论如何在Asterisk 1.6版本中实现群呼功能。 首先,要实现群呼,我们需要安装Asterisk 1.6,并配置拨号方案。拨号方案是Asterisk处理电话呼叫的规则集。在这个例子中,我们有两个拨号方案:`[DLPN...

Global site tag (gtag.js) - Google Analytics