Hallo zusammen,
ich habe ein Problem mit * und CAPI (Fritz Card 2.0 PCI). * zeigt einen ankommenden Anruf zwar an, reagiert aber nicht weiter darauf. Ich habe das trotz tagelangem Probieren nicht hinbekommen. Ich bin also auf die Experten hier im Forum angewiesen :roll:
Meine capi.conf sieht so aus:
modules.conf:
Wenn ich * mit asterisk -vvvvvvvvvgcf starte und capi debug einschalte, kommt bei einem Anruf auf der MSN 22 folgende Ausgabe. Der Anrufende hört aber nur ein Freizeichen, der * nimmt nicht ab:
Ist die modem.conf eigentlich bei dieser Konfiguration relevant? Ich poste Sie zur Sicherheit auch mal:
Vielen Dank für eure Hilfe!
Viele Grüße
Sebastian
ich habe ein Problem mit * und CAPI (Fritz Card 2.0 PCI). * zeigt einen ankommenden Anruf zwar an, reagiert aber nicht weiter darauf. Ich habe das trotz tagelangem Probieren nicht hinbekommen. Ich bin also auf die Experten hier im Forum angewiesen :roll:
Meine capi.conf sieht so aus:
Code:
;
; CAPI config
;
;
; general section
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
;ulaw=yes ;set this, if you live in u-law world instead of a-law
; interface sections ...
[ISDN1] ;this example interface gets name 'ISDN1' and may be any
;name not starting with 'g' or 'contr'.
;ntmode=yes ;if isdn card operates in nt mode, set this to yes
isdnmode=msn ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
;when using NT-mode, ptp should be set in any case
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * == any
;controller=0 ;ISDN4BSD default
;controller=7 ;ISDN4BSD USB default
controller=1 ;capi controller number to use
group=1 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming calls
softdtmf=on ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=on ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode= ;Asterisk accountcode to use in CDRs
context=remote ;context for incoming calls
holdtype=hold ;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)
;echosquelch=1 ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes ;EICON DIVA SERVER (CAPI) echo cancelation
;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
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
devices=2 ;number of concurrent calls on this controller
;(2 makes sense for single BRI, 30 for PRI)
modules.conf:
Code:
; Asterisk configuration file
;
; Module Loader configuration file
;
[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been initialized
; (just after the logger has been initialized) can be loaded using 'preload'. This
; will frequently be needed if you wish to map all module configuration files into
; Realtime storage, since the Realtime driver will need to be loaded before the
; modules using those configuration files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss. Don't load it.
;
noload => app_intercom.so
;
; Explicitly load the chan_modem.so early on to be sure
; it loads before any of the chan_modem_* 's afte rit
;
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
load => chan_capi.so
load => res_features.so
[global]
chan_modem.so=yes
chan_capi.so=yes
Wenn ich * mit asterisk -vvvvvvvvvgcf starte und capi debug einschalte, kommt bei einem Anruf auf der MSN 22 folgende Ausgabe. Der Anrufende hört aber nur ein Freizeichen, der * nimmt nicht ab:
Code:
*CLI> CONNECT_IND ID=002 #0x0aeb LEN=0037
Controller/PLCI/NCCI = 0x101
CIPValue = 0x10
CalledPartyNumber = <80>22
CallingPartyNumber = <01 80 2a 2a>10
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = <91 81>
AdditionalInfo = default
-- CONNECT_IND (PLCI=0x101,DID=22,CID=**10,CIP=0x10,CONTROLLER=0x1)
> ISDN1: msn='*' DNID='22' MSN
== ISDN1: Incoming call '**10' -> '22'
INFO_IND ID=002 #0x0aec LEN=0018
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <80>22
INFO_RESP ID=002 #0x0aec LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1: info element CALLED PARTY NUMBER
> ISDN1: INFO_IND DID digits not used in this state.
INFO_IND ID=002 #0x0aed LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
INFO_RESP ID=002 #0x0aed LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1: info element CHANNEL IDENTIFICATION 89
INFO_IND ID=002 #0x0af0 LEN=0018
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x70
InfoElement = <80>22
INFO_RESP ID=002 #0x0af0 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1: info element CALLED PARTY NUMBER
> ISDN1: INFO_IND DID digits not used in this state.
INFO_IND ID=002 #0x0af1 LEN=0016
Controller/PLCI/NCCI = 0x101
InfoNumber = 0x18
InfoElement = <89>
INFO_RESP ID=002 #0x0af1 LEN=0012
Controller/PLCI/NCCI = 0x101
-- ISDN1: info element CHANNEL IDENTIFICATION 89
DISCONNECT_IND ID=002 #0x0af2 LEN=0014
Controller/PLCI/NCCI = 0x101
Reason = 0x0
DISCONNECT_RESP ID=002 #0x0af2 LEN=0012
Controller/PLCI/NCCI = 0x101
== ISDN1: CAPI Hangingup
== ISDN1: Interface cleanup PLCI=0x101
Ist die modem.conf eigentlich bei dieser Konfiguration relevant? Ich poste Sie zur Sicherheit auch mal:
Code:
;
; isdn4linux
;
; Configuration file
;
[interfaces]
;
; By default, incoming calls should come in on the "remote" context
;
context=remote
;
; Modem Drivers to load
;
;driver=aopen ; modem by AOpen
driver=i4l ; isdn4linux - an alternative to i4l is to use chan_capi
;driver=chan_capi
;
; Default language
;
language=de
;
; We can optionally override the auto detection. This is necessary
; particularly if asterisk does not know about our kind of modem.
;
type=autodetect
;type=aopen
;
; We can strip a given number of digits on outgoing dialing, so, for example
; you can have it dial "8871042" when given "98871042".
;
;stripmsd=0
;
; Type of dialing
;
dialtype=tone
;dialtype=pulse
;
; Mode selection. "Immediate" means that as soon as you dial, you're connected
; and the line is considered up. "Ring" means we wait until the ring cadence
; occurs at least once. "Answer" means we wait until the other end picks up.
;
;mode=answer
;mode=ring
mode=immediate
;
; List all devices we can use.
;
;device => /dev/ttyS3
;
; ISDN example (using i4l)
;
msn=22
device => /dev/ttyI0
device => /dev/ttyI1
;===============
; More complex ISDN example
;
; A single device which listens to 3 MSNs
; the wildcard '*' can be used when all MSN's should be accepted.
; (The incoming number can be used to go directly into the extension
; with the matching number. I.e. if MSN 33 is called, (context,33)
; will tried first, than (context,s) and finally (default,s).
;
;msn=50780020
;incomingmsn=50780020,50780021,50780022
;device => /dev/ttyI2
;
; If set, only these numbers are allowed to be set as A number
; when making an outbound call. callerid is used to set A
; number.
;outgoingmsn=50780023,50780024
;
; Set DTMF-detection/generation mode to:
; asterisk: Let Asterisk do inband detection (default)
; i4l: Use the inband detection made by ISDN4Linux
; none: Don't detect inband DTMF
; both: Transmit using both in-band and out of band (generation only)
;
; You may specify either one mode, or the detection/generation mode
; individually separated by a '/'.
;
;dtmfmode=i4l
;dtmfmode=asterisk ; Detect using Asterisk
;dtmfmode=both ; Detect using Asterisk, generate w/ both
; two other devices, which are in group '1' and are used when an
; outgoing dial used: exten => s,1,Dial,Modem/g1:1234|60|r
; (we do not need more outgoing devices, since ISDN2 has only 2 channels.)
; Lines can be in more than one group (0-63); comma separated list.
;
group=1 ; group=1,2,3,9-12
;msn=50780023
;device => /dev/ttyI3
;device => /dev/ttyI4
Vielen Dank für eure Hilfe!
Viele Grüße
Sebastian