下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、在Asterisk常见的DTMF问题和解决办法两个用户在通话的时候怎么获取DTMF按键Q:IwanttoknowifitispossibleinAsterisktocatchaDTMFeventsentbyoneofthephonetotriggeranaction,forexampletoplayasound/videocliptooneofthephones.A:Googleforfeatures,conf,butyou*11needtokeepasteriskinthecallpath,i.e.canreinvite=no,otherwisetheRFC2833DTMFcodeswill
2、onlybesentbetweentheendpoints.Ifyouneedtoreinvite,thenyoumighthavetotryusingSIP-INFOforDTMFinsteadofRFC2833.检测DTMF按健音的长度?Q:Here'sthescenario,IamplanningtouseSIPphonetoconnectasterisklocalextensionnumberwhereitwillconnectmetomyagiserver.Myagiserver(writteninjava)asofnowcandetectandprintsdtmftones
3、butnotthedtmfdonebyprolongedkeypressed.A:AsofAsterisk1.4,ifyouuseRFC2833-generatedDTMF,thenitispossible.ItwouldalsobepossibleinanyversionwithinbandDTMF(whichrequiresulaworalaw).Allothercases,itisonlypossibletoknowthattheeventoccurred,nothowlongtheeventlasted.向电话会议用户广播DTMF按健Q:HowcanIarrangetheability
4、forMeetMeparticipantstopressDTMFkeysontheirphoneandforthetonestothenpassouttotheotherparty(ies)?A:Thepseudozapchannels-that*swhatallVOIPchannelshavetousetogetintoaMeetMe一can'tdoDTMFwithanymeasureofreliabilityatall.SowhatIdidwasprogramintoapp_conferencetheabilitytodoDTMFbroadcastingofbothinbandan
5、dRFCDTMF.ThebroadcastDTMFportionwilldoaseparatesendtoeachoftheparticipantsthathastheflagsetforRFCandforinbandflaggedparticipantsitwillgotoasectionthatwillplayanaudiofileofaDTMFtone(toallowforSIPRFCparticipantstosendDTMFtoinbandZapparticipantsforexample).Itdoesstillhavearandomdouble-freememorythatIca
6、n'tfindanyonetofixwhichwillcrashAsteriskifyouuseinbandDTMFbroadcastingalot,butithasworkedformeforperiodsoftimeaslongas2weekswithoutcrashing.(QuoteasofSep2021)TodoDTMFbroadcasting,makesureyoureadtheREADMEwhichhasinstructionsontheflagsforConferenceinthedialplan.修改DTMF长度Q:在哪里调整,怎样才能调整DTMF长短?A:main/
7、channel.c,include/asterisk/channel.h:2021-04-2421:34+0000r61781-61787RussellBryant(Asterisk1.4.3)ImproveDTMFhandlinginast_read0evenmoreinresponsetoadiscussionontheasterisk-devmailinglist.Ichangedtheenforcedminimumlengthofadigitfrom100msto80ms.Furthermore,Imadeitnowenforceagapof45msinbetweendigits.Th
8、esevaluesarenotconfigurableinaconfigurationfilerightnow,buttheycanbeeasilychangednearthetopofmain/channel,c.电话会议中的DTMF处理问题:MeetMe会议可以将一个用户的DTMF按键转发给其他用户吗?回答:Asterisk1.4hasintroducedanewoption'F'inMeetMethatservesthispurpose.手工提取和发送DTMF数字Q:rmtryingtomakeasteriskdetectsomeDTMFdigitsduringacall
9、andpostthem(can'tuseWaitExtenorFeatures,conf).A:Iwouldsuggestthatyouimplementthatinlogger.candconfigurealinetosendlogstoanHTTPPOST(vialogger,conf),withthepbx_substitute_variables_helperfunction,usingthe$CURL()functiondirectly.Youmayneedto=>func_curl.soinmodules,conf,butthatwillworkwell.Orusea
10、simplelogwatcher:tail-n0-f/var/log/asterisk/debuggrep'DTMFdigit:'your_custum_filter解决常见故障的办法* 激活debug模式,让AsteriskCLI能够接到DTMF事件通知。(不知道怎么做?看下面这个问题的回答)* 录制声音(使用ztmonitor),在声音文件里确信Asterisk得到了有效的DTMF按键。问题:当我从L2升级到1.4.13之后,CLI不再显示DTMF了。我需要激活它吗?答案:你需要在logger,conf里修改允许DTMF按键,然后在AsteriskCLI里面输入reload
11、来让你的这个修改生效。在Zap(PRI/El)上接收一个DTMF字符(Asterisk1.4)引用CLI>coresetdebugchannelZap/ITJul3013:19:05«TYPE:DTMFBegin(12)SUBCLASS:5(53)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:N/A(0)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:N/A(0)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:
12、N/A(0)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:N/A(0)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:N/A(0)Zap/1-1Jul3013:19:05«TYPE:NullFrame(5)SUBCLASS:N/A(0)Zap/1-1Jul3013:19:06«TYPE:DTMFEnd(1)SUBCLASS:5(53)Zap/1-1带内DTMF检测不可靠* Possiblesolution:Makesureyouhaveazapteltimer/
13、timingdevice,i.e.either'ztdummy*orsomezaptelhardwareonyoursystem.* Anotherpossiblesolution:Ifyourasteriskisntreliablyrecognizingdtmfandyou'reusingaproviderthatonlysupportsinbanddtmf,considerdumpingthemforanotherproviderthatcangiveyououtofbanddtmfsuchasRFC2833.Dependingonyoursituation,thismaybeaneasierfixthansomeothersolutions.Inbanddtmfdetectionseemstobeveryproblematic.重复收到DTMF按键* Changethesettingrelaxdtmf=andseeifthathelps* IfyouappeartobereceivingdoubledDTMFsignalsthenyouarelikelytogetbothinbandandRFC2833orSIPINFOsignallingonyourAsteriskbox;youwil
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小学科学实验观察动物细胞有丝分裂实验分析测试试卷及答案
- 安徽临泉公务员考试试题及答案
- 2026年中级注册安全工程师《安全生产专业实务化工安全》真题及答案
- 高一地理《气象灾害》教学设计:基于核心素养的情境化构建与实证探究
- 八年级道德与法治《维护国家安全》教学设计
- 环境保护意识测试答题及答案
- 大学法学刑法犯罪预防原理测试试卷及答案
- 化工工艺工程师(合成)岗位面试问题及答案
- 河北出租车司机从业资格证考试题及答案
- 海洋石油钻井井控知识培训考核试题及答案
- DB36-T 2238-2026 高速公路“四改八”改扩建工程交通组织技术指南
- 2025江西省江铜集团招573人笔试历年常考点试题专练附带答案详解
- 水利质保金管理办法
- 大学宿舍楼值班员培训
- JGJ162-2025《建筑施工模板安全技术规范》
- 高考作文审题与立意课件
- 温室大棚项目经济效益和社会效益分析
- 母婴护理服务方案
- 路桥工程检测技术 课件 8 路面外观检测
- TCRIA 30001-2023 橡胶制品工业大气污染防治可行技术指南
- CJT156-2001 沟槽式管接头
评论
0/150
提交评论