




免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 凝心聚力·追求卓越
- 公司部门的2025年度工作方案
- 2025年销售工作方案格式演讲稿
- 2025年春幼儿园德育工作方案
- 2025年老师个人教育教学工作方案
- 护理生理学:消化与吸收
- 破宫产手术的术后护理
- 2025年人事工作总结与方案演讲稿
- 生产主管述职报告
- 计算机虚拟仪器技术
- 2025江西南昌市江铜产融社会招聘1人笔试参考题库附带答案详解
- Unit 3 Keep Fit Section A 2a-2e 教学设计 2024-2025学年人教版(2024)七年级英语下册
- 2024年重庆两江新区某国有企业招聘笔试真题
- 离婚协议民政局贵州安顺(2025年版)
- 心脏骤停后高质量目标温度管理专家共识2024
- 高校讲师个人学术发展计划
- 2025徽县辅警考试题库
- (一模)2025年广东省高三高考模拟测试 (一) 卷数学试卷(含官方答案)
- 污水处理设施运维服务投标方案(技术标)
- 【道法】做自信的人课件 2024-2025学年统编版道德与法治七年级下册
- 王阳明心学课件
评论
0/150
提交评论