免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2095 | 回复: 0
打印 上一主题 下一主题

asterisk+isdn4bsd+freebsd+openvox [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-27 11:36 |只看该作者 |倒序浏览

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}

  Normal
  0
  false
  
  
  7.8 磅
  0
  2
  
  false
  false
  false
  
  EN-US
  ZH-CN
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
  
   
   
   
   
   
   
   
   
   
   
   
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:普通表格;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-priority:99;
        mso-style-qformat:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.5pt;
        mso-bidi-font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-ascii-font-family:Calibri;
        mso-ascii-theme-font:minor-latin;
        mso-hansi-font-family:Calibri;
        mso-hansi-theme-font:minor-latin;
        mso-font-kerning:1.0pt;}
hello, all of users:
Firstly, I must say thanks to Hans, and other friends to
help me. Now it works with OpenVox B100P/B200P/B400PB/800P. It can support
LEDs. wow! Since some users have problems with installation, I come out a more
detailed instruction for them. maybe, it can help them. If I missed something
in the doc, please add on it and try to be perfect. To install OpenVox BRI
cards, you have to follow few steps:
1) install freebsd-6.2 with source files:
run: sysinstall->configure->distributions->base,
kernels, src and sys

and ports. If you are not sure that, please select more
options.
It is very important for compiling isdn4bsd and kernels.
please check it carefully.
2) portsnap fetch, it will take much time
3) portsnap extract
4) cd to asterisk port(usr/ports/net/asterisk(Asterisk
1.4.17)
and make install clean to install asterisk with other
packages.
5) Install Subversion and created one dir call i4b under
/usr/src
6) Refer the doc from Hans website to install svn code:
http://www.turbocat.net/~hselasky/isdn4bsd/
7) Install chan_capi under
/usr/src/i4b/i4b/trunk/chan_capi


  
  
  
  
  
  
  
  
  
  
  
  




file:///F:/Users/ADMINI%7E1/AppData/Local/Temp/msohtmlclip1/01/clip_image001.gif
Recompile
kernel with capi and i4b. Some people use kldload i4b, but i can not do
that. Edit the GENERIC and add these values:
# i4b required
option IPR_VJ
device "i4bdss1"
device "i4b"
device "i4btrc"
device
"i4bctl"
device "i4brbch"
device "i4btel"
device ihfc
device sound

and recompile it and make depend and make install. if you
want to know about kernel-freebsd, please read freebsd handbook.
9) After compile the kernel, you have to edit the
capi.conf and extensiosn.conf under /usr/local/etc/asterisk.
here, i list out my capi.conf and extensiosn.conf as a
doc for you
**************************capi.conf*****************
; example "capi.conf"
;;
[general]
nationalprefix=0
internationalprefix=00
rxgain=1.0
txgain=1.0
;ulaw=yes ;set this, if you live in u-law world instead
of a-law
debug=yes ;set this, if capi debugging should be enabled
by default
[ISDN1]
isdnmode=msn ;'MSN' (point-to-multipoint)
incomingmsn=* ;allow incoming calls to this list of
MSNs/DIDs, * ==
controller=8 ;ISDN4BSD default (first controller)
group=2 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming
calls
softdtmf=1 ;enable/disable software dtmf detection
relaxdtmf=off ;in addition to softdtmf, you can use
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_te ;context for incoming calls
holdtype=local
immediate=yes ;immediate start of pbx with
echocancel=no ;disable echo canceller
bridge=yes ;native bridging (CAPI line interconnect) if
available
;callgroup=1 ;Asterisk call group
;deflect=1234567
devices=2 ;number of concurrent calls on this controller
[ISDN2] ;this example interface gets name 'ISDN1' and may
be any
;name not starting with 'g' or
isdnmode=msn ;'MSN' (point-to-multipoint)
incomingmsn=* ;allow incoming calls to this list of
MSNs/DIDs, * ==;
controller=9 ;ISDN4BSD default (first controller)
group=2 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming
calls
softdtmf=0
relaxdtmf=off ;in addition to softdtmf, you can use
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_te ;context for incoming calls
holdtype=local
immediate=yes
echocancel=no ;disable echo canceller
;echotail=64 ;echo cancel tail setting
bridge=yes ;native bridging (CAPI line interconnect) if
available
;callgroup=1 ;Asterisk call group
;deflect=1234567
devices=2 ;number of concurrent calls on this controller
[ISDN3] ;this example interface gets name 'ISDN1' and may
be any
isdnmode=msn ;'MSN'
incomingmsn=*
controller=10 ;ISDN4BSD default (first controller)
group=2 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming
calls
softdtmf=0 ;enable/disable software dtmf detection
relaxdtmf=off
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_te ;context for incoming calls
holdtype=local
immediate=yes
echocancel=no ;disable echo canceller
;echotail=64 ;echo cancel tail setting
bridge=yes ;native bridging (CAPI line interconnect) if
available
devices=2 ;number of
[ISDN4] ;this example interface gets name 'ISDN1' and may
be any
isdnmode=msn ;'MSN' (point-to-multipoint)
incomingmsn=*
controller=11 ;ISDN4BSD default (first controller)
group=1 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming
calls
softdtmf=0 ;enable/disable software dtmf detection
relaxdtmf=off ;in addition to softdtmf, you can use
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_te ;context for incoming calls
holdtype=local
immediate=yes
echocancel=no
;echotail=64 ;echo cancel tail setting
bridge=yes ;native bridging (CAPI line interconnect) if
available
;callgroup=1 ;Asterisk call group
;deflect=1234567
devices=2 ;number of concurrent calls on this controller
;dtmf_generate=yes ; set this if your [SIP] phone does
********************extensions.conf********************
[isdn_in_te]
exten => s,1,NoOp(Invalid incoming call ${EXTEN})
exten => s,2,Dial(SIP/600)
[from-internal]
exten =>
100,1,Dial(CAPI/contr11/1342439XXXXXX/b1,100,Tt)
exten => 100,2,Hangup
exten => 500,1,Dial(sip/500)
exten => 500,2,Hganup
;
10) run the isdnconfig: isdnconfig -u 8(9,10,11)
pcm_master -p DRVR_DSS1_TE
to activate the controllers(8,9,10,11)
11) run asterisk: asterisk -vvvvvvvvvvgc, pleae check
chan_capi.so
i called to controller 11, it works. i can make inbound
calls and out bound calls using that port. That's all I did. hope somebody add
more and make it as much complete as possible.
Regards,
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/77518/showart_1149874.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP