[Asterisk-bsd] 回复: Re: how can i edit the file to make calls!
lizhong zhu
zhulizhongum at yahoo.com.cn
Wed Jan 9 23:12:13 CST 2008
hello, Richard:
I copied the file to /usr/locla/etc/asterisk and restarting asterisk. the LEDs are not activated. the capi show channesl:
*CLI> capi show channels
CAPI thread [0x0] {
Application ID : 0x00000000
Application uptime : 0x00000e2a seconds
Call descriptor statistics:
allocation count : 0x00000000 call descriptors
free count : 0x00000000 call descriptors
in memory count : 0x00000000 call descriptors
in use count : 0x00000000 call descriptors
record allocation rate : 0x0000 calls/second
limit allocation rate : 0x0010 calls/second
Currently active calls:
channel name, source->destination, call ID, in/out
}
Config entry 'ISDN1' {
b_channels_curr : 2 call descriptor(s) free
b_channels_max : 2 call descriptor(s) total
}
*CLI>
capi.conf
[ISDN1] ;this example interface gets name 'ISDN1' and may be any
;name not starting with 'g' or 'contr'.
isdnmode=msn ;'MSN' (point-to-multipoint)
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * == any
;
; Format of "incomingmsn" is like this:
;
; 0) This will only allow any MSN:
;
; incomingmsn=*
;
; 1) This will only allow (MSN == "1"):
;
; incomingmsn=1
;
; 2) This will only allow (MSN == "1") or (MSN == "2") or (MSN == "3"):
;
; incomingmsn=1,2,3
;
; 3) This will only allow (MSN == "1XX..") or (MSN == "2") or (MSN == "3XX.."):
;
; incomingmsn=1*,2,3*
;
; NOTE: When a number matches "1*", everything preceeding the "*" is
; stripped away from the incoming number. For example if "incomingmsn=1*" and
; the MSN is 1234, only 234 is passed to Asterisk.
;
controller=1 ;ISDN4BSD default (first controller)
group=1 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming calls
softdtmf=off ;enable/disable software dtmf detection
relaxdtmf=off ;in addition to softdtmf, you can use
;relaxed dtmf detection, which implies softdtmf=yes
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in ;context for incoming calls
holdtype=local ;when Asterisk puts the call on hold, ISDN HOLD will be used. If
;set to 'local' (default value), no hold is done and Asterisk may
;play MOH.
;immediate=yes ;immediate start of pbx with extension 's' if no digits were
;received on incoming call (no destination number yet)
echocancel=no ;disable echo canceller
echosquelch=no ;primitive echo suppression (in chan_capi)
;echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64 ;echo cancel tail setting
;bridge=yes ;native bridging (CAPI line interconnect) if available
;callgroup=1 ;Asterisk call group
;deflect=1234567 ;deflect incoming calls to 1234567 if all B channels are busy
the dmesg shows:
i4bctl: ISDN system control port attached
capi: CAPI call control device attached, v2.10
i4b: ISDN call control device attached
i4btrc: 64 ISDN trace device(s) attached
i4brbch: 8 raw B channel access device(s) attached
i4btel: 8 ISDN telephony interface device(s) attached
i am not very sure the capi.conf for BRI 400P( 4 ports and in TE mode). how do i set TE modes for 4 ports? i just run: isdncinfig? or add some parameters? below is what i run isdnconfig:
new-host-3# isdnconfig
controller 8 = {
Layer 1:
description : HFC-4S PCI ISDN adapter
type : passive ISDN (Basic Rate, 2xB)
channels : 0x3
serial : 0xabd5
power_save : on
dialtone : enabled
attached : yes
PH-state : F0: Reset
Layer 2:
driver_type : DRVR_D_CHANNEL
}
controller 9 = {
Layer 1:
description : HFC-4S PCI ISDN adapter
type : passive ISDN (Basic Rate, 2xB)
channels : 0x3
serial : 0xabd6
power_save : on
dialtone : enabled
attached : yes
PH-state : F0: Reset
Layer 2:
driver_type : DRVR_D_CHANNEL
}
controller 10 = {
Layer 1:
description : HFC-4S PCI ISDN adapter
type : passive ISDN (Basic Rate, 2xB)
channels : 0x3
serial : 0xabd7
power_save : on
dialtone : enabled
attached : yes
PH-state : F0: Reset
Layer 2:
driver_type : DRVR_D_CHANNEL
}
controller 11 = {
Layer 1:
description : HFC-4S PCI ISDN adapter
type : passive ISDN (Basic Rate, 2xB)
channels : 0x3
serial : 0xabd8
power_save : on
dialtone : enabled
attached : yes
PH-state : F0: Reset
Layer 2:
driver_type : DRVR_D_CHANNEL
}
new-host-3#
any idea for that?
thanks!
zhulizhong
Richard Neese <r.neese at gmail.com> 写道: ing the i4b capi channel dir there is a conf file called capi.conf this needs
to be coppied to /usr/local/etc/asterisk and then edited
On January 9, 2008 07:00:34 pm lizhong zhu wrote:
> hello, all of friends:
> thanks, Richard Neese. i edit the kernel and add what you gave me and
> recompile kernel, the isdn and capi seems work. i run isdnconfig it show s
> four contralloer. my card is OpenVox B400P. now asterisk can start and show
> : new-host-3*CLI> capi show channels
> CAPI thread [0x0] {
> Application ID : 0x00000000
> Application uptime : 0x00000945 seconds
>
> Call descriptor statistics:
> allocation count : 0x00000000 call descriptors
> free count : 0x00000000 call descriptors
> in memory count : 0x00000000 call descriptors
> in use count : 0x00000000 call descriptors
> record allocation rate : 0x0000 calls/second
> limit allocation rate : 0x0010 calls/second
> Currently active calls:
> channel name, source->destination, call ID, in/out
> }
> Config entry 'ISDN2' {
> b_channels_curr : 2 call descriptor(s) free
> b_channels_max : 2 call descriptor(s) total
> }
> Config entry 'ISDN1' {
> b_channels_curr : 2 call descriptor(s) free
> b_channels_max : 2 call descriptor(s) total
> }
>
> new-host-3*CLI>
> i have no idea for capi.conf for BRI. the LEDs are not blink. i would set
> all 4 ports are in TE mode. anyone can tell me some setting for how to
> start isdn4bsd and as capi.conf ? thanks!
> zhu
>
>
> ---------------------------------
> 雅虎邮箱传递新年祝福,个性贺卡送亲朋!
--
Welcome to the World. An the World gets smaller.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Asterisk-BSD mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-bsd
---------------------------------
雅虎邮箱传递新年祝福,个性贺卡送亲朋!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-bsd/attachments/20080110/77279832/attachment-0001.htm
More information about the Asterisk-BSD
mailing list