- 浏览: 400522 次
文章分类
- 全部博客 (327)
- Android (114)
- Java (13)
- Java基础 (14)
- Glib (2)
- linux (15)
- extjs (5)
- eclipse (2)
- Asterisk (56)
- MYSQL (6)
- 数据库 (9)
- PHP (7)
- C# (18)
- 杂谈~~ (1)
- web开发前端 (3)
- 网络编程 (2)
- Opensips (2)
- voip (3)
- debian (7)
- openfire (15)
- wordpress (1)
- 版本控制 (1)
- Android 线程服务广播 (1)
- SRTP (2)
- 单片机及ARM等 (3)
- 基础知识 (5)
- asp.net (2)
- 单片机 (1)
- 设计模式及架构 (1)
- 安全 (1)
- Cubieboard 草莓树莓各类派 Android开发板 (1)
- J2EE (2)
- BootStrap (3)
- BootStrap web前端开发 (1)
- web前端开发 (4)
- object-c (1)
- openwrt (8)
- 智能家居 (4)
- Node.js (4)
最新评论
-
xiaoxiecomeon:
你这个程序一存在线程的时间片相互抢占的问题,运行时间长了很可能 ...
Runnable 和 Thread -
dotjar:
我觉得话应该这么说:引用TestThread tt = new ...
Runnable 和 Thread -
dagf113225:
调用TelephonyManager的隐藏API是先参考Fra ...
Android提高第十四篇之探秘TelephonyManager
Playback: Play a sound file. (1.0)
功能:
Play a sound and/or video file
播放一个声音或视频文件
语法:
Playback(filename1[&filename2...][,options])
描述:
播放指定的声音或视频文件(你需要省略文件拓展名)。声音文件默认被保存在/var/lib/asterisk/sounds目录下(该目录路径可以在asterisk.conf被改变)
Plays the specified sound or video file(s) (you need to omit the filename extension). Sound files are stored in the /var/lib/asterisk/sounds directory by default (the directory path can be changed in asterisk.conf).
Playback是一个可以多国语言选择的应用。它将寻找与当前语言相符的子文件夹,(就是使用SetLanguage命令或通道的默认语言编码。如果失败,它将播放没有语言指定的部分)
Playback is Multi-Language-compliant. It will look in a subdirectory corresponding with the current language code (as set by the SetLanguage command, or the channel's default language code. Failing that, it will play the non-language-specific edition.
Playback将播放整个语音文件,只有播放结束才把控制权归还给。对Background相比,Background不仅播放语音文件还可以立即返回控制权,允许asterisk在当前通道播放语音文件时,执行其他的命令。
Playback will play the whole sound file(s), and when complete, return control. Compare with the Background command, which plays a sound file but returns control immediately, allowing Asterisk to perform other commands on this channel while the sound file is playing.
参数
[options]有如下选项:
Skip:只有当通道被应答了才可播放声音文件。如果通道还没有被应答,Playback命令将不做任何操作,直接返回
skip: Play the sound file only if the channel has already been answered. If the channel has not yet been answered, the Playback command will return immediately without playing anything.
Noanswer:播放声音文件,但是不用事先应答(如果还没有应答)。不是所有的通道支持在通道还没有被应答时播放声音文件的。
noanswer: Play the sound file, but don't answer the channel first (if hasn't been answered already). Not all channels support playing messages while still on hook.
J:如果该选项被指定了,当指定声音文件不存在,该应用将跳转到n+101处(如果存在优先级n+101)
j: If option is specified, the application will jump to priority n+101 if present when a file specified to be played does not exist.
Say:使用say.conf来说明当前字符串。
say: Use say.conf to interpret the string
如果skip和noasnwer选项两者都没有指定, Playback命令将首先应答通道(如果当前通道还没有被应答),才会播放声音文件。
If neither skip nor noanswer options are specified, then the Playback command will first answer the channel (if it hasn't been answered already) and then play the sound file.
Note: The options wont work if there are spaces between the filename, the comma and the option(s).
示例1
exten => 500,1,Playback(tt-weasels,skip)
返回值
一旦结束, ${PLAYBACKSTATUS}会被设置成"FAILED"或者"SUCCESS"。
On completion, ${PLAYBACKSTATUS} contains either "FAILED" or "SUCCESS".
Playback不会被时间影响,除非internal_timing在asterisk.conf中被开启。
Playback is not affected by timing, unless internal_timing is turned on in asterisk.conf.
发表评论
-
Configuring an Asterisk server
2013-06-28 09:05 860Configuring an Asterisk server ... -
asterisk ami
2013-06-28 08:56 1362Asterisk Manager Interface主要提供 ... -
Originate Using Asterisk Local Channels
2013-01-24 17:30 1286Whenever you want to place a c ... -
Asterisk 1.8 chan_sip模块代码分析
2013-01-18 16:33 1863和以前版本相比,Asterisk在架构上有了不小的变动,本文 ... -
Asterisk Kernel analysis 2 channel
2013-01-17 17:44 816从内核的角度去分析问题时,弄清楚呼叫流程是非常关键的,只有 ... -
Asterisk Kernel analysis 1
2013-01-17 17:44 822一、内核初始化。 从 main入口。Asterisk ... -
astersik bridge 支持
2013-01-17 17:27 664为支持通话过程中双方按键的接受及处理,asterisk 通过 ... -
Asterisk 之${BRIDGEPEER} 函数说明
2013-01-17 16:38 676${BRIDGEPEER} :个人理解是 获取当前通道类型 ... -
Asterisk拨号函数Dial()详解
2012-12-27 13:33 1565Asterisk的拨号函数/命令是Dial,下面就介绍一 ... -
asterisk中常用函数说明
2012-12-15 11:56 937int ast_strlen_zero(co ... -
什么是1号信令、7号信令和PRI信令?
2012-04-11 14:26 1482按照信令的信道来分类,信令可以分为:随路信令和公共信道信 ... -
FreeSWITCH 与 Asterisk 比较
2012-03-29 15:45 3460VoIP通信,与传统的电话技术相比,不仅仅在于绝对的资费 ... -
Asterisk命令MeetMe详解
2012-03-29 14:44 961MeetMe 概要 MeetMe ... -
Asterisk local channels
2012-03-12 15:09 834Asterisk local channels ... -
35个最棒的Asterisk免费应用
2012-03-12 14:51 2192Hi, I was looking round o ... -
Asterisk Originate 内部执行流程
2012-03-11 20:34 9591. originate的执行 向客户端发起呼叫,将客 ... -
模拟板卡疑难杂症(转)
2012-03-11 20:34 2199转自:http://sun4love.javaeye.c ... -
Asterisk 通话过程中执行动作(即applicationmap )的使用方法和电话转会议的实现
2012-03-11 20:34 945asterisk在正常通话过程中执行拨号计划中动作是通过 ... -
asterisk feature applicationmap 的caller和callee 的区别
2012-03-11 20:34 992经过测试,在applicationmap 中定 ... -
asterisk中关于实现会议室meetme的笔记
2012-03-09 11:07 1817一、资料: 1.http: ...
相关推荐
软件自动测试文献英文版 John Kent M. SC.
Scalable Polyphony MIDI (SP-MIDI) Version 1.0b Scalable Polyphony MIDI Specification SP-MIDI Device 5-24 Note Profile for 3GPP The Scalable Polyphony MIDI Specification (SP-MIDI) provides the ...
The 8 outgoing channels are composed of 2 playback DMA’s, which are multi-channel DMA (24 bits, 6 channels, 96k), S/PDIF (each 24 bits, 2 channels, 96k). The 6 ingoing channels are spread in 2 ...
语言:English 允许浏览器“本地”播放FLV视频网址(flv) ...在设置中的flv.js 1.5.x,1.4.x,1.3.x,1.2.x,1.1.x,1.0.x之间切换。 此处的代码存储库:https://github.com/klouskingsley/chrome-flv
It supports MPEG 1.0/2.0 layers 1, 2 and 3 (those famous "mp3" files), and it has been tested on a wide variety of platforms, including Linux, FreeBSD, NetBSD, SunOS, Solaris, IRIX, HP-UX and others...
COMPONENTS="PerformanceStudioSuite:1.0:1 LTmaster:7.1:1 \ LTgui:7.1:10 LTvu:7.1:100 LTjolt:7.1:1 LTtux:7.1:1 LTsql:7.1:1 \ LThttp:7.1:1 LTsap:7.1:1 LTcorba:7.1:1 LTdcom:7.1:1" PACKAGE RSPS_Base_...
LT_Playback_100000VU rational 7.5 uncounted \ 28D086A1F873 HOSTID=ANY ISSUER="THE FORCE TEAM" NOTICE="The \ Force Team - 2007" ck=90 LT_All_VU_Protocols rational 7.5 uncounted \ AD87056FFA1A HOSTID...
PACKAGE LT_Playback_100000VU rational 7.5 51E6DD992302 \ COMPONENTS="LTvu:7.1:100000 LT_100000VT:8.0:10000" PACKAGE RSPS_TLA_500VU rational 1.5 F36CDEAC264E \ COMPONENTS="PerformanceStudioSuite:1.0:...
playback. The 4-Channels Coaxial Communication Protocol communicates between controller(DVR) and camera on the video signal through coaxial cable. It was includes Tx for transfer especially signals ...
控制您的youtube或udemy视频的播放速度 如果当前选项卡不是Youtube或Udemy视频,则扩展程序图标将显示为灰色,并将...-滑块控制视频速度,从0.0到15.9-重置按钮会将视频速度设置为1.0 支持语言:English (United States)
须藤 apt-get install autoconf pkg-config libusb-1.0 git 工具链 mkdir 工具链光盘工具链wget tar xvf gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2 光盘.. 斯特林克 git 克隆 光盘链./autogen.sh 。/...
* Details for using Android hardware, including media recording and playback, using the camera, accelerometers, and compass sensors. * Advanced development topics including security, IPC, advanced ...
请照如下方式整合: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ... title="No video playback capabilities." /> <object> <video> </body> </html>
- PassMark Firewire Plugin V1.0 1000 (or higher) and a 揔anguru FireFlash?drive for Plugin Firewire testing. (*) Windows 2000 does not support the CD-RW burn test. The advanced RAM test is only ...
//playback rate, deleted samples means we increase playout speed a bit. This returns an //8.24 fixed-point number int recalcAddDelSamp(int oldVal) { int ret; long prevUdr=0; static int cnt; int i;...
- Corrected issue with "Limit playback time (tl)" for MP3 files. v 4.0.117 (Nov. 20, 2009) - Added m4v extension to video list. v 4.0.116 (Nov. 7, 2009) - Updated wasp.js - Standardized DOM - ...
<3> 音频支持和音乐回放(music playback):支持WAV, MP3, MP2, MP1 an d OGG 音频文件格式(audio file formats),支持MO3, IT, XM, S3M, MTM, MO D and UMX 音乐文件格式(music file formats),支持压缩流的...
我使用1.0版本 pulseaudio-1.0.tar.gz 然后通过winshare(Windows和Linux的通信)把下载好的库文件拷贝到Linux下, 然后解压 tar zxvf pulseaudio-1.0.tar.gz 注意这个时候可能会发生错误,是没有权限的问题,那么就...