- 执行dahdi_genconf
- dahdi_cfg -vv 如果出错请看 Dahdi安装疑难
- 查看 system.conf配置
- 进入asterisk命令行
- dahdi show status
- dahdi show channels
- 查看/etc/asterisk/dahdi-channels.conf
- /etc/asterisk/logger,conf中打开console的debug选项
- 设置debug等级core set debug 3
- 设置pri的debug等级pri set debug 3 span 1
- /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
- /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)
- 在asterisk命令行里dialplan reload
- 在asterisk命令行里sip reload
网友评论