Asterisk info

Gandalf2

Newbee in Sachen BSD
Aloha zusammen,
ich spiele mit dem Gedanken mir auf meinem Server Bsd 5.4 (wird evtl. zum Winter hin auf 7 umgestellt) einen Asterisk zu installieren, mit dem ich VoIp betreiben kann. Meine Fragen nun.

Hat es schon mal jemand zum rennen gebracht.
Wasist zu beachten.
Welche Activen karten kann ich verwenden.
 
Ich habe hier einen FreeBSD 6.2 mit 2 passiven HFC Karten und 2 NTBAs.
Es läuft ein normales Asterisk aus dem Ports mit isdn4bsd und chan_capi.
Eine HFC Karte läuft im NT die andere im TE Modus. Funktioniert prächtig.

NT-Modus funktioniert auschliesslich mit passiven ISDN Karten.
capi4bsd hat zwar ein paar Treiber für diverse aktive Karten, aber leider ohne NT Modus Unterstützung.

isdn4bsd = isdn für passive Karten
capi4bsd = isdn für aktive Karten
TE= Normaler "Telefonmodus"
NT="Anlagenanschluss" um dort TE Geräte anschliessen zu können.

Als Beispiel hab ich dir mal meine selbstgeschriebene Konfiguration angehängt. Vielleicht hilft Dir das ja weiter. Bei Frage einfach melden.

capi.conf
Code:
[general]
;
; In countries like Norway, the nationalprefix should
; just be left empty.
;
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

; interface sections ...

;
; This is an example for an ISDN adapter
; configured for TE-mode:
;

[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
controller=0     ;ISDN4BSD default (first controller)
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=isdn_in_te ;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
;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)
;wait_silence_samples=1000 ; wait for 1/8 second of silence before passing
                           ; any audio (outgoing calls in te-mode only)

;
; This is an example for an ISDN adapter
; configured for NT-mode:
;

[ISDN2]

ntmode=yes       ; note that this does NOT switch the card to NT-mode!
isdnmode=did     ; note that NT-mode should use "did"
incomingmsn=*    ; all numbers accepted
controller=1
group=1          ;dialout group
;
; If you want to use DTMF operated services on your external
; ISDN network, you have to disable softdtmf until further.
; Disabling softdtmf will cause the Asterisk demo to not work,
; except that one gets the sound.
;
softdtmf=on
; relaxdtmf=on   ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;Asterisk accountcode to use in CDRs
context=isdn_in_nt ;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)
echosquelch=1    ; primitive echo suppression (it is recommended to use this)
; echo_offset=8  ; units of 32 milliseconds (default)
echocancel=no    ; Possible values: 'no', 'yes', 'force', 'g164', 'g165'
;echocancelold=yes ;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
devices=2        ;number of concurrent calls on this controller
digit_timeout=5  ;number of seconds to wait for additional digits

extension.conf
Code:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
; Externe ISDN Karte (TE Modus)
EXTERN=CAPI/ISDN1
; Interne ISDN Karte (NT Modus)
INTERN=CAPI/ISDN2
; Mit welcher Vorwahl geht es ins Festnetz?
AMTSHOLUNG=0
; MSNx          = Die externe MSN
; MSNxINT       = Internes Telefon an welche die extern erreichte MSN weitergeleitet werden soll
; MSNxPASS      = "Geheime" Zahl, die genutzt wird um einem Anrufer auch nach Feierabend Einlass zu gewähren
MSN1=123456
MSN1INT=34
MSN1PASS=1
MSN2=654321
MSN2INT=35
MSN2PASS=2
MSN3=987654
MSN3INT=36
MSN3PASS=3
; Durchwahl um den Anrufbeantworter abhören zu können
VOICEMAIL=55
; Genutzte Sprache für Systemmeldungen und Anrufbeantworter
SPRACHE=de

;2do:
; Wartschlange falls besetzt ist.
; Notrufnummern einbauen






[macro-vonextern_voice]
; Makro fuer von extern angerufene Nummern inkl. Anrufbeantworter
;   ${ARG1} - Zielnummer
;   ${ARG2} - Klingelzeit
; ------------------------------------------------
exten => s,1,NoOp(Anruf von: ${CALLERID(num)} - Fuer: ${ARG1})
exten => s,n,Set(LANGUAGE()=${SPRACHE})
exten => s,n,Set(CALLERID(num)=0${CALLERID(num)})
exten => s,n,Dial(${INTERN}/${ARG1},${ARG2})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${ARG1})
exten => s-NOANSWER,n,Hangup
exten => s-BUSY,1,Voicemail(b${ARG1})
exten => s-BUSY,n,Hangup
exten => _s-.,1,Goto(s-NOANSWER,1)



