Skip to main content

DAHDi

Tips

apk add dahdi-linux-lts

dahdi_genconf modules
cat /etc/dahdi/modules
modprobe <previously listed detected drivers>
dahdi_genconf system
dahdi_cfg



# 先查看所有的
lspci
# 然后可以查看单个的详情, 可以看到使用的模块
lspci -s 09:00.0 -vvvv

# 查看模块信息
modinfo dahdi
# 查看安装的模块
lsmod
less /proc/modules
# 查看可安装模块
ls -l /lib/modules/$(uname -r)/kernel/drivers/
# 模块安装
modprobe dahdi
# 移除
modprobe -r wctdm24xxp

# 如果模块是拷贝过去的, 可能要先进行该操作
depmod -a

# 查看设备信息
cat /proc/dahdi/1
ls /dev/dahdi/

# pri show spans

asterisk -rx "dahdi show version"
asterisk -rx "pri show version"
  • modprobe dahdi
  • modprobe wctdm
  • /sys/bus/dahdi_devices
  • dahdi -> crc_ccitt
  • oct612x -> dahdi
  • wct4xxp -> oct612x,dahdi
clidesc
dahdi create channels创建通道
dahdi destroy channels删除通道
dahdi restart完全重启通道
dahdi set dnd设置/重置通道 勿扰模式 DND (Do Not Disturb)
`dahdi set hwgain {rxtx}`
`dahdi set swgain {rxtx}`
dahdi show cadencesList cadences
`dahdi show channels [groupcontext]`
dahdi show channel通道信息
dahdi show status所有 DAHDI 卡状态
dahdi show versionDAHDI 版本

DAHDi Trunk

TRUNK=DAHDI/G2
  • 在 chan_dahdi.conf 定义的分组 2
optionselectaka
glowest-numbered non-busy DAHDIascending sequential hunt group
Ghighest-numbered non-busy DAHDIdescending sequential hunt group
rround-robin search, starting at the next highest channel than last timeascending rotary hunt group
Rround-robin search, starting at the next lowest channel than last timedescending rotary hunt group