zoukankan      html  css  js  c++  java
  • asterisk 通话噪音,自动挂断,回声等情况

    打开配置文件:cd /etc/asterisk/

    vim chan_dahdi.conf

    1:

    busydetect:忙音检测,如果开启,Asterisk会拨号尝试或通话中分析在线的音频,从而尝试识别忙音信号。这非常在模拟中继接口上外呼时检测忙音信号非常有用,可以检测何时挂机。确认不能在例如QuadBri,模拟网关等卡上使用该参数,否则出现中断通话的问题,缺省值:no
       ;busydetect=yes

    将参数busydetect=yes注释掉,或者设为no;

    2:

    为什么会听到咔嗒的噪声?

    当你通过FXO拨打电话,出现了咔嗒的噪声,或者当你听到从FXS发来的dialtone,这都是由echotraining引起的.把echotraining关掉。echotraining必然会引起咔嚓声.

    3:通话自动挂断

    cd /etc/asterisk

    vim sip.comfig

    [800001]
    type=friend
    qualify=yes
    context=outgoing
    host=dynamic
    canreinvite=yes
    disallow=all
    allow=g729
    nat=yes
    pickupgroup=1
    callgroup=1
    secret=123456
    call-limit=1
    port=5060



    [800002]
    type=friend
    qualify=yes
    context=outgoing
    host=dynamic
    canreinvite=yes
    disallow=all
    allow=g729
    nat=yes
    pickupgroup=1
    callgroup=1
    secret=123456
    call-limit=1
    port=5060



    [800003]
    type=friend
    qualify=yes
    context=outgoing
    host=dynamic
    canreinvite=yes
    disallow=all
    allow=g729
    nat=yes
    pickupgroup=1
    callgroup=1
    secret=123456
    call-limit=1
    port=5060

    主要是一个:nat=yes

    4:模拟卡外线通话有时候意外中断

    某些地方的汇线通或者线路质量不佳时常出现这个问题。
    需要修改/etc/modprobe.conf,将install wctdm这一行改成下面的样子:
    install wctdm /sbin/modprobe --ignore-install wctdm battdebounce=128 && /sbin/ztcfg

    注:以上修改好后,都必须重启asterisk拨号方案

    参考网址:

    http://blog.chinaunix.net/uid-25512517-id-3054891.html

    http://www.xuebuyuan.com/734790.html

    over...

    ctgu_czy
  • 相关阅读:
    Spring HTTP Service
    Nexus搭建Maven私服
    虚拟机Class文件结构笔记
    JVM内存区域与内存溢出异常
    深入学习虚拟机类加载过程
    虚拟机常用的内存查看与分析工具
    对Java内存模型即JMM的理解
    通过Redux源码学习基础概念一:简单例子入门
    跟着官网的例子学Reacjs (一)FilterableProductTable
    es6继承 vs js原生继承(es5)
  • 原文地址:https://www.cnblogs.com/chenzeyong/p/6179976.html
Copyright © 2011-2022 走看看