免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/Z 256-2026产业园区信用评价实施指南
- 2026年10月27日 株洲市天元区人才考试中心 诺华制药 药物研发助理 14人
- 广西融安县高级中学2025-2026学年高二上学期期末检测化学试题(含答案)
- 2026学生秋季流感防控课件
- 2025-2026学年陕西省西安市雁塔区七年级(下)期中英语试卷(含答案)
- 2026高中毕业班年级主任工作经验分享课件-单亲家庭学生的教育策略
- 胸部CT临床应用
- 2026干部职工换季时节心脑血管防护专题培训课件
- 2026大学生营养与健康科普课件:告别“小胖墩”守护儿童健康
- 2026医护人员脑卒中防治科普专题培训课件
- 2025年行政复议人员业务考试真题(回忆版)及答案
- 2026年信息安全法律法规测试题
- 2024年《中华人民共和国爱国主义教育法》主题课件
- 2026年滋补产业蓝皮书 -电商数据分析和增长归因和品牌商策略
- DBJ-T15-295-2026 高处作业吊篮安装检验评定标准
- 2026内蒙古地质矿产集团有限公司所属企业招聘226人考试参考题库及答案详解
- 村干部考乡镇公务员考试真题题库(含答案解析)
- 【三年级上册】开学家长会:翻三越岭只为等花开【课件】
- 2026年陕西省社区卫生服务中心招聘笔试试题(含答案)
- 人教版地理七年级上册(2024)3.3 海陆的变迁 课件(36张)
- AI眼镜硬件拆解及BOM成本报告:逸文Even G2 AR眼镜
评论
0/150
提交评论