Asterisk mit AVM FRITZ CARD PCI und EICON DIVA PCI 2.01

galileo5

Neuer User
Mitglied seit
13 Jun 2006
Beiträge
13
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe vor einen Asterisk aufzusetzen mit 2 ISDN Karten:
Fritz Card PCI
Eicon Diva PCI 2.01

Da ich nicht so der Linux Guru bin hab ich mich mal für SuSE entschieden, weil ist ja sonst einfach.
Asterisk läuft so weit. Sip und IAX kann man auch schon raustelefonieren. Bloß beim CAPI hängts nun.
chan_capi hab ich auch schon kompiliert und installiert. Wie kann ich jetzt prüfen woran der Fehler liegt.

Als Treiber für die AVM Karte hab ich nen RPM installiert, welches ich irgendwo gefunden hab. Beim Starten des Systems gibt es jedenfalls keine Fehler mehr.
Lediglich wenn man auf die Karte zugreifen will kommt folgende Fehlermeldung :
Bei Zugriff auf die Fritz Card:

Code:
    -- Executing Dial("SIP/22-f3e0", "CAPI/contr1/21|99|r") in new stack
    -- didn't find capi device for interface 'contr1'
Jun 13 16:02:20 NOTICE[4058]: app_dial.c:1040 dial_exec_full: Unable to create channel of type 'CAPI' (cause 44 - Requested channel not available)
  == Everyone is busy/congested at this time (1:0/0/1)

wenn ich aber auf die Eicon Karte zugreife stürzt Asterisk komplett ab

Code:
Asterisk Ready.
*CLI>     -- Executing Dial("SIP/22-94ac", "CAPI/contr2/21|99|r") in new stack
Segmentation fault

Wie kann ich die beiden Karten miteinander vereinbaren? Was muss ich noch installieren, damit die Eicon Karte läuft?

Meine Configs:


capi.conf
Code:
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de      ;set default language
;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, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=2     ;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=capi-in  ;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   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
echocanceloocancelold=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
;language=de     ;set language for this device (overwrites default language)
devices=4        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)
d=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)

capiinfo

Code:
Number of Controllers : 1
Controller 1:
Manufacturer: AVM GmbH
CAPI Version: 2.0
Manufacturer Version: 3.11-07  (49.23)
Serial Number: 1000001
BChannels: 2
Global Options: 0x00000039
   internal controller supported
   DTMF supported
   Supplementary Services supported
   channel allocation supported (leased lines)
B1 protocols support: 0x4000011f
   64 kbit/s with HDLC framing
   64 kbit/s bit-transparent operation
   V.110 asynconous operation with start/stop byte framing
   V.110 synconous operation with HDLC framing
   T.30 modem for fax group 3
   Modem asyncronous operation with start/stop byte framing
B2 protocols support: 0x00000b1b
   ISO 7776 (X.75 SLP)
   Transparent
   LAPD with Q.921 for D channel X.25 (SAPI 16)
   T.30 for fax group 3
   ISO 7776 (X.75 SLP) with V.42bis compression
   V.120 asyncronous mode
   V.120 bit-transparent mode
B3 protocols support: 0x800000bf
   Transparent
   T.90NL, T.70NL, T.90
   ISO 8208 (X.25 DTE-DTE)
   X.25 DCE
   T.30 for fax group 3
   T.30 for fax group 3 with extensions
   Modem

  0100
  0200
  39000000
  1f010040
  1b0b0000
  bf000080
  00000000 00000000 00000000 00000000 00000000 00000000
  01000001 00020000 00000000 00000000 00000000

Supplementary services support: 0x000003ff
   Hold / Retrieve
   Terminal Portability
   ECT
   3PTY
   Call Forwarding
   Call Deflection
   MCID
   CCBS

lsmod

