- 浏览: 226348 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
newLinuxJava:
http://www.voip-info.org/wiki/v ...
asterisk App Dial 拨号 发起外呼 -
newLinuxJava:
http://www.voip-info.org/wiki/v ...
asterisk App Dial 拨号 发起外呼 -
tsinglongwu:
这种做法在Server端getValue()方法是能获得修改后 ...
client-side programming客户端修改值,但服务端获取仍然旧值的解决办法 -
Listen_ing:
zk+spring+hibernate如何配置hibernat ...
zk+hibernate+spring零配置 -
peterxq181:
严重: Method not found in org.apa ...
zk+hibernate+spring零配置
Hangup( ) Unconditionally hangs up the current channel
无条件的挂起当前通道
Hangup( )
Unconditionally hangs up the current channel. 无条件的挂起当前通道
Always returns -1. 返回值:-1
exten => 123,1,Answer( )
exten => 123,2,Playback(im-sorry)
exten => 123,3,Hangup( )
See Also 请参阅:
Answer( )
HasNewVoicemail( ) Conditionally branches if there is new voicemail in the indicated voicemail box
如果在语音邮件箱中有新的语音邮件的话则有条件的进行转移
HasNewVoicemail(vmbox[@context][:folder][,varname])
Similar to HasVoicemail( ). This application branches to priority n+101 (where n is the current priority) if there is new (unheard) voicemail in the voicemail box indicated by vmbox. The context argument corresponds to the voicemail context, and folder corresponds to a voicemail folder. If the voicemail folder is not specified, it defaults to the INBOX folder. If the varname argument is present, HasNewVoicemail( ) assigns the number of messages in the specified folder to that variable.
类似于HasVoicemail()函数。如果vmbox提示有未听过的语音邮件在voicemail box中则应用转移到优先级n+101(n为当前优先级)。下文讨论了相符合的语音环境,和相符合文件夹的语音文件夹。如果未指定文件夹,缺省到INBOX文件夹。如果变量名称确定的话,HasNewVoicemail()指定消息数目到指定的变量文件夹。
; check to see if there's unheard voicemail in INBOX of mailbox 123
; in the default voicemail context
在缺省的语音环境中,如果在INBOX邮箱123中未听到语音邮件则进行检查。
exten => 123,1,Answer( )
exten => 123,2,HasNewVoicemail(123@default,COUNT)
exten => 123,3,Playback(vm-youhave)
exten => 123,4,Playback(vm-no)
exten => 123,5,Playback(vm-messages) exten => 123,103,Playback(vm-youhave) exten => 123,104,SayNumber($COUNT) exten => 123,105,Playback(vm-messages)
See Also 请参阅
HasVoicemail( ), MailboxExists( )
IAX2Provision( ) Provisions a calling IAXy device
IAX2Provision([template])
Provisions a calling IAXy device (assuming that the calling entity is an IAXy) with the given template. If no template is specified, the default template is used. IAXy provisioning templates are defined in the iaxprov.conf configuration file.
供应一个呼叫IAXY设备(指定呼叫实体为IAXY)并指定模板,如果没有指定模板,则缺省模板被使用,IAXY指定模板是在iaxprov.conf配置文件中被指定。
Returns -1 on error or 0 on success. 错误返回-1成功则返回0
; provision IAXy devices with the default template when they dial this extension
当通过扩展拨号时通过缺省模板指定IAXy设备。
exten => 123,1,IAX2Provision(default)
ImportVar( ) Sets a variable based on a channel variable from a different channel
从不同的通道中设定一个基于通道变量的变量。
ImportVar(newvar=channel,variable)
Sets variable newvar to variable as evaluated on the specified channel (instead of the current channel). If newvar is prefixed with _, single inheritance is assumed. If prefixed with__, infinite inheritance is assumed.
在指定通道设定新变量做为评估(不是当前通道),如果新变量带有_,则假定单一继承,如果变量带有__,则指定多继承。
; read the Caller ID information from channel Zap/1
exten => 123,1,Answer( )
exten => 123,1,ImportVar(cidinfo=Zap/1,CALLERID)
See Also
Set( )
LookupBlacklist( ) Performs a lookup of a Caller ID name/number from the blacklist database
从数据库黑名单中执行呼叫ID名称/号码查找
LookupBlacklist( )
Looks up the Caller ID number on the active channel in the Asterisk database (family blacklist). If the number is found, and if there exists a priority n+101 (where n is the priority of the current instance), the channel will be set up to continue at that priority level. Other- wise, the application returns 0. If no Caller ID was received on the channel, it does nothing
在Asterisk数据库(系列黑名单)中查找动态通道中呼叫ID号码,如果号码被找到,并且如果存在一个N+101优先级(N是当前优先级),则该通道将被设置为当前优先级,否则返回0,如果呼叫ID未找到,则什么也不做。
To add to the blacklist from the Asterisk CLI, type database put blacklist name/number.
通过Asterisk命令行:database put blacklist name/number添黑名单。
; send blacklisted numbers to an endless loop
; otherwise, dial the number defined by the variable ${JOHN}
exten => s,1,Answer( )
exten => s,2,LookupBlacklist( )
exten => s,3,Dial(${JOHN})
exten => s,103,Playback(tt-allbusy)
exten => s,104,Wait(10)
exten => s,105,Goto(103)
LookupCIDName( ) Performs a lookup of a Caller ID name from the AstDB
从AstDB中执行查找呼叫ID名称
LookupCIDName( )
Uses the Caller ID number on the active channel to retrieve the Caller ID name from the AstDB (family cidname). This application does nothing if no Caller"*ID was received on the channel. This is useful if you do not subscribe to Caller ID name delivery, or if you want to change the Caller ID names on some incoming calls.
在动态通道中使用呼叫ID从AstDB(cidname 系列)中检索呼叫名称,如果通道中没有找到呼叫ID则程序未反应,如果你不想将呼叫ID名称传输或者在一些呼入中不想改变呼叫ID名称,这将是非常有用的。
Always returns 0. 总是返回0
; look up the Caller ID information from the AstDB, and pass it along
; to Jane's phone
exten => 123,1,Answer( )
exten => 123,2,LookupCIDName( )
exten => 123,3,Dial(SIP/Jane)
Macro( ) Calls a previously defined macro
调用以前定义的宏
Macro(macroname,arg1,arg2...)
Executes a macro defined in the context named macro-macroname, jumping to the s exten- sion of that context and executing each step, then returning when the steps end.
执行在参数macro-macroname中定义的宏,并转至S范围然后按步执行,执行完后返回。
The calling extension, context, and priority are stored in ${MACRO_EXTEN}, ${MACRO_CONTEXT}, and ${MACRO_PRIORITY}, respectively. Arguments arg1, arg2, etc. become ${ARG1}, ${ARG2}, etc. in the macro context.
呼叫范围,上下文,和优先级分别存贮在变量${MACRO_EXTEN},${MACRO_CONTEXT},${MACRO_PRIORITY}中,参数arg1,arg2在宏中为${ARG1},${ARG2}等。
Macro( ) returns -1 if any step in the macro returns -1, and 0 otherwise. If ${MACRO_OFFSET} is set at termination, this application will attempt to continue at priority MACRO_OFFSET+n+1 if such a step exists, and at n+1 otherwise. (In both cases, n stands for the current priority.) If you call the Goto( ) application inside of the macro, the macro will terminate and control will go to the destination of the Goto( ).
如果任何结果返回-1则宏返回-1,否则为0。如果${MACRO_OFFSET}参数在终端中设置,如果存大的话则宏将试着去执行优先级MACRO_OFFSET+n+1,否则在n+1。(在两种情况下,n为当前优先级)。如果宏中包含Goto()应用,则宏将停止并且控制将交给Goto()应用程序。
; define a macro to count down from the specified value
[macro-countdown] 定义宏用来统计从[macro-countdown]指定的值
exten => s,1,Set(COUNT=${ARG1}) exten => s,2,While($[ ${COUNT} > 0]) exten => s,3,SayNumber(${COUNT})
exten => s,4,Set(COUNT=$[ ${COUNT} - 1 ])
exten => s,5,EndWhile( )
; call our macro with two different values 用两种不同的值调用宏
[example]
exten => 123,1,Macro(countdown,10)
exten => 124,1,Macro(countdown,5)
See Also
Goto( ), Chapter 6
MailboxExists( ) Conditionally branches if the specified voicemail box exists
如果voicemail box存在则有条件的转移
MailboxExists(mailbox[@context])
Conditionally branches to priority n+101 (where n is the current priority) if the voicemail box specified by the mailbox argument exists. You may pass a voicemail context if the mailbox is not in the default voicemail context.
如果被mailbox参数指定的voicemail box存在则将优先级转移到n+101(n为当前优先级).如果说mailbox不在缺省的voicemail环境则你可以通过一个voicemail环境.
exten => 123,1,Answer( )
exten => 123,2,MailboxExists(123@default)
exten => 123,3,Playback(im-sorry)
exten => 123,103,Voicemail(u123)
See Also
HasVoicemail( ), HasNewVoicemail( )
发表评论
-
解决elastix登录显示非常慢以及禁用新闻的展示的问题
2011-06-10 11:12 1213解决登录显示非常慢的问题以及禁用新闻的展示 ... -
FreePBX 2.7.0.3 汉化
2011-06-09 15:46 17651,FreePBX 2.7.0.3 右侧语言选项,默认无 ... -
Asterisk 1.6的配置文件:chan_dahdi.conf
2010-12-24 13:56 2105Asterisk 1.6的配置文件:chan_dahdi.co ... -
Asterisk 安装笔记(2)- Zaptel 和 Dahdi 的配置
2010-12-24 13:53 1952Zap Channel Module Configurat ... -
Asterisk Extension中的Application命令详解七
2010-12-22 09:51 1136StripLSD( ) ... -
Asterisk Extension中的Application命令详解六
2010-12-22 09:50 1530MailboxExists() ... -
Asterisk Extension中的Application命令详解五
2010-12-22 09:46 1893Math( ) Performs mathema ... -
Asterisk Extension中的Application命令详解三
2010-12-22 09:43 3205CheckGroup( )检查特定组中的信道数。CheckG ... -
Asterisk Extension中的Application命令详解二
2010-12-22 09:41 2066AgentLogin( )允许呼叫代理 ... -
Asterisk Extension中的Application命令详解一
2010-12-22 09:39 1649AbsoluteTimeout() 设置呼叫最大呼叫时长 A ... -
拨号方案基础
2010-12-22 09:28 1211ApplicationAnswer(),Playback()和 ... -
模拟卡的疑难杂症
2010-12-22 09:23 4570, 不能编译zaptel和asterisk ... -
Asterisk的拨号计划命令
2010-12-22 09:21 1721Asterisk的拨号计划命 ... -
Asterisk 配置文详解和Freepbx功能键逐个数
2010-12-22 09:19 12825Asterisk 配置文详解 转自:http://www.ha ... -
Asterisk manager API(AMI)文档(中文版
2010-12-22 03:04 1393Asterisk控制接口(AMI)允许管理客户端程序连接到一个 ... -
SIP 中文翻译
2010-12-22 03:01 29381.介绍 extensions.conf中使用sip设备的语 ... -
队列振铃方式
2010-12-22 02:58 947队列振铃方式有:ringall,roundrobin,leas ... -
asterisk App Dial 拨号 发起外呼
2010-12-22 02:54 2792Synopsis Attempts to establi ... -
asterisk 集群配置的完全解决方案
2010-12-22 02:53 1156IAX 设置详细两台Asterisk服务器设置步骤如下:* 设 ... -
Asterisk命令MeetMe详解
2010-12-22 02:50 1165转贴:http://www.ctiforum.com/ ...
相关推荐
文档包扩一些常用的Asterisk命令,对于初学者有一定的帮助。
asterisk拨号方案中应用使用详解,有详细的说明和例子
Asterisk CLI 命令列表 Asterisk是一个开源的VoIP系统平台..
asterisk APP命令含义中文对照表,方便查阅各个命令,及中文解释
Asterisk权威指南中文(第3版) Asterisk权威指南(第3版)第15章自动话务员 Asterisk权威指南(第3版)第02章Asterisk体系结构 Asterisk权威指南(第3版)第05章用户设备配置 Asterisk权威指南(第3版)第06章Dialplan基础 ...
pbx软交换asterisk的cli命令列表
最近搜集到Asterisk的命令的中文翻译,给大家分享!!!有共同学习Asterisk的欢迎加我QQ,大家共同进步!! QQ:42144754 email:42144754@163.com
Asterisk Dialplan命令中文翻译,希望帮到大家。
修改sip_general_custom.conf(作为测试,在所有SIP 通道上启用提示语为中文,在实际应用中,可根据需要修改--zapata-channels.conf,sipXXX.conf,IAXXXX.conf...,也可在FreePBX的WEB界面中有language选项的地方修改--...
点击 Browes,选择官网下载的压缩包(需要解压缩),解压缩后选择asterisk-core-sound-cn,上传所有的wav格式的语音包 上传点击确认,实现批量上传。 2.5 进行语音包设置,支持中文语音播放。
Asterisk一款优秀的sippbx开源软件,便于在其技术上做sip方面的开发等。
Asterisk权威指南 第3版 中文
对开源的Asterisk进行详解,中文版,在linux下的配置开发。。。
Asterisk 中文语音包,下载替换默认的语音文件,重新加载,即可播放中文语音提示
Asterisk 简介 Asterisk 架构 Asterisk程序框图
Asterisk1.6 最全的中文语音包
asterisk中英文教材,包括原英文文档asterisk.pdf和部分翻译中文版,翻译版如下:第02章Asterisk体系结构 第05章用户设备配置 第06章Dialplan基础 第07章外线连接 第08章语音邮件 第10章深入Dialplan 第11章Parking&...
Asterisk1.8 中文语音包 汉语提示 elastix 2.3
This is a book for anyone who uses Asterisk, but particularly those who already ...external application through the Asterisk Gateway Interface or Asterisk Manager Interface isn’t also possible.