Skip to main content

DAHDi

Tips#

apk add dahdi-linux-lts
dahdi_genconf modulescat /etc/dahdi/modulesmodprobe <previously listed detected drivers>dahdi_genconf systemdahdi_cfg


# 先查看所有的lspci# 然后可以查看单个的详情, 可以看到使用的模块lspci -s 09:00.0 -vvvv
# 查看模块信息modinfo dahdi# 查看安装的模块lsmodless /proc/modules# 查看可安装模块ls -l /lib/modules/$(uname -r)/kernel/drivers/# 模块安装modprobe dahdi# 移除modprobe -r wctdm24xxp
# 如果模块是拷贝过去的, 可能要先进行该操作depmod -a
# 查看设备信息cat /proc/dahdi/1ls /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