返回列表 發帖

【角色茶桌】—— Asterisk 1.8 + TDM400P + Dahdi

本帖最後由 角色 於 2011-10-4 01:07 編輯

Wildcard TDM400P是PSTN Analogue card,它可以接FXO, FXS, 随意自己的需要,有所组合,不过,一般用FXO比较多,因为它FXO可以接入如SPA3000, OBi110,Skype ATA的FXS接口。

已在CentOS 5.5 Asterisk 1.4安装过Wildcard TDM400P,因为没有记录,所以怎样安装也从头来过。

现在到Asterisk 1.8,再从新安装Wildcard TDM400P。

www.asterisk.orghttp://www.asterisk.org/downloads,
下载dahdi complete版本,http://downloads.asterisk.org/pu ... .0.1+2.5.0.1.tar.gz, 然后按README里的要求安装。

参考文献:
alang : A400P - PSTN Interface Card(FXS+FXO)
Asterisk 1.4 + TDM400P + Dahdi Installation
TDM400P PSTN-In and PSTN-out Settings
角色

因为我只有两张FXO卡,安装好,reboot,后面有两栈灯亮着,我知道安装成功了,但是之后怎样做呢?看来都是慢慢看书。

角色

TOP

当然能,要慢慢调整就可以。

角色

TOP

本帖最後由 角色 於 2011-10-4 01:04 編輯

1) 检测到有什么卡插入呢?
  1. [root@leo asterisk]# dahdi_hardware
  2. pci:0000:05:00.0     wctdm+       e159:0001 Wildcard TDM400P REV I
  3. [root@leo asterisk]#
複製代碼
2) 怎样检测到有什么FXO/FXS卡插入TDM400P
  1. [root@leo ~]# dahdi_scan
  2. [1]
  3. active=yes
  4. alarms=OK
  5. description=Wildcard TDM400P REV I Board 5
  6. name=WCTDM/4
  7. manufacturer=Digium
  8. devicetype=Wildcard TDM400P REV I
  9. location=PCI Bus 05 Slot 01
  10. basechan=1
  11. totchans=4
  12. irq=82
  13. type=analog
  14. port=1,FXO
  15. port=2,FXO
  16. port=3,none
  17. port=4,none
  18. [root@leo ~]#
複製代碼
从上面图可以看出来,我插入的两张FXO卡,在Port1和port2.

3) 用dahdi_genconf去generate /etc/dahdi/system.conf and  /etc/asterisk/dahdi-channels.conf)
  1. asterisk:~# dahdi_genconf
複製代碼
4) 用dahdi_cfg -v去检查是否上一个程序是否有功效
  1. [root@leo asterisk]# dahdi_cfg -v
  2. DAHDI Tools Version - 2.5.0.1

  3. DAHDI Version: 2.5.0.1
  4. Echo Canceller(s): HWEC
  5. Configuration
  6. ======================


  7. 2 channels to configure.

  8. Setting echocan for channel 1 to mg2
  9. Setting echocan for channel 2 to mg2
  10. [root@leo asterisk]#
複製代碼
5) Restart dahdi
  1. [root@leo asterisk]# service dahdi restart
  2. Unloading DAHDI hardware modules: ERROR: Module dahdi is in use
  3. error
  4. Loading DAHDI hardware modules:
  5.   wct4xxp:                                                 [  OK  ]
  6.   wcte12xp:                                                [  OK  ]
  7.   wct1xxp:                                                 [  OK  ]
  8.   wcte11xp:                                                [  OK  ]
  9.   wctdm24xxp:                                              [  OK  ]
  10.   wcfxo:                                                   [  OK  ]
  11.   wctdm:                                                   [  OK  ]
  12.   wcb4xxp:                                                 [  OK  ]
  13.   wctc4xxp:                                                [  OK  ]
  14.   xpp_usb:                                                 [  OK  ]

  15. Running dahdi_cfg:                                         [  OK  ]
  16. [root@leo asterisk]#
複製代碼
6) Restart asterisk

  asterisk:~#  /etc/init.d/asterisk restart
or
  asterisk:~#  service asterisk restart
  1. [root@leo asterisk]# service asterisk restart
  2. Stopping safe_asterisk:                                    [  OK  ]
  3. Shutting down asterisk:                                    [  OK  ]
  4. Starting asterisk:
  5. [root@leo asterisk]#
複製代碼
7) check installed channels
  1. leo*CLI> dahdi show channels
  2.    Chan Extension  Context         Language   MOH Interpret        Blocked    State
  3. pseudo            default                    default                         In Service
  4.       1            from-pstn                  default                         In Service
  5.       2            from-pstn                  default                         In Service
  6. leo*CLI>
複製代碼

TOP

在上面最后一步(dahdi show channels)证明安装成功,下一步就是建立dialplan。

角色

TOP

谢谢师兄的信息,看来CHing都Asterisk高手,请多多指教。

角色

TOP

返回列表