Transcript
OpenVox B100P/B100M User Manual
深圳开源通信有限公司
OpenVox B100P/B100M User Manual for DAHDI
B100P
B100M
Date: 02/08/2011 Version: 1.2 OpenVox Communication Co. LTD. URL: www.openvox.cn
1
OpenVox B100P/B100M User Manual
深圳开源通信有限公司 OpenVox-Best Cost Effective Asterisk Cards
OpenVox Communication Co.Ltd. Address: F/3, Block No.127, Jindi Industrial Zone, Shazui Road, Futian district, Shenzhen, Guangdong 518048, China Tel:+86-755-82535461, 82535095, 82535362, Fax:+86-755-82535174 E-Mail:
[email protected] [email protected]
M for Technical Support:
[email protected] Business Hours: 9:00AM-18:00PM from Monday to Friday URL: www.openvox.cn
Thank You for Choosing OpenVox Products! OpenVox Communication Co. LTD. URL: www.openvox.cn
2
OpenVox B100P/B100M User Manual
Content 1. Overview ..............................................................................................4 1.1 What is B100P ..................................................................................................4 1.2 What is asterisk .................................................................................................5
2. Hardware setup...................................................................................6 3. Software installation and configuration .............................................7 3.1 Download..........................................................................................................8 3.2 Installtion ..........................................................................................................8 3.3 Configuration ..................................................................................................11 3.4 Call test ...........................................................................................................13
4. Reference ...........................................................................................13
OpenVox Communication Co. LTD. URL: www.openvox.cn
3
OpenVox B100P/B100M User Manual
Test environments OS version: Centos release 5.6 (Final) Kernel version: 2.6.18-238.12.1.el5 Asterisk: 1.8.4.4 Libpri : libpri-1.4.11.5 Dahdi-linux-complete-2.3.0.1+2.3.0(Only this version is supportive at present!) Hardware: OpenVox B100P/B100M
1. Overview 1.1 What is B100M/B100P NOTE: If user want to use NT mode to connect ISDN phone, the phone need to have the power supply function. B100M/B100P is a PCI 2.2 compliant card supporting 1 BRI S/T interface. B100M/B100P can be implemented for building Open Source Asterisk based systems such as ISDN PBX and VoIP gateway.
Target Applications: 1) High Performance ISDN PC Cards 2) ISDN PABX for BRI 3) VoIP Gateways 4) ISDN LAN Routers for BRI 5) ISDN Least Cost Routers for BRI 6) ISDN Test Equipment for BRI
Main Features: 1) One integrated S/T interfaces 2) ITU-T I.430 and TBR 3 certified and S/T ISDN supporting TE/NT mode 3) Integrated PCI bus interface (Spec.2.2) for 3.3V and 5V signal environments OpenVox Communication Co. LTD. URL: www.openvox.cn
4
OpenVox B100P/B100M User Manual
4) DTMF detection on all B-channels 5) Multiparty audio conferences bridge 6) The port can be independently configured for TE or NT mode Full software and hardware compatible with Junghanns.NET ISDN and mISDN driver 7) Application ready: use Asterisk to build your IP-PBX/Voicemail system
Misc: 1) Temperature Operation: 0 to 50°C 2) Temperature Storage: - 40 to 125°C 3) Humidity:10 TO 90% NON-CONDENSING 4) Voltage:3.3V/5V 5) Power Dissipation Max:0.13W/0.05W RoHS compliant Certificates: CE, FCC
1.2 What is asterisk The Definition of Asterisk is described as follows: Asterisk is a complete PBX in software. It runs on Linux, BSD, Windows (emulated) and provides all of the features you would expect from a PBX and more. Asterisk does voice over IP in four protocols, and can interoperate with almost all standards-based telephony equipment using relatively inexpensive hardware. Asterisk provides Voicemail services with Directory, Call Conferencing, Interactive Voice Response, Call Queuing. It has support for three-way calling, caller ID services, ADSI, IAX, SIP, H323 (as both client and gateway), MGCP (call manager only) and SCCP/Skinny (voip-info.org).
OpenVox Communication Co. LTD. URL: www.openvox.cn
5
Figure 1 :
OpenVox B100P/B100M User Manual
Topology
2. Hardware setup Please refer jumper setting for details. To install B100M/B100P, user should follow the steps. A. Setting Card ID Switch If user wants to install more than one cards of BB100M/100P in one PC, you should take care of the card id switch. It has three rules, which user must follow: 1) The card id of the first card must be set to 0, and the second card should be set to 1, and so on. 2) The First Card is a card that will be initialized (i.e. installing driver) first when system is booting. 3) At most of cases, Linux will initialize PCI devices according to PCI slot order. The slot is nearest to the CPU will be initialized first; the slot at the far end from CPU will be initialized OpenVox Communication Co. LTD. URL: www.openvox.cn
6
OpenVox B100P/B100M User Manual
at last. That is to say, if user has more than one cards of B100P in pc, the one is nearest to CPU should be set to card id 0. B. Adjusting Termination of S/T Interface (100 ohm) 1) If a port will work on NT mode, user should set jumper to CONNECT (ON). 2) If a port will work on TE mode, Theoretically it should be to OPEN(OFF), but user might connect to some non-standard isdn terminal equipments that do not have terminal resistors, for such equipments, you should set it to CONNECT(ON). C. Power Supply Selection Some newest model PCs do not provide +5V on the PCI slots, at those cases, use has to set the jumper to 3.3v.
3. Software installation and configuration B100M/100P supports DAHDI software device driver on Linux. To make full use of B100P/B100M, you should download, compile, install and configure DAHDI, libpri and asterisk.
OpenVox Communication Co. LTD. URL: www.openvox.cn
7
OpenVox B100P/B100M User Manual
3.1 Download Download Libpri, DAHDI and asterisk package to the directory of /usr/src/ from www. asterisk.org wget http://downloads.asterisk.org/pub/telephony/libpri/ releases/libpri-1.4.11.5.tar.gz tar -zxvf libpri-1.4.11.5.tar.gz wget http://downloads.asterisk.org/pub/telephony/dahdi-l inux-complete/releases/dahdi-linux-complete-2.3.0.1+2.3.0.t ar.gz tar -zxvf dahdi-linux-complete-2.3.0.1+2.3.0.tar.gz wget http://downloads.asterisk.org/pub/telephony/asteris k/releases/asterisk-1.8.4.4.tar.gz tar -zxvf asterisk-1.8.4.4.tar.gz
You need to get a patch from OpenVox official website and copy it to the directory of dahdi-linux-complete-2.3.0.1+2.3.0/linux/ to apply the patch: cd dahdi-linux-complete-2.3.0.1+2.3.0/linux wget http://downloads.openvox.cn/pub/drivers/dahdi-patch es/B100P/B100_dahdi_2.3.0.1_complete_patch.extra patch -p2 < B100_dahdi_2.3.0.1_complete_patch.extra vim ../tools/modules.sample Add "vzaphfc" and comment "wcb4xxp" in the file "modules.sample" like this: # Digium TDM400P: up to 4 analog ports wctdm # Openvox B100P: 1 NT/TE BRI ports vzaphfc # must add this line # Digium B410P: 4 NT/TE BRI ports #wcb4xxp # must comment this line
3.2 Installtion 1. Detect hardware by execute command: lspci –vvvv Check the outcome and confirm your system has recognized B100P. If identified, outp uts are like that: OpenVox Communication Co. LTD. URL: www.openvox.cn
8
OpenVox B100P/B100M User Manual
Figure 3: Hardware detection
3.
Modify the environment variables
Checking the supporting packages Note that if there is no kernel source in the system, user should install them. User can run command: yum install kernel-devel. It is time to check for the availability of some other packages:
rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm
-q -q -q -q -q -q -q -q -q -q -q
bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++
If any of those packages are not installed install them by using yum :
yum yum yum yum yum yum yum yum yum yum yum
install install install install install install install install install install install
bison bison-devel ncurses ncurses-devel zlib zlib-devel openssl openssl-devel gnutls-devel gcc gcc-c++
3. Compile You must follow below steps: OpenVox Communication Co. LTD. URL: www.openvox.cn
9
OpenVox B100P/B100M User Manual
1) Compiling DAHDI:
cd dahdi-linux-complete-2.3.0.1+2.3.0 make all make install make config 2) Compiling libpri:
cd libpri-1.4.11.5 make make install 3) Compiling asterisk:
cd asterisk-1.8.4.4 ./configure make make install make samples
If user use Asterisk 1.8,user don't to patch it. If user use Asterisk 1.6, please modifying the file asterisk-1.6.xx/channels/chan_dahdi.c like the following: Please comment out the following line:
/*ast_log(LOG_WARNING,
"How
cool
would
it
be
if
someone
implemented this mode!For now, sucks for you. (line %d)\n", v->lineno);*/
Then add the following two lines after the comment: confp->chan.sig = SIG_BRI_PTMP; confp->pri.nodetype = PRI_NETWORK;
(asterisk-1.6.0.1----asterisk-1.6.2.19 can work well with this patch.)
OpenVox Communication Co. LTD. URL: www.openvox.cn
10
OpenVox B100P/B100M User Manual
3.3 Configuration 1. Load opvxa24xx driver Service dahdi stop modprobe dahdi modprobe vzaphfc (Use TE mode) dahdi_genconf dahdi_cfg -vvvvvvvv
There are two issues for B100P/NT mode: 1) After reboot the system, the driver can't be loaded as NT mode. User need to reload it. After reboot, please run the command: modprobe -r vzaphfc modprobe vzaphfc modes=1 force_l1_up=0
Or add the following line in /etc/modprobe.conf: options modprobe vzaphfc modes=1 force_l1_up=0 2) And sometimes the first call can't work, in this situation user need to restart asterisk. We are follow-up the issues, it’s in progress. 2. Check configuration files
system.conf # If you edit this file and execute /usr/sbin/dahdi_genconf a gain, # your manual changes will be LOST. # Dahdi Configuration File # # This file is parsed by the Dahdi Configurator, dahdi_cfg # # Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [TE] " (MASTER) span=1,1,0,ccs,ami # termtype: te bchan=1-2 hardhdlc=3 echocanceller=mg2,1-2 OpenVox Communication Co. LTD. URL: www.openvox.cn
11
OpenVox B100P/B100M User Manual
# Global data loadzone defaultzone
= us = us
dahdi-channels.conf
If use TE mode, set signaling = bri_cpe_ptmp; If use NT mode, set signaling = bri_net_ptmp instead. Here is an example: ; Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] " (MASTER) group=0,11 context=from-isdn overlapdial=yes # must add this line switchtype = euroisdn signalling = bri_cpe_ptmp channel => 1-2 context = default group = 63 Make sure add the line "include dahdi-channels.conf" in the file chan_dahdi.conf 3. Start up asterisk server by executing command: asterisk -vvvvvvvvvgc If asterisk is already activate, run “asterisk –r” instead. After entering CLI, run command “dahdi show channels” and “pri show spans” *CLI> dahdi show channels Chan Extension Context Language pseudo default 1 from-isdn 2 from-isdn *CLI> *CLI> pri show spans PRI span 1/0: Provisioned, Up, Active *CLI>
MOH Interpret default default default
Blocked
State In Service In Service In Service
If you can see the ports with up active status, you will be able to make calls. Otherwise, OpenVox Communication Co. LTD. URL: www.openvox.cn
12
OpenVox B100P/B100M User Manual
please check the setting files and physical connections.
3.4 Call test User must make sure that the context "from-isdn" and "from-internal" are in extensions.conf. Here an example is given: sip.conf [100] type=friend username=100 secret=100 host=dynamic context=from-internal
extentions.conf [from-isdn] exten => s,1,Dial(SIP/100,,r) exten => s,n,Hangup() [from-internal] exten => _X.,1,Dial(dahdi/1/${EXTEN},,r) exten => _X.,n,Hangup() If there is a call from the isdn line, asterisk will transfer to sip 100 , the sip phone will ring; if use sip 100 to call any phone number you want , you will get it done!
4. Reference www.openvox.cn www.digium.com www.asterisk.org www.voip-info.org www.asteriskguru.com
Tips Any questions during installation or usage, please consult in our forum or look up for answers from the following websites:
http://bbs.openvox.cn/ http://wiki.openvox.cn/index.php/Troubleshooting_of_BRI_cards OpenVox Communication Co. LTD. URL: www.openvox.cn
13