跳到主要内容

DAHDI

# 中断
cat /proc/interrupts

# 端口信息
grep . /sys/bus/dahdi_spans/devices/span-*/{alarms,basechan,channels,desc,is_digital,is_sync_master,lbo,linecompat,lineconfig,local_spanno,name,spantype,syncsrc,uevent}
# 设备信息
grep . /sys/bus/dahdi_devices/devices/*/{assign_span,auto_assign,hardware_id,location,manufacturer,registration_time,span_count,spantype,type,uevent}

# 查看线路类型
grep . /sys/bus/dahdi_devices/devices/*/spantype
head -q /proc/dahdi/*

OpenVox 驱动

wget http://www.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-current.tar.gz
tar zxvf openvox_dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete*

https://www.openvox.cn/pub/drivers/dahdi-linux-complete/openvox_dahdi-linux-complete-2.11.1.gz
apk add bison zlib{,-dev} ncurses{,-dev} libxml2{,-dev} openssl{,-dev} gnutls{,-dev} linux-headers make abuild gcc g++ perl git wget

# 要看具体使用的什么内核 uname -r
# apk add linux-hardened{,-dev}
apk add linux-vanilla{,-dev}

# 或者用 docker 编译
docker run -it --rm -v $PWD:/src wener/asterisk:builder bash

# 先编译 dahdi 驱动
make install -C linux KVERS=4.9.49 DESTDIR=$PWD/dist/4.9.49

# 如果是 hardened 那么一般是这样的
make install KVERS=4.9.32-0-hardened
# 安装到其他地方
make install KVERS=4.9.32-0-hardened DESTDIR=$PWD/dist/4.9.32-0-hardened

其他驱动

  • wctdmc1k

Digium 数字卡

  • wcte43x:
    • Digium TE435: PCI express quad-port T1/E1/J1
    • Digium TE436: PCI quad-port T1/E1/J1
    • Digium TE235: PCI express dual-port T1/E1/J1
    • Digium TE236: PCI dual-port T1/E1/J1
  • wcte13xp:
    • Digium TE131: PCI express single-port T1/E1/J1
    • Digium TE133: PCI express single-port T1/E1/J1 with echocan
    • Digium TE132: PCI single-port T1/E1/J1
    • Digium TE134: PCI single-port T1/E1/J1 with echocan
  • wct4xxp:
    • Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
    • Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
    • Digium TE220: PCI-Express dual-port T1/E1/J1
    • Digium TE420: PCI-Express quad-port T1/E1/J1
    • Digium TE820: PCI-Express eight-port T1/E1/J1
  • wcte12xp:
    • Digium TE120P: PCI single-port T1/E1/J1
    • Digium TE121: PCI-Express single-port T1/E1/J1
    • Digium TE122: PCI single-port T1/E1/J1
  • wcte11xp:
    • Digium TE110P: PCI single-port T1/E1/J1
  • wct1xxp:
    • Digium T100P: PCI single-port T1
    • Digium E100P: PCI single-port E1
  • wcb4xxp:
    • Digium B410: PCI quad-port BRI
  • tor2: Tormenta quad-span T1/E1 card from the Zapata Telephony project

Digium 模拟卡

  • wcaxx:
    • Digium A8A: PCI up to 8 mixed FXS/FXO ports
    • Digium A8B: PCI express up to 8 mixed FXS/FXO ports
    • Digium A4A: PCI up to 4 mixed FXS/FXO ports
    • Digium A4B: PCI express up to 4 mixed FXS/FXO ports
  • wctdm24xxp:
    • Digium TDM2400P/AEX2400: up to 24 analog ports
    • Digium TDM800P/AEX800: up to 8 analog ports
    • Digium TDM410P/AEX410: up to 4 analog ports
    • Digium Hx8 Series: Up to 8 analog or BRI ports
  • wctdm:
    • Digium TDM400P: up to 4 analog ports
  • xpp: Xorcom Astribank: a USB connected unit of up to 32 ports
    • including the digital BRI and E1/T1 modules
  • wcfxo: X100P, similar and clones. A simple single-port FXO card

OpenVox

  • D110
    • wcte11xp
  • D130/D115
    • opvxd115
  • D230/D210 D430/D410 D830
    • wct4xxp
  • A400
    • modprobe wctdm opermode=CHINA
  • A800 A1200
    • modprobe opvxa1200 opermode=CHINA
  • A810 A2410
    • modprobe opvxa24xx opermode=CHINA
  • B400 B800
    • modprobe wcb4xxp te_nt_override=0x03
  • OpenVox G400P GSM/CDMA PCI
    • GSM 驱动
    • opvxg4xx