免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Disconnect SupervisionWhen the caller hangs up, Dialogic card does not detect the disconnection. Why?Most of the PBXs and switches today do not use loop current drop to notify the other party of the disconnection. Instead,They use disconnect tone, which is usually the same as busy tone. Disconnect tone will be sent to the called party as soon asthe calling party hangs up. For local calls, however, the disconnect tone is usually sent to the calling party 30 seconds after thecalled party hangs up. Dialogic cards, by default, is enabled to detect loop current drop. However, disconnect tone supervision is not enabled. How to implement Disconnect Tone Supervision? There are two ways of implementation: Advanced Tone Feature (driver approach) Global Tone Detection (application approach)1. Advanced Tone FeatureThis feature is currently available on DOS, Windows 95 and Windows NT (Streams version SDK only). This method makesuse of Tone Set File created by PBXpert or PBXpert/32. By simply using appropriate TSF file, you can make your system towork on any analog switches or PBXs. To enable this feature, do the following:For Windows NT:Click Start/Programs/Dialogic System Software/Advanced Tone Features program item. Then tick Disconnect ToneSupervision and Tone Set File Enabled buttons on the Advanced Tone Features window. Lastly, specify the TSF file to beused.For Windows 95:Similar to that of Windows NT. The path is Start/Programs/Dialogic Development Package/Configuration Manager. Thenclick Advanced button on the Dialogic Configuration Manager window. For DOS:After Dialogic voice driver is loaded, run TONEDNLD.EXE program to overwrite the default tone definitions contained in thedriver with those contained in the TSF file. genload d40drv -h TONEDNLD -f -hAfter ATF is enabled, the default tone definitions contained in the driver are overwritten with those contained in the TSF file. When the disconnect tone is detected, an LCOFF event will be generated, as if it is a loop current drop event. The examplein asynchronous callback model below shows how to terminate dx_play() function upon detection of disconnect tone.void start_playback (int index) DV_TPT tpt1 = 0; dx_clrtpt(tpt,1); tpt0.tp_type = IO_EOT; tpt0.tp_termno = DX_LCOFF; tpt0.tp_length = 1; tpt0.tp_flags = TF_LCOFF; : if (dx_play(Channelindex.voxhdl, &Channelindex.iott, tpt, EV_ASYNC) = -1) :int play_handler (void) : device = sr_getevtdev(0); cause = ATDX_TERMMSK(device); if (cause & TM_LCOFF) printf(Play terminated due to Loop Current Dropn); disconnect(device); : Make sure you do not enable DM_LCOFF with dx_setevtmsk(), otherwise TDX_CST event will be generated and capturedby CST handler. 2. Global Tone DetectionThis approach can be used in all platforms. You need to add codes into your application to detect the specified disconnecttone(s). To make your application more portable across PBXs, I suggest that you make your application read a parameter filein which the disconnect tone definitions is defined. The example below shows you how to do it:#define POTS_DISCTONE 201void main(int argc, char *argv) : for(n=0; nNumOfChannels; n+) if (dx_deltones(Channeln.voxhdl) = -1) process_error(Channeln.voxhdl, dx_deltones); / Singapore disconnect tone 425 Hz, 750 ms on, 750 ms off if (dx_bldstcad(POTS_DISCTONE,425,30,75,6,75,6,2) = -1) process_error(Channeln.voxhdl, dx_bldstcad); for(n=0; ncst_event) case DE_TONEON: if (cstp-cst_data = POTS_DISCTONE) voxstate = ATDX_STATE(device); if (voxstate=CS_PLAY)|(voxstate=CS_RECD) /* if in record or play, stop activity on voice channel*/ if (dx_stopch(device, EV_ASYNC)=-1) printf(ERROR: dx_stopch() failedn); disconnect(device); : Attachments:Demo program Home | Whats New | Search | FAQs | Feedback Product Installation | Sample Code | Technical Notes | Technical Tips | Release Notes | Application Notes Problem Tracking Reports | Download Page | Discussion Web | Software Releases | Online Resources 1997 by
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 金箔制作工班组建设知识考核试卷含答案
- 制线工8S执行考核试卷含答案
- 租赁业务员安全防护考核试卷含答案
- 长度计量员安全生产意识知识考核试卷含答案
- 宠物健康护理员岗前理论实操考核试卷含答案
- 香料合成工岗前安全行为考核试卷含答案
- 石墨化工安全强化考核试卷含答案
- 苯乙烯-丙烯腈树脂(SAN)装置操作工操作水平模拟考核试卷含答案
- 2024年石家庄铁道大学辅导员招聘备考题库附答案
- 2025年三明市特岗教师笔试真题题库附答案
- 2026年甘肃省兰州市皋兰县兰泉污水处理有限责任公司招聘笔试参考题库及答案解析
- 2025年全国高压电工操作证理论考试题库(含答案)
- 居间合同2026年工作协议
- 2025-2026学年(通*用版)高二上学期期末测试【英语】试卷(含听力音频、答案)
- 翻车机工操作技能水平考核试卷含答案
- 员工宿舍安全培训资料课件
- 化工设备培训课件教学
- 舞台灯光音响控制系统及视频显示系统安装施工方案
- 2025福建省能源石化集团有限责任公司秋季招聘416人参考考试试题及答案解析
- 煤矿三违行为界定标准及处罚细则
- 服装厂安全生产责任制度制定
评论
0/150
提交评论