[macro-vonextern]
; Makro fuer von extern angerufene Nummern ohne Schnickschnack
;   ${ARG1} - Zielnummer
;   ${ARG2} - Klingelzeit
; ------------------------------------------------
exten => s,1,NoOp(Anruf von: ${CALLERID(num)} - Fuer: ${ARG1})
exten => s,n,Set(CALLERID(num)=0${CALLERID(num)})
exten => s,n,Dial(${INTERN},${ARG2})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Busy
exten => s-BUSY,1,Busy
exten => _s-.,1,Goto(s-NOANSWER,1)



[macro-vonintern_isdn]
; Makro fuer interne ISDN Gespraeche ohne Schnickschnack
;   ${ARG1} - Durchwahlnummer
; ------------------------------------------------
exten => s,1,NoOp(Anruf von: ${CALLERID(num)} - Fuer: ${ARG1})
exten => s,n,Dial(${INTERN}/${ARG1}/,60,r)
exten => s,n,Hangup()



[macro-vonintern_sip]
; Makro fuer interne SIP Gespraeche ohne Schnickschnack
;   ${ARG1} - Durchwahlnummer
; ------------------------------------------------
exten => s,1,NoOp(Anruf von: ${CALLERID(num)} - Fuer: ${ARG1})
exten => s,n,Dial(SIP/${ARG1},60)
exten => s,n,Hangup()



[macro-fax]
; Einfacher SpanDSP Fax
;   ${ARG1} - Quellnummer
;   ${ARG2} - eMailadresse
exten => s,1,NoOp(Fax von: ${ARG1} am: ${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => s,n,Set(FAXFILE=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${ARG1})
exten => s,n,rxfax(${FAXFILE})
exten => s,n,system(/usr/local/lib/asterisk/bin/mailfax ${FAXFILE} ${ARG2} ${ARG1})
exten => s,n,Hangup()



[default]
exten => i,1,NoOp(Undefinierte Nummer wurde gewaehlt.)
exten => i,n,Set(LANGUAGE()=${SPRACHE})
exten => i,n,Playback(pbx-invalid)
exten => i,n,Hangup()



[isdn_in_te]
; Von aussen erreichbare Nummern
; Privat
exten => ${MSN1},1,Set(LANGUAGE()=${SPRACHE})
exten => ${MSN1},n,GotoIfTime(18:00-08:59,*,*,*?NACHT)
exten => ${MSN1},n,GotoIfTime(12:30-14:59,*,*,*?MITTAG)
exten => ${MSN1},n,Macro(vonextern_voice,${MSN1},25)
exten => ${MSN1},n(MITTAG),GotoIf($["${CALLERID(num)}" = ""]?UNBEKANNT)
exten => ${MSN1},n,Macro(vonextern_voice,${MSN1},12)
exten => ${MSN1},n(NACHT),GotoIf($["${CALLERID(num)}" = ""]?UNBEKANNT)
exten => ${MSN1},n,Macro(vonextern_voice,${MSN1},12)
exten => ${MSN1},n(UNBEKANNT),Answer()
exten => ${MSN1},n,Wait(1)
exten => ${MSN1},n,Background(de/privacy-unident)
exten => ${MSN1},n,Wait(0.5)
exten => ${MSN1},n,Voicemail(${MSN1})
exten => ${MSN1},n,Hangup()
; Durchwahl nach Feierabend
exten => ${MSN1PASS},1,Answer()
exten => ${MSN1PASS},n,Wait(1)
exten => ${MSN1PASS},n,Background(de/pbx-transfer)
exten => ${MSN1PASS},n,Macro(vonextern_voice,${MSN1},12)

;Firma
exten => ${MSN2},1,Set(LANGUAGE()=${SPRACHE})
exten => ${MSN2},n,GotoIfTime(18:00-08:59,*,*,*?FEIERABEND)
exten => ${MSN2},n,GotoIfTime(*,sat-sun,*,*?FEIERABEND)
exten => ${MSN2},n,Macro(vonextern_voice,${MSN2},25)
exten => ${MSN2},n(FEIERABEND),Answer()
exten => ${MSN2},n,Wait(1)
exten => ${MSN2},n,Background(de/cc_buerozeiten)
exten => ${MSN2},n,Wait(0.5)
exten => ${MSN2},n,Voicemail(${MSN2}|s)
exten => ${MSN2},n,Hangup()
; Durchwahl nach Feierabend
exten => ${MSN2PASS},1,Answer()
exten => ${MSN2PASS},n,Wait(1)
exten => ${MSN2PASS},n,Background(de/pbx-transfer)
exten => ${MSN2PASS},n,Macro(vonextern_voice,${MSN2},12)

;FAX
exten => ${MSN3},1,Macro(fax,${AMTSHOLUNG}${CALLERID(num)},adresse@domain.tld)

; Ungültige Nummern
exten => i,1,NoOp(Undefinierte Nummer wurde gewaehlt.)
exten => i,n,Set(LANGUAGE()=${SPRACHE})
exten => i,n,Playback(pbx-invalid)
exten => i,n,Hangup()



[isdn_in_nt]
exten => _${AMTSHOLUNG}.,1,Goto(isdn_out,${EXTEN},1)
; Fest erreichbare Rufnummern im internen Netzwerk nach MSN
exten => ${MSN1INT},1,Macro(vonintern_isdn,${MSN1})
exten => ${MSN2INT},1,Macro(vonintern_isdn,${MSN2})
; Interne Anrufbeantworterverwaltung pro MSN
exten => ${VOICEMAIL},1,Set(LANGUAGE()=${SPRACHE})
exten => ${VOICEMAIL},n,VoiceMailMain(${CALLERID(num)}|s)

; Sonstige erreichbare Rufnummern im internen Netzwerk
exten => 37,1,Macro(vonintern_sip,37)

; Aufnahme und Wiedergabe von Sprache
exten => 99,1,Playback(de/vm-torecord)
exten => 99,n,Record(/tmp/record.gsm)
exten => 99,n,Playback(/tmp/record)
exten => 99,n,Hangup()



[isdn_out]
; Die '${AMTSHOLUNG}' wird als Amtsholung genutzt. Die erste '${AMTSHOLUNG}' abgeschnitten. 002104 wird zu 02104
exten => _${AMTSHOLUNG}.,1,NoOp(Anruf von: ${CALLERID(num)} - Fuer: ${EXTEN:1})
exten => _${AMTSHOLUNG}.,n,NoOP(Vorwahlpruefung : ${EXTEN:0:2})
exten => _${AMTSHOLUNG}.,n,GotoIf($["${EXTEN:0:2}" != "${AMTSHOLUNG}0"]?KEINENULL)
exten => _${AMTSHOLUNG}.,n,Dial(${EXTERN}/${EXTEN:1}/bl,60,r)
exten => _${AMTSHOLUNG}.,n,Hangup()
exten => _${AMTSHOLUNG}.,n(KEINENULL),NoOp(Keine ${AMTSHOLUNG}0 gesehen, Abbruch)
exten => _${AMTSHOLUNG}.,n,Set(LANGUAGE()=${SPRACHE})
exten => _${AMTSHOLUNG}.,n,Playback(pbx-invalid)
exten => _${AMTSHOLUNG}.,n,Hangup()


[sip_in]
include => isdn_in_nt


voicemail.conf
Code:
[default]
; Voicemail der einzelnen MSNs
123456 => 123,Familie,
654321 => 321,Firma,

/usr/local/lib/asterisk/bin/mailfax
Code:
#!/bin/sh
# Aufruf mit:
# ############ /var/lib/asterisk/bin/mailfax ${FAXFILE} ${EMAILADDR} ${CALLERIDNUM} #####

FAXFILE=$1
RECIPIENT=$2
FAXSENDER=$3

tiff2pdf -z -o $FAXFILE.pdf $FAXFILE
mpack -s "Fax von: $FAXSENDER" -c application/pdf $FAXFILE.pdf $RECIPIENTphone
 
Zuletzt bearbeitet:
:-) danke für die Info und das Scripting.
Ich habe hier zwei aktive Karten noch rumliegen die ich zum einsatz bringen wollte.
Eine AVM B1 und eine Econ Diva.
Wollt mich erst mal schlau machen obs überhaupt funktioniert.
Man liest ja viel :-)

Es scheint also zu funktionieren.
Nun gut dann werde ich mir mal Dokus dazu besorgen.
Danke nochmal
 
Hallo,

@marzl

wie hast du die Karte in den NT-Modus bekommen? Ich hab asterisk-bristuff aus den Ports Installiert. Aber irgendwie will das alles nicht so. Es ist ein FreeBSD 6.2 Server mit einer ISDN Karte die in den NT Mod gebracht werden soll, es ist eine Acer passiv Karte mit HFC Chip.

gruß, micha
 
Wenn du isdn4bsd benutzt, geht das über "man isdnconfig"
#> isdnconfig -u 0 -p DRVR_DSS1_NT

Bei Bristuff glaub ich über die zaptel.conf, da weis ich aber nichts genaues,
Wobei ich meine gelesen zu haben das zaphfc nur mit den Karten von Junghanns funktioniert. Aber ka :D
 
wäre das mit Asterisk auch irgendwie über Modem möglich ?
also Analogtelefon an der Dose.. und dann kann man übers Asterisk -> Modem -> Telefon quasi intern (wie bei ISDN S0 Bus) das Telefonat zum normalen Telefon durchleiten?!
 
nein, das geht leider nicht ohne weiteres, dafür brauchst du eine spezielle karte mit fx ports oder so.

@marzel

könntest du deine isdnd.rc mal bitte posten, ich hab so ein ähnliches setup vor, halt nur mit einer hfc karte. die zaptel treiber kann man vergessen, ich möchte es jetzt mit den isdn4bsd treiber versuchen.
 
Zuletzt bearbeitet:
Meine isdnd.rc ist eigentlich voll für die Füsse, da ich die nur benutze, um den NT Modus zu setzen. Isdnd belibt ungestartet aber die Karten wurde trotzdem initialisiert :) here we go:
Eigentlich reicht aber auch ein isdnconfig-Eintrag in einer /etc/rc.local, ich war bisher aber zu faul :)

Code:
phone# cat /etc/isdn/isdnd.rc
#==============================================================================
# SYSTEM section: isdnd global configuration parameters
#==============================================================================
system

# accounting
# ----------

acctall         = on                    # generate info for everything
acctfile        = /var/log/isdnd.acct   # name & location of accounting file
useacctfile     = yes                   # generate accouting info to file

# monitor
# -------

monitor-allowed = no                    # global switch: monitor on/off
monitor-port    = 451                   # default monitor TCP port

# Monitor rights are granted due to the most specific host/net spec, i.e. in
# the example below host 192.168.1.2 will have the rights specified on that
# line, even so it belongs to net 192.168.1.0/24 as well.
#
# A monitor specification may either be:
#
#  - the name of a local (UNIX-domain) socket; this MUST start with a "/"
monitor         = "/var/run/isdn-monitor"
monitor-access  = fullcmd
monitor-access  = channelstate, logevents
monitor-access  = callin, callout
#
#  - a dotted-quad host spec
monitor         = "192.168.1.2"
monitor-access  = restrictedcmd, channelstate, callin, callout
#
#  - a dotted-quad net spec with "/len" (CIDR-style) netmask spec
monitor         = "192.168.1.0/24"
monitor-access  = restrictedcmd, channelstate, callin, callout
#

# ratesfile
# ---------

ratesfile       = /etc/isdn/isdnd.rates # name & location of rates file

# regular expression pattern matching
# -----------------------------------

#regexpr        = "connected.*XXX"      # look for matches in log messages
#regprog        = connectXXX            # execute program when match is found

regexpr         = "<unknown> incoming call from"
regprog         = unknown_incoming      # execute program whan match is found

# realtime priority section
# -------------------------

rtprio          = 25                    # modify isdnd's process priority

controller 0
driver_type = DRVR_DSS1_TE

controller 1
driver_type = DRVR_DSS1_NT

#===========================================================================
# controller section
#===========================================================================
 
Ich hab hier auch noch so eine hfc Karte (Kölner Dom :) ) rumliegen. Jetzt wollte ich mal asterisk einrichten, aber mir drängt sich da eine Frage auf.

Muss ich jetzt isdn4bsd in den Kernel packen, oder bringt asterisk (1.4.3) seine Treiber von haus aus mit. Das system ist ein 6.2 REL.

Wie ist denn eure Kernel Config bezg. isdn4bsd?

mfg

carb
 
isdn4bsd in den Kernel packen - genau.
zaphfc funktioniert wohl nur bei speziellen hfc karten z.b. von beronet.
zaphfc hab ich noch nicht an einer normalen hfc karte getestet.
also nur zu, hau rein.
 
@marzl, kannst du mal bitte deine Kernel config posten? Ich hab das so meine Probleme gerade. Wenn ich den kernel installiere, fährt er nicht mehr hoch (Core dump).

Für eine Kernelconfig wäre ich dankbar

mfg

carb
 
Für eine Kernelconfig wäre ich dankbar
here we go, is eigentlich fast GENEric und besondere Lust zum aufräumen hatte ich auch nicht :), aber es lüppt:

Code:
machine         i386
cpu             I686_CPU
ident           PHONE

# To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         # Default places to look for devices.
#makeoptions    DEBUG=-g                # Build kernel with gdb(1) debug symbols

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         MD_ROOT                 # MD is a potential root device
options         NFSCLIENT               # Network Filesystem Client
options         NFSSERVER               # Network Filesystem Server
options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          apic                    # I/O APIC

# Bus support.
device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
device          ataraid         # ATA RAID drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
device          atapist         # ATAPI tape drives
options         ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
device          ahb             # EISA AHA1742 family
device          ahc             # AHA2940 and onboard AIC7xxx devices
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
device          ahd             # AHA39320/29320 and onboard AIC79xx devices
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.
device          amd             # AMD 53C974 (Tekram DC-390(T))
device          isp             # Qlogic family
#device         ispfw           # Firmware for QLogic HBAs- normally a module
device          mpt             # LSI-Logic MPT-Fusion
#device         ncr             # NCR/Symbios Logic
device          sym             # NCR/Symbios Logic (newer chipsets + those of `ncr')
device          trm             # Tekram DC395U/UW/F DC315U adapters

device          adv             # Advansys SCSI adapters
device          adw             # Advansys wide SCSI adapters
device          aha             # Adaptec 154x SCSI adapters
device          aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device          bt              # Buslogic/Mylex MultiMaster SCSI adapters

device          ncv             # NCR 53C500
device          nsp             # Workbit Ninja SCSI-3
device          stg             # TMC 18C30/18C50

# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
device          ch              # SCSI media changers
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)
device          ses             # SCSI Environmental Services (and SAF-TE)

# RAID controllers interfaced to the SCSI subsystem
device          amr             # AMI MegaRAID
device          arcmsr          # Areca SATA II RAID
device          asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID
device          ciss            # Compaq Smart RAID 5*
device          dpt             # DPT Smartcache III, IV - See NOTES for options
device          hptmv           # Highpoint RocketRAID 182x
device          rr232x          # Highpoint RocketRAID 232x
device          iir             # Intel Integrated RAID
device          ips             # IBM (Adaptec) ServeRAID
device          mly             # Mylex AcceleRAID/eXtremeRAID
device          twa             # 3ware 9000 series PATA/SATA RAID

# RAID controllers
device          aac             # Adaptec FSA RAID
device          aacp            # SCSI passthrough for aac (requires CAM)
device          ida             # Compaq Smart RAID
device          mfi             # LSI MegaRAID SAS
device          mlx             # Mylex DAC960 family
device          pst             # Promise Supertrak SX6000
device          twe             # 3ware ATA RAID

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          kbdmux          # keyboard multiplexer

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc

# Enable this for the pcvt (VT220 compatible) console driver
#device         vt
#options        XSERVER         # support for X server on a vt console
#options        FAT_CURSOR      # start with block cursor

device          agp             # support several AGP chipsets

# Power management support (see NOTES for more options)
#device         apm
# Add suspend/resume support for the i8254.
device          pmtimer

# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
device          cbb             # cardbus (yenta) bridge
device          pccard          # PC Card (16-bit) bus
device          cardbus         # CardBus (32-bit) bus

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# Parallel port
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device
#device         vpo             # Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device         puc

# PCI Ethernet NICs.
device          de              # DEC/Intel DC21x4x (``Tulip'')
device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card
device          ixgb            # Intel PRO/10GbE Ethernet Card
device          txp             # 3Com 3cR990 (``Typhoon'')
device          vx              # 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          bce             # Broadcom BCM5706/BCM5708 Gigabit Ethernet
device          bfe             # Broadcom BCM440x 10/100 Ethernet
device          bge             # Broadcom BCM570xx Gigabit Ethernet
device          dc              # DEC/Intel 21143 and various workalikes
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
device          lge             # Level 1 LXT1001 gigabit Ethernet
device          nge             # NatSemi DP83820 gigabit Ethernet
device          nve             # nVidia nForce MCP on-board Ethernet Networking
device          pcn             # AMD Am79C97x PCI 10/100(precedence over 'lnc')
device          re              # RealTek 8139C+/8169/8169S/8110S
device          rl              # RealTek 8129/8139
device          sf              # Adaptec AIC-6915 (``Starfire'')
device          sis             # Silicon Integrated Systems SiS 900/SiS 7016
device          sk              # SysKonnect SK-984x & SK-982x gigabit Ethernet
device          ste             # Sundance ST201 (D-Link DFE-550TX)
device          stge            # Sundance/Tamarack TC9021 gigabit Ethernet
device          ti              # Alteon Networks Tigon I/II gigabit Ethernet
device          tl              # Texas Instruments ThunderLAN
device          tx              # SMC EtherPower II (83c170 ``EPIC'')
device          vge             # VIA VT612x gigabit Ethernet
device          vr              # VIA Rhine, Rhine II
device          wb              # Winbond W89C840F
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.  pccard NICs included.
device          cs              # Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
device          ed              # NE[12]000, SMC Ultra, 3c503, DS8390 cards
device          ex              # Intel EtherExpress Pro/10 and Pro/10+
device          ep              # Etherlink III based cards
device          fe              # Fujitsu MB8696x based cards
device          ie              # EtherExpress 8/16, 3C507, StarLAN 10 etc.
device          lnc             # NE2100, NE32-VL Lance Ethernet cards
device          sn              # SMC's 9000 series of Ethernet chips
device          xe              # Xircom pccard Ethernet

# Wireless NIC cards
device          wlan            # 802.11 support
device          wlan_wep        # 802.11 WEP support
device          wlan_ccmp       # 802.11 CCMP support
device          wlan_tkip       # 802.11 TKIP support
device          an              # Aironet 4500/4800 802.11 wireless NICs.
device          ath             # Atheros pci/cardbus NIC's
device          ath_hal         # Atheros HAL (Hardware Access Layer)
device          ath_rate_sample # SampleRate tx rate control for ath
device          awi             # BayStack 660 and others
device          ral             # Ralink Technology RT2500 wireless NICs.
device          wi              # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
#device         wl              # Older non 802.11 Wavelan wireless NIC.

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          sl              # Kernel SLIP
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse
device          ural            # Ralink Technology RT2500USB wireless NICs
device          urio            # Diamond Rio 500 MP3 player
device          uscanner        # Scanners
# USB Ethernet, requires miibus
device          aue             # ADMtek USB Ethernet
device          axe             # ASIX Electronics USB Ethernet
device          cdce            # Generic USB over Ethernet
device          cue             # CATC USB Ethernet
device          kue             # Kawasaki LSI USB Ethernet
device          rue             # RealTek RTL8150 USB Ethernet

# FireWire support
device          firewire        # FireWire bus code
device          sbp             # SCSI over FireWire (Requires scbus and da)
device          fwe             # Ethernet over FireWire (non-standard!)

# I4B section
#
options IPR_VJ
device "i4bdss1"
device "i4b"
device "i4btrc"
device "i4bctl"
device "i4brbch"
device "i4btel"
device "i4bipr"
device "i4bisppp"

device ihfc
device usb
device sound
 
sehr komisch, wenn ich deine Config bauen will, sagt er schon bei der Zeile device "i4bdss1"

config: Error: device "i4bdss1" is unknown

Hast du einen extra Treiber runtergeladen. 6.2 RELEASE ist der Stand

mfg

carb
 
Hm das ist eine HFC PCI Karte. Kann es sein, dass die von i4b gar nicht unterstützt wird? man ihfc spricht nur von isa karten?!

mfg

carb
 
boah, scheisse, habs eben erst gesehen. Danke für die Info. Jetzt hat er die Karte erkannt *freu*. Hast du eine Ahnung ob und wann die Treiber in ein Release integriert werden?

mfg

carb
 
Da ist auch schon das nächste Problem :) Ich will von dieser Seite: http://www.shellbang.org/freebsd/asteriskcapi.html das chan_capi installieren.