Code:
Module                  Size  Used by
iptable_filter          2816  0
ip_tables              11080  1 iptable_filter
x_tables               11908  1 ip_tables
joydev                  9024  0
st                     34332  0
sr_mod                 14500  0
edd                     8516  0
ipv6                  215808  14
snd_pcm_oss            42752  0
snd_mixer_oss          16512  1 snd_pcm_oss
snd_seq                47216  0
snd_seq_device          7948  1 snd_seq
hisax                 386512  1
crc_ccitt               2176  1 hisax
capidrv                26036  1
isdn                  119520  10 hisax,capidrv
slhc                    6272  1 isdn
fcpci                 592896  1
capi                   15936  0
capifs                  5640  2 capi
kernelcapi             43552  3 capidrv,fcpci,capi
button                  6672  0
battery                 9476  0
ac                      4996  0
sg                     31004  0
sd_mod                 16144  0
apparmor               47004  0
aamatch_pcre           13440  1 apparmor
loop                   14728  0
usb_storage            70208  0
scsi_mod              122120  5 st,sr_mod,sg,sd_mod,usb_storage
dm_mod                 52584  0
shpchp                 39488  0
uhci_hcd               27280  0
pci_hotplug            24372  1 shpchp
usbcore               109700  3 usb_storage,uhci_hcd
hw_random               5400  0
snd_intel8x0           30236  0
snd_ac97_codec         82848  1 snd_intel8x0
snd_ac97_bus            2176  1 snd_ac97_codec
intel_agp              21020  1
snd_pcm                80136  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
agpgart                28976  1 intel_agp
snd_timer              20868  2 snd_seq,snd_pcm
snd                    51076  8 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8672  1 snd
snd_page_alloc          9608  2 snd_intel8x0,snd_pcm
8139too                23808  0
mii                     5120  1 8139too
ide_cd                 35488  0
cdrom                  32416  2 sr_mod,ide_cd
parport_pc             34916  0
parport                32200  1 parport_pc
reiserfs              210944  2
fan                     4612  0
thermal                13448  0
processor              22592  1 thermal
piix                    9092  0 [permanent]
ide_disk               15104  4
ide_core              116540  4 usb_storage,ide_cd,piix,ide_disk


Vielleicht weiß ja einer eine Lösung für mich. Liebe Grüße

Galileo5
 
Was so nicht funktionieren sollte ist, dass in capiinfo nur eine Karte erkannt wird. Die Diva wird also nicht erkannt mit capiinfo (@all: wird sie denn standardmäßig darüber erkannt?!)
Du solltest für jede Karte einen eigenen Kontext haben. Du kannst nicht bei [ISDN1] devices = 4 angeben. zwei Kontexte mit unterschiedlichen controller-Nummern und devices = 2.

Erklärt zumindest für mich, warum bei der Diva das Ding eventuell abstürzt. Es ist ja nicht da.
Versuch beim Rauswählen doch einfachmal nacheinander in der capi.conf die Controllernummern durchzugehen. Ich hab auch ein wenig gebraucht, bis ich die richtigen gefunden habe. Und dann wähl mal über CAPI/ISDN1/Nummer raus.

Mal so als erstes. :)
 
Also die beiden Karten werden im Yast beide erkannt und auch angezeigt,
die Fritz als contr0 und die Diva als contr1.
daher auch unten im log contr1 und contr2 (hab irgendwo gelesen, dass Suse da ab 0 zählt und Capi ab 1 ^^)
Da bei der Konfiguration von der Diva keine Fehler kamen, bin ich davon ausgegangen, dass wär alles ok so.

Ich habe vor die beiden Karten später mal als eine Gruppe laufen zu lassen. Schließlich ist mir ja egal wo angenommen wird, hauptsache es stehen 4 Kanäle zur Verfügung. Rausgewählt wird dann über IAX.
 
galileo5 schrieb:
lsmod

Code:
Module                  Size  Used by
hisax                 386512  1
crc_ccitt               2176  1 hisax
capidrv                26036  1
isdn                  119520  10 hisax,capidrv
slhc                    6272  1 isdn
fcpci                 592896  1
capi                   15936  0
capifs                  5640  2 capi
kernelcapi             43552  3 capidrv,fcpci,capi
Also, ich sehe eine Karte die mit hisax _und_ capi geladen ist, das gibt "knirsch".
Bring mal deine Box dazu _nur_ capi zu nutzen und nicht hisax oder gar beides!
 
Yast hat ueberhaupt nichts mit CAPI zu tun. Wenn Yast die ISDN Karten erkennt, heisst das noch nicht, dass sie auch ueber CAPI erreichbar sind.
Die AVM Karte hat standardmaessig CAPI, die DIVA Client Karte aber nicht (zumindest nicht ueber die Treiber bei SuSE), hier waere dann mISDN mit dem CAPI Interface notwendig (oder direkt chan_misdn).
Mit einem Treiber Paket von Eicon koennte aber auch hier CAPI zur Verfuegung stehen und dies Parallel zu der AVM CAPI.

Armin
 
Kostenlos!

Neueste Beiträge

Statistik des Forums

Themen
248,873
Beiträge
2,303,516
Mitglieder
378,533
Neuestes Mitglied
PatrickSt91