<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16385"><LINK rel=stylesheet
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT size=2 face=Verdana>Hi,</FONT></DIV>
<DIV> With the help of <EM>Armin Schindler </EM>i have
installed openvox B200P + mISDN-1.1.9.1 + chan_capi-1.1.4 + asterisk-1.4.26.2
successful.</DIV>
<DIV>Thanks! let me show my steps:</DIV>
<DIV> </DIV>
<DIV>my environment:</DIV>
<DIV>intel DG41MJ motherbroad</DIV>
<DIV>openvox B200P</DIV>
<DIV>debian lenny 5.0.3</DIV>
<DIV>mISDN-1.1.9.1</DIV>
<DIV>chan_capi-1.1.4</DIV>
<DIV>asterisk-1.4.26.2</DIV>
<DIV> </DIV>
<DIV>1. install the mISDN, asterisk, then modify
chan_capi-1.1.4/chan_capi.c</DIV>
<DIV> add some head files:</DIV>
<DIV> </DIV>
<DIV style="TEXT-INDENT: 4em">
<DIV></DIV>
<DIV>#include "chan_capi_platform.h" //under this line</DIV></DIV>
<DIV style="TEXT-INDENT: 4em">
<DIV>#include <asterisk/strings.h></DIV>
<DIV>#include <asterisk/dsp.h></DIV>
<DIV>#include <asterisk/devicestate.h></DIV>
<DIV>#include <asterisk/features.h></DIV>
<DIV> </DIV></DIV>
<DIV style="TEXT-INDENT: 2em">then complie chan_capi</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV>2. modify the /usr/sbin/mISDN in line 186, add # in the head, add a new
line " HFCMULTI_layermask[${i}]="0x1f,0x1f" " under line 186</DIV>
<DIV> </DIV>
<DIV>3. modify /etc/asterisk/modules.conf, add those:</DIV>
<DIV>
<DIV style="TEXT-INDENT: 2em">load => res_features.so</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV style="TEXT-INDENT: 2em">load => chan_capi.so</DIV>
<DIV></DIV>
<DIV style="TEXT-INDENT: 2em">[global]</DIV>
<DIV style="TEXT-INDENT: 2em">chan_capi.so=yes</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV>4. my capi.conf like:</DIV>
<DIV> </DIV>
<DIV>
<DIV>[general]</DIV>
<DIV>nationalprefix=0 ; or for example "+49"</DIV>
<DIV>internationalprefix=00 ; or for example "+"</DIV>
<DIV>;subscriberprefix=+4969 ; prefix including area code (some lines need this)</DIV>
<DIV>rxgain=1.0 ;linear receive gain (1.0 = no change)</DIV>
<DIV>txgain=1.0 ;linear transmit gain (1.0 = no change)</DIV>
<DIV>language=de ;set default language</DIV>
<DIV>;ulaw=yes ;set this, if you live in u-law world instead of a-law</DIV>
<DIV></DIV>
<DIV>;jb..... ;with Asterisk 1.4 you can configure jitterbuffer,</DIV>
<DIV> ;see Asterisk documentation for all jb* setting available.</DIV>
<DIV>;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>; interface sections ...</DIV>
<DIV></DIV>
<DIV>[ISDN1] ;this example interface gets name 'ISDN1' and may be any</DIV>
<DIV> ;name not starting with 'g' or 'contr'.</DIV>
<DIV> ;Use one interface section for each ISDN port!</DIV>
<DIV>;ntmode=yes ;if the ISDN card operates in NT-mode, set this to 'yes'</DIV>
<DIV>isdnmode=msn ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)</DIV>
<DIV> ;when using NT-mode, 'DID' should be set in any case</DIV>
<DIV>incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any</DIV>
<DIV>;defaultcid=123 ;set a default caller ID to that interface for dial-out,</DIV>
<DIV> ;this caller ID will be used when the dial option 'd' is set.</DIV>
<DIV>;controller=0 ;ISDN4BSD default</DIV>
<DIV>;controller=7 ;ISDN4BSD USB default</DIV>
<DIV>controller=1 ;CAPI controller number of this interface/port</DIV>
<DIV>group=1 ;dialout group</DIV>
<DIV>;prefix=0 ;set a prefix to the calling number on incoming calls</DIV>
<DIV>softdtmf=on ;enable/disable software DTMF detection, recommended for AVM cards</DIV>
<DIV>relaxdtmf=on ;in addition to softdtmf, you can use relaxed DTMF detection</DIV>
<DIV>faxdetect=off ;enable faxdetection and redirection to EXTEN 'fax' for incoming and/or</DIV>
<DIV> ;outgoing calls. (default='off', possible values: 'incoming','outgoing','both')</DIV>
<DIV>faxdetecttime=0 ;Only detect faxes during the first 'n' seconds of the call.</DIV>
<DIV> ;(default '0' meaning for the whole duration of the call)</DIV>
<DIV>;accountcode= ;PBX accountcode to use in CDRs</DIV>
<DIV>;amaflags=default;AMA flags for CDR ('default', 'omit', 'billing', or 'documentation')</DIV>
<DIV>context=from-isdn ;context for incoming calls</DIV>
<DIV>;holdtype=hold ;when the PBX puts the call on hold, ISDN HOLD will be used. If</DIV>
<DIV> ;set to 'local' (default value), no hold is done and the PBX may</DIV>
<DIV> ;play MOH.</DIV>
<DIV>;immediate=yes ;DID: immediate start of PBX with extension 's' if no digits were</DIV>
<DIV> ; received on incoming call (no destination number yet)</DIV>
<DIV> ;MSN: start PBX on CONNECT_IND and do not wait for SETUP/SENDING-COMPLETE.</DIV>
<DIV> ; info like REDIRECTINGNUMBER may be lost, but this is necessary for</DIV>
<DIV> ; drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.</DIV>
<DIV>;echosquelch=1 ;_VERY_PRIMITIVE_ echo suppression. Disable it before you start recording voicemail</DIV>
<DIV> ;or your files may get choppy. (you can use capicommand(echosquelch|no) for this)</DIV>
<DIV>;echocancel=yes ;Dialogic(R) Diva(R) (CAPI) echo cancellation (yes=g165)</DIV>
<DIV> ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')</DIV>
<DIV>;echocancelpath=1;Dialogic(R) Diva(R) (CAPI) echo cancellation path</DIV>
<DIV> ;(possible values: default '1' - E.1/T.1/S0, '2' - IP, '3' - both)</DIV>
<DIV>;echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)</DIV>
<DIV>;echotail=64 ;echo cancel tail setting (default=0 for maximum)</DIV>
<DIV>;echocancelnlp=1 ;activate non-linear-processing; this improves echo cancel ratio, but might</DIV>
<DIV> ;incorporate variable gain in the signal path.</DIV>
<DIV>bridge=no ;native bridging (CAPI line interconnect) if available</DIV>
<DIV>;callgroup=1 ;PBX call group</DIV>
<DIV>;pickupgroup=1 ;PBX pickup group (which call groups are we allowed to pickup)</DIV>
<DIV>;transfergroup=1 ;Controller(s) where a transfer on native bridge is allowed to.</DIV>
<DIV>;language=de ;set language for this device (overwrites default language)</DIV>
<DIV>;disallow=all ;RTP codec selection (valid with Dialogic(R) Diva(R) Media Boards only)</DIV>
<DIV>;allow=all ;RTP codec selection (valid with Dialogic(R) Diva(R) Media Boards only)</DIV>
<DIV>devices=2 ;number of concurrent calls (B-Channels) on this controller</DIV>
<DIV> ;(2 makes sense for single BRI, 30/23 for PRI/T1)</DIV>
<DIV>;jb..... ;with Asterisk 1.4 you can configure jitterbuffer,</DIV></DIV>
<DIV>
<DIV> ;see Asterisk documentation for all jb* setting available.</DIV>
<DIV>;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.</DIV>
<DIV>;qsig=1 ;enable use of Q.SIG extensions. ECMA Variant</DIV>
<DIV>;qsig_prnum=1234 ;enable inbound bridging - this should be an QSIG-network-wide unique number</DIV>
<DIV></DIV>
<DIV>[ISDN2]</DIV>
<DIV>;isdnmode=msn</DIV>
<DIV>controller=2</DIV>
<DIV>bridge=no</DIV>
<DIV>echocancel=noi</DIV>
<DIV>incomingmsn=*</DIV>
<DIV>context=from-isdn</DIV>
<DIV>devices=2</DIV></DIV>
<DIV> </DIV>
<DIV>5. add those in extensions.conf</DIV></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV>
<DIV>[from-isdn]</DIV>
<DIV>exten => s, 1, answer()</DIV>
<DIV>exten => s, 2, Dial(SIP/100)</DIV>
<DIV>exten => s, 3, hangup</DIV>
<DIV></DIV>
<DIV>[from-sip]</DIV>
<DIV>exten => 1, 1, Dial(CAPI/ISDN2/xxxx(the number you
want to dial)/b)</DIV>
<DIV>exten => 1, n, hangup</DIV>
<DIV> </DIV>
<DIV>6. add a sip account in sip.conf</DIV>
<DIV> </DIV>
<DIV>
<DIV>[100]</DIV>
<DIV>type=friend</DIV>
<DIV>username=100</DIV>
<DIV>secret=100</DIV>
<DIV>host=dynamic</DIV>
<DIV>context=from-sip</DIV>
<DIV> </DIV>
<DIV>7. Now you can use those command to start:</DIV>
<DIV> </DIV>
<DIV style="TEXT-INDENT: 2em">modprobe capi</DIV>
<DIV style="TEXT-INDENT: 2em">mISND start</DIV>
<DIV style="TEXT-INDENT: 2em">asterisk -vvvvvvvvvvvvvvgc</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV>8. the use command " capi info " & " capi show channels " to
check</DIV>
<DIV> </DIV>
<DIV>9. You can dial in or dial out with the soft phone if all those step are
work.</DIV>
<DIV>
<DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Reagards</DIV>
<DIV>Dennis.Den </DIV></DIV></DIV>
<DIV> </DIV></DIV></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2010-02-26
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>qiaoqiao7036</SPAN>
</FONT></DIV></FONT></BODY></HTML>