Das Problem ist, dass das "liblinuxcapi" broken ist. Er bricht mit dieser Fehlermeldung ab:

Code:
===>   liblinuxcapi-cvs-20050201 depends on executable in : gmake - found
===>  Configuring for liblinuxcapi-cvs-20050201
configure: WARNING: you should use --build, --host, --target
configure: error: cannot find sources (capi20.c) in . or ..
===>  Script "configure" failed unexpectedly.
Please report the problem to Jan.Stocker@t-online.de [maintainer] and attach
the
"/usr/ports/comms/liblinuxcapi/work/isdn4k-utils-CVS-2005-02-01/capi20/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/comms/liblinuxcapi.

Bin ich überhaupt auf dem richtigen Weg? Muss ich das überhaupt installieren?!. Fragen über fragen.,...

Muss für dieses liblinuxcapi die Linux Emulation vorhanden sein?

Muss ich das c4b (capi4bsd) installieren? Eigentlich nicht, denn das ist doch nur für aktive karten...!?!

mfg

carb
 
danke das brachte mich schon mal weiter. Aber jetzt hänge ich hier:

Code:
tangerine# gmake all install
./create_config.sh "/usr/local/include"
Checking Asterisk version...
 * no 'struct ast_codec_pref'
 * found 'struct ast_channel_tech'
 * found 'ast_bridged_channel'
 * found 'ast_bridge_result'
 * found bridge with timeoutms
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_config_load'
 * found 'AST_CONTROL_HOLD'
 * found 'struct ast_custom_function'
 * found 'devicestate.h'
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:89: warning: type defaults to `int' in declaration of `STANDARD_LOCAL_USER'
chan_capi.c:89: warning: data definition has no type or storage class
chan_capi.c:90: warning: type defaults to `int' in declaration of `LOCAL_USER_DECL'
chan_capi.c:90: warning: data definition has no type or storage class
chan_capi.c:1373:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `cd_alloc':
chan_capi.c:2346: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2355: error: structure has no member named `type'
chan_capi.c: In function `cd_set_cep':
chan_capi.c:2497: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c:2500: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_request':
chan_capi.c:3728: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `__chan_capi_call':
chan_capi.c:3826: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3853: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3887: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3898: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3910: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3925: warning: assignment discards qualifiers from pointer target type
chan_capi.c:4784:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:4937:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!"
chan_capi.c:5462:2: warning: #warning "Maybe cannot write these variables here! Locking issue!"
chan_capi.c:5473:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c: In function `cd_copy_telno_ext':
chan_capi.c:5668: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_command_exec':
chan_capi.c:6739: warning: implicit declaration of function `LOCAL_USER_ADD'
chan_capi.c:6770: error: structure has no member named `type'
chan_capi.c:6821: warning: implicit declaration of function `LOCAL_USER_REMOVE'
chan_capi.c:6892:2: warning: #warning "TODO: check for calls that never received connect_conf;"
chan_capi.c: At top level:
chan_capi.c:7213: error: unknown field `send_digit' specified in initializer
chan_capi.c:7213: warning: initialization from incompatible pointer type
chan_capi.c:7222: warning: initialization from incompatible pointer type
chan_capi.c:7837: warning: initialization from incompatible pointer type
chan_capi.c: In function `load_module':
chan_capi.c:8001: warning: implicit declaration of function `unload_module'
gmake: *** [chan_capi.o] Error 1

Es ist einfach zum weinen. Hab ich die falsche Asterisk Version erwischt?

mfg

carb
 
asterisk-1.2.13_4

Mit der 1.4 hab ich noch keine produktivn Erfahrungen gemacht.
Im Prinzip reicht auf jeden Fall auch die 1.2'er Reihe.
 
Zuletzt bearbeitet:
ah ok, und ich dachte die wäre Asbach :) Wird aber auf der Website aufgeführt. Na dann werde ich die mal kompilieren. Danke für die Info.

Ich brauch auf jedenfall ein laufendes chan_capi und ein SIP/h323 Server.

mfg

carb
 
Moin Jungs,

ich verfolge den Thread schon ein Weilchen sehr interessiert. :D

Hat jemand hier mit so einer passiven ISDN Karte und dem CAPI Gedöns auch das Faxen mit hylafax und capi4hylafax an den Start gebracht?

Gruß c.
 
Zurück
Oben