Posted: Thu Jan 10, 2008 5:22 am Post subject: [Asterisk-bsd] »Ø¸´£º Re: how can i edit the file to make c
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@gmail.com> дµÀ£º
Quote:
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:
Quote:
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
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
Posted: Fri Jan 11, 2008 9:13 am Post subject: [Asterisk-bsd] »Ø¸´£º Re: how can i edit the file to make c
hello, all of you:
i changed to Openvox B200P to test it. but i have no luck for that. the isdnconfig is like this:
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 : F4: Awaiting signal
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#
i also test by run: capitest -u 8 -o 1357XXXXXX.
main.c: capi_send_listen_request: sending listen request for incoming_calls
main.c: capi_send_listen_request: sending listen request for incoming_calls
main.c: capi_send_listen_request: sending listen request for incoming_calls
dialing out, 1 / 1 ...
main.c: cd_event: disconnected: user busy
i do not know what happen with the card. Could you tell me a right command for isdnconfig for BRI 200P for TE mode? i just want to set all TE mode to test it first.
asterisk can start with capi. cable is ok. i do not know why i can not make calls.
regards,
zhu
Hans Petter Selasky <hselasky@c2i.net> дµÀ£º
Quote:
On Thursday 10 January 2008, lizhong zhu wrote:
Quote:
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
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
Hi,
You set the mode using "isdnconfig". What does "isdnconfig" output? The leds
are currently not supported.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum