資源描述:
《dialogic 摘掛機(jī)的檢測(cè)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、DisconnectSupervisionWhenthecallerhangsup,Dialogiccarddoesnotdetectthedisconnection.Why?MostofthePBXsandswitchestodaydonotuseloopcurrentdroptonotifytheotherpartyofthedisconnection.Instead,Theyuse"disconnecttone",whichisusuallythesameasbusytone.Disconnecttone
2、willbesenttothecalledpartyassoonasthecallingpartyhangsup.Forlocalcalls,however,thedisconnecttoneisusuallysenttothecallingparty30secondsafterthecalledpartyhangsup.Dialogiccards,bydefault,isenabledtodetectloopcurrentdrop.However,disconnecttonesupervisionisnote
3、nabled.HowtoimplementDisconnectToneSupervision?Therearetwowaysofimplementation:AdvancedToneFeature(driverapproach)GlobalToneDetection(applicationapproach)1.AdvancedToneFeatureThisfeatureiscurrentlyavailableonDOS,Windows95andWindowsNT(StreamsversionSDKonly).T
4、hismethodmakesuseofToneSetFilecreatedbyPBXpertorPBXpert/32.BysimplyusingappropriateTSFfile,youcanmakeyoursystemtoworkonanyanalogswitchesorPBXs.Toenablethisfeature,dothefollowing:ForWindowsNT:ClickStart/Programs/DialogicSystemSoftware/AdvancedToneFeaturesprog
5、ramitem.ThentickDisconnectToneSupervisionandToneSetFileEnabledbuttonsontheAdvancedToneFeatureswindow.Lastly,specifytheTSFfiletobeused.ForWindows95:SimilartothatofWindowsNT.ThepathisStart/Programs/DialogicDevelopmentPackage/ConfigurationManager.ThenclickAdvan
6、cedbuttonontheDialogicConfigurationManagerwindow.ForDOS:AfterDialogicvoicedriverisloaded,runTONEDNLD.EXEprogramtooverwritethedefaulttonedefinitionscontainedinthedriverwiththosecontainedintheTSFfile.genloadd40drv-hTONEDNLD-f7、tsf>-hAfterATFisenabled,thedefaulttonedefinitionscontainedinthedriverareoverwrittenwiththosecontainedintheTSFfile.Whenthedisconnecttoneisdetected,anLCOFFeventwillbegenerated,asifitisaloopcurrentdropevent.Theexampleinasynchronouscallbackmod
8、elbelowshowshowtoterminatedx_play()functionupondetectionofdisconnecttone.voidstart_playback(intindex){DV_TPTtpt[1]={0};dx_clrtpt(tpt,1);tpt[0].tp_type=IO_EOT;tpt[0].tp_termno=DX_LCOFF;tpt[0].tp_