美文网首页
Ubuntu+DAHDI+Asterisk+LibPRI安装(二

Ubuntu+DAHDI+Asterisk+LibPRI安装(二

作者: Lin_ZJ | 来源:发表于2017-03-10 15:11 被阅读0次
  1. 执行dahdi_genconf
  2. dahdi_cfg -vv 如果出错请看 Dahdi安装疑难
  3. 查看 system.conf配置
  4. 进入asterisk命令行
  5. dahdi show status
  6. dahdi show channels
  7. 查看/etc/asterisk/dahdi-channels.conf
  8. /etc/asterisk/logger,conf中打开console的debug选项
  9. 设置debug等级core set debug 3
  10. 设置pri的debug等级pri set debug 3 span 1
  11. /etc/asterisk/sip.conf

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
[1001]
type=friend
context=phone
callerid=User One
secret=1001
host=dynamic
canreinvite=no
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
[1002]
type=friend
context=phone
callerid=User two
secret=1002
host=dynamic
canreinvite=no
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw

  1. /etcasterisk/extensions.conf

[general]
static=yes
writeprotect=no
[from-pstn]
exten => _X.,1,Dial(SIP/${EXTEN},20,tr)
[phone]
exten => _9.,1,Dial(dahdi/g0/${EXTEN},20)
exten => 1002,1,Dial(SIP/1002,20,tr)
exten => 1001,1,Dial(SIP/1001,20,tr)

  1. 在asterisk命令行里dialplan reload
  2. 在asterisk命令行里sip reload

相关文章

网友评论

      本文标题:Ubuntu+DAHDI+Asterisk+LibPRI安装(二

      本文链接:https://www.haomeiwen.com/subject/ormngttx.html