Asterisk meetme default enter/leave tones
来源:互联网 发布:云购cms 编辑:程序博客网 时间:2024/04/29 21:03
I know this is a bit of an old topic, but I just did this and documented it somewhat for the astguiclient/VICIDIAL project, so I thought I'd post more info here.
For some reason, possibly effeciency, the enter and leave sounds that you hear in standard Asterisk meetme rooms are actually hex dumps of RAW ULAW 8bit audio that have been compiled into the code of Asterisk in a header file. This makes them somewhat difficult to change, especially since there are no instructions.
This should slightly reduce time that it takes for calls to get to agents, as well as reduce the time of the locks that occur when these sounds are played in Asterisk. The new enter and leave sounds I include with VICIDIAL are 0.12 and 0.13 seconds respectively as compared to the default sounds which are more than double that.
Here are the steps I went to to change the meetme enter and leave sounds:
1. grab the source audio file you want and open it in your favorite editor
- In my case I tweaked the audio I used for the app_conference build I made and shrunk them a bit until they were at most, half the length as the Asterisk default sounds they would be replacing
2. Save the audio as 8-bit, 8k ULAW audio and save as .raw
3. used "hexdump" to dump the audio file into two-character hex chunks
/usr/bin/hexdump -C ./enter.raw
- I'm sure this could be made prettier with the proper formatting strings, but I didn't have time for that
- Here's some of the output:
00000000 d6 dc 55 5f 63 67 f0 f0 74 75 d6 ee 5d 73 66 60 |ÖÜU_cgððtuÖî]sf`|
00000010 dc fd 62 68 5b 5a 57 5e 5b 5c ef fc 4d 51 57 4c |Üýbh[ZW^[\ïüMQWL|
00000020 5d 66 60 51 6c 5f 3e 4d 59 47 72 e4 52 53 58 48 |]f`Ql_>MYGräRSXH|
4. Used favorite text edotor to format the data properly:
- 60 character length lines comma-space separated in the same format as enter.h and leave.h were in. Don't forget the header and footer to this raw hex audio, they are important
0xd6, 0xdc, 0x55, 0x5f, 0x63, 0x67, 0xf0, 0xf0, 0x74, 0x75,
0xd6, 0xee, 0x5d, 0x73, 0x66, 0x60, 0xdc, 0xfd, 0x62, 0x68,
0x5b, 0x5a, 0x57, 0x5e, 0x5b, 0x5c, 0xef, 0xfc, 0x4d, 0x51,
5. Copied the new enter.h and leave.h files over the old ones, and compile Asterisk
wget http://www.eflo.net/files/enter.h
wget http://www.eflo.net/files/leave.h
mv -f enter.h apps/enter.h
mv -f leave.h apps/leave.h
For some reason, possibly effeciency, the enter and leave sounds that you hear in standard Asterisk meetme rooms are actually hex dumps of RAW ULAW 8bit audio that have been compiled into the code of Asterisk in a header file. This makes them somewhat difficult to change, especially since there are no instructions.
This should slightly reduce time that it takes for calls to get to agents, as well as reduce the time of the locks that occur when these sounds are played in Asterisk. The new enter and leave sounds I include with VICIDIAL are 0.12 and 0.13 seconds respectively as compared to the default sounds which are more than double that.
Here are the steps I went to to change the meetme enter and leave sounds:
1. grab the source audio file you want and open it in your favorite editor
- In my case I tweaked the audio I used for the app_conference build I made and shrunk them a bit until they were at most, half the length as the Asterisk default sounds they would be replacing
2. Save the audio as 8-bit, 8k ULAW audio and save as .raw
3. used "hexdump" to dump the audio file into two-character hex chunks
/usr/bin/hexdump -C ./enter.raw
- I'm sure this could be made prettier with the proper formatting strings, but I didn't have time for that
- Here's some of the output:
00000000 d6 dc 55 5f 63 67 f0 f0 74 75 d6 ee 5d 73 66 60 |ÖÜU_cgððtuÖî]sf`|
00000010 dc fd 62 68 5b 5a 57 5e 5b 5c ef fc 4d 51 57 4c |Üýbh[ZW^[\ïüMQWL|
00000020 5d 66 60 51 6c 5f 3e 4d 59 47 72 e4 52 53 58 48 |]f`Ql_>MYGräRSXH|
4. Used favorite text edotor to format the data properly:
- 60 character length lines comma-space separated in the same format as enter.h and leave.h were in. Don't forget the header and footer to this raw hex audio, they are important
0xd6, 0xdc, 0x55, 0x5f, 0x63, 0x67, 0xf0, 0xf0, 0x74, 0x75,
0xd6, 0xee, 0x5d, 0x73, 0x66, 0x60, 0xdc, 0xfd, 0x62, 0x68,
0x5b, 0x5a, 0x57, 0x5e, 0x5b, 0x5c, 0xef, 0xfc, 0x4d, 0x51,
5. Copied the new enter.h and leave.h files over the old ones, and compile Asterisk
wget http://www.eflo.net/files/enter.h
wget http://www.eflo.net/files/leave.h
mv -f enter.h apps/enter.h
mv -f leave.h apps/leave.h
0 0
- Asterisk meetme default enter/leave tones
- Asterisk MeetMe的配置
- Asterisk命令MeetMe详解
- Asterisk 1.8 meetme 改进
- Asterisk命令MeetMe详解
- asterisk配置会议室meetme.conf
- Asterisk 1.6.X - MeetMe Realtime
- asterisk配置会议室meetme.conf
- ENTER和leave
- ENTER 和 LEAVE
- enter-leave的使用
- asterisk 中 简单会议(MeetMe)实现
- 伪指令 LOCAL ENTER LEAVE
- meetme
- asterisk中关于实现会议室meetme的笔记
- 汇编中Enter和Leave指令
- 汇编中Enter和Leave指令(转)
- Trace Function Enter, Exit and Leave
- 百度地图API学习总结
- 设计网页的23条有用技巧
- 替换html中转义字符
- 【CCNA】计算机网络基础二 IP地址
- WWDC 2014大会发布!iOS8主打健康
- Asterisk meetme default enter/leave tones
- H3Viewer---vs2010 MSDN 使用经典方式查看
- Linux如何查看进程、杀死进程、启动进程等常用命令
- display:inline、block、inline-block
- Oracle资料收集
- js 打印DIV内容 print div 兼容IE FF Google等主流浏览器
- 3月,献给程序员们的技术书
- 解决Ubuntu 12.04LTS终端sudo命令无法解析主机报错问题
- IT公司面试题总结(一)