.titleBar { margin-bottom: 5px!important; }

HFC Karte will nicht recht.

Dieses Thema im Forum "Asterisk ISDN mit Bristuff (hfc, zaptel)" wurde erstellt von nme, 4 Nov. 2005.

  1. nme

    nme Neuer User

    Registriert seit:
    4 Nov. 2005
    Beiträge:
    15
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Hallo,

    nachdem ich erstmal wochenlang still mitgelesen habe und dennoch auf keinen grünen zweig kam, hab ich mich endlich mal angemeldet :)

    Also folgendes szenario:
    -AVM Fritz Card 2.0 pci mit fritzcapi läuft als faxserver mit hylafax

    hinzugekommen ist:
    -eine HFC-S Karte (Trust) mit NTBA und crossover kabel.

    bisher erledigt:
    -karte eingebaut, hat eigenen interrupt.
    -bristuff geladen und installiert
    "zaphfc modes=1" geladen und ztcfg -v

    Code:
    Zaptel Configuration
    ======================
    
    SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
    
    3 channels configured.
    
    soweit so gut.
    ein "cat /proc/zaptel/1" spuckt aus:
    Code:
    Span 1: ZTHFC1 "HFC-S PCI A ISDN card 0 [NT] layer 1 ACTIVATED (G3)" AMI/CCS
    
               1 ZTHFC1/0/1 Clear
               2 ZTHFC1/0/2 Clear
               3 ZTHFC1/0/3 HDLCFCS
    
    scheint soweit auch ok zu sein denke ich.
    nach anpassungen der zapata.conf versuche ich erstmal asterisk zu starten, der spuckt mir jedoch folgendes aus:
    Code:
      == Parsing '/etc/asterisk/asterisk.conf': Found
      == Parsing '/etc/asterisk/extconfig.conf': Found
    Asterisk 1.0.9-BRIstuffed-0.2.0-RC8o, Copyright (C) 1999-2004 Digium.
    Written by Mark Spencer <markster@digium.com>
    =========================================================================
      == Parsing '/etc/asterisk/logger.conf': Found
    Asterisk Event Logger Started /var/log/asterisk/event_log
      == Manager registered action Ping
      == Manager registered action Events
      == Manager registered action Logoff
      == Manager registered action Hangup
      == Manager registered action Status
      == Manager registered action Setvar
      == Manager registered action Getvar
      == Manager registered action Redirect
      == Manager registered action Originate
      == Manager registered action Command
      == Manager registered action ExtensionState
      == Manager registered action AbsoluteTimeout
      == Manager registered action MailboxStatus
      == Manager registered action MailboxCount
      == Manager registered action DBget
      == Manager registered action DBput
      == Manager registered action DBdel
      == Manager registered action ListCommands
      == Parsing '/etc/asterisk/manager.conf': Found
      == Parsing '/etc/asterisk/rtp.conf': Found
      == RTP Allocating from port range 10000 -> 20000
    Asterisk PBX Core Initializing
    Registering builtin applications:
     [AbsoluteTimeout]
      == Registered application 'AbsoluteTimeout'
     [Answer]
      == Registered application 'Answer'
     [BackGround]
      == Registered application 'BackGround'
     [Busy]
      == Registered application 'Busy'
     [Congestion]
      == Registered application 'Congestion'
     [DigitTimeout]
      == Registered application 'DigitTimeout'
     [Goto]
      == Registered application 'Goto'
     [GotoIf]
      == Registered application 'GotoIf'
     [GotoIfTime]
      == Registered application 'GotoIfTime'
     [Hangup]
      == Registered application 'Hangup'
     [NoOp]
      == Registered application 'NoOp'
     [Prefix]
      == Registered application 'Prefix'
     [Progress]
      == Registered application 'Progress'
     [ResetCDR]
      == Registered application 'ResetCDR'
     [ResponseTimeout]
      == Registered application 'ResponseTimeout'
     [Ringing]
      == Registered application 'Ringing'
     [SayNumber]
      == Registered application 'SayNumber'
     [SayDigits]
      == Registered application 'SayDigits'
     [SayAlpha]
      == Registered application 'SayAlpha'
     [SayPhonetic]
      == Registered application 'SayPhonetic'
     [SetAccount]
      == Registered application 'SetAccount'
     [SetAMAFlags]
      == Registered application 'SetAMAFlags'
     [SetGlobalVar]
      == Registered application 'SetGlobalVar'
     [SetLanguage]
      == Registered application 'SetLanguage'
     [SetVar]
      == Registered application 'SetVar'
     [StripMSD]
      == Registered application 'StripMSD'
     [Suffix]
      == Registered application 'Suffix'
     [Wait]
      == Registered application 'Wait'
     [WaitExten]
      == Registered application 'WaitExten'
    Asterisk Dynamic Loader Starting:
      == Parsing '/etc/asterisk/modules.conf': Found
     [chan_modem.so] => (Generic Voice Modem Driver)
      == Parsing '/etc/asterisk/modem.conf': Found
      == Loading modem driver chan_modem_aopen.so => (A/Open (Rockwell Chipset) ITU-2 VoiceModem Driver)
      == Registered channel type 'Modem' (Generic Voice Modem Channel Driver)
     [res_musiconhold.so] => (Music On Hold Resource)
      == Parsing '/etc/asterisk/musiconhold.conf': Found
      == Registered application 'MusicOnHold'
      == Registered application 'WaitMusicOnHold'
      == Registered application 'SetMusicOnHold'
     [res_adsi.so] => (ADSI Resource)
      == Parsing '/etc/asterisk/adsi.conf': Found
     [res_features.so] => (Call Parking Resource)
      == Parsing '/etc/asterisk/features.conf': Found
        -- Registered extension context 'parkedcalls'
        -- Added extension '700' priority 1 to parkedcalls
      == Registered application 'ParkedCall'
      == Registered application 'Park'
      == Manager registered action ParkedCalls
      == Registered application 'HoldedCall'
      == Registered application 'AutoanswerLogin'
      == Registered application 'Autoanswer'
     [res_crypto.so] => (Cryptographic Digital Signatures)
        -- Loaded PUBLIC key 'iaxtel'
        -- Loaded PUBLIC key 'freeworlddialup'
     [res_indications.so] => (Indications Configuration)
      == Parsing '/etc/asterisk/indications.conf': Found
        -- Registered indication country 'cl'
        -- Registered indication country 'tw'
        -- Registered indication country 'us'
        -- Registered indication country 'au'
        -- Registered indication country 'fr'
        -- Registered indication country 'de'
        -- Registered indication country 'nl'
        -- Registered indication country 'uk'
        -- Registered indication country 'fi'
        -- Registered indication country 'no'
        -- Registered indication country 'br'
        -- Registered indication country 'za'
        -- Registered indication country 'it'
        -- Registered indication country 'us-o'
        -- Registered indication country 'gr'
        -- Registered indication country 'ru'
        -- Registered indication country 'nz'
        -- Registered indication country 'sg'
        -- Registered indication country 'hu'
        -- Registered indication country 'lt'
        -- Registered indication country 'pl'
        -- Registered indication country 'pt'
        -- Registered indication country 'ee'
        -- Registered indication country 'mx'
        -- Registered indication country 'se'
        -- Setting default indication country to 'us'
      == Registered application 'Playtones'
      == Registered application 'StopPlaytones'
     [res_monitor.so] => (Call Monitoring Resource)
      == Registered application 'Monitor'
      == Registered application 'StopMonitor'
      == Registered application 'ChangeMonitor'
      == Manager registered action Monitor
      == Manager registered action StopMonitor
      == Manager registered action ChangeMonitor
     [res_agi.so] => (Asterisk Gateway Interface (AGI))
      == Registered application 'DeadAGI'
      == Registered application 'EAGI'
      == Registered application 'AGI'
     [res_watchdog.so] => (Watchdog Resource)
      == Parsing '/etc/asterisk/watchdog.conf': Found
     [chan_sip.so]Warning, flexible rate not heavily tested!
     => (Session Initiation Protocol (SIP))
      == Parsing '/etc/asterisk/sip.conf': Found
      == SIP Listening on 0.0.0.0:5060
      == Using TOS bits 0
      == Registered channel type 'SIP' (Session Initiation Protocol (SIP))
      == Registered application 'SIPDtmfMode'
      == Registered application 'PickupSIPuri'
     [chan_modem_bestdata.so] => (BestData (Conexant V.90 Chipset) VoiceModem Driver)
     [chan_modem_i4l.so] => (ISDN4Linux Emulated Modem Driver)
     [chan_agent.so] => (Agent Proxy Channel)
      == Registered channel type 'Agent' (Call Agent Proxy Channel)
      == Registered application 'AgentLogin'
      == Registered application 'AgentCallbackLogin'
      == Registered application 'AgentMonitorOutgoing'
      == Parsing '/etc/asterisk/agents.conf': Found
     [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP))
      == Parsing '/etc/asterisk/mgcp.conf': Found
      == MGCP Listening on 0.0.0.0:2727
      == Using TOS bits 0
      == Registered channel type 'MGCP' (Media Gateway Control Protocol (MGCP))
     [chan_iax2.so] => (Inter Asterisk eXchange (Ver 2))
      == Manager registered action IAXpeers
      == Parsing '/etc/asterisk/iax.conf': Found
      == Registered channel type 'IAX2' (Inter Asterisk eXchange Driver (Ver 2))
      == Using TOS bits 16
      == IAX Ready and Listening on 0.0.0.0 port 4569
      == Loaded firmware 'iaxy.bin'
      == Parsing '/etc/asterisk/iaxprov.conf': Found
        -- Loaded provisioning template 'default'
     [chan_local.so] => (Local Proxy Channel)
      == Registered channel type 'Local' (Local Proxy Channel Driver)
     [chan_skinny.so] => (Skinny Client Control Protocol (Skinny))
      == Parsing '/etc/asterisk/skinny.conf': Found
    Nov  4 16:04:11 WARNING[12707]: chan_skinny.c:2587 reload_config: Unable to get our IP address, Skinny disabled
      == Registered channel type 'Skinny' (Skinny Client Control Protocol (Skinny))
     [chan_oss.so] => (OSS Console Channel Driver)
    Nov  4 16:04:11 WARNING[12707]: chan_oss.c:458 soundcard_init: Unable to open /dev/dsp: No such device
      == No sound card detected -- console channel will be unavailable
      == Turn off OSS support by adding 'noload=chan_oss.so' in /etc/asterisk/modules.conf
     [chan_phone.so] => (Linux Telephony API Support)
      == Parsing '/etc/asterisk/phone.conf': Found
      == Registered channel type 'Phone' (Standard Linux Telephony API Driver)
     [chan_zap.so] => (Zapata Telephony w/PRI)
      == Parsing '/etc/asterisk/zapata.conf': Found
    Nov  4 16:04:11 ERROR[12707]: chan_zap.c:6491 mkintf: Unable to get parameters
    Nov  4 16:04:11 ERROR[12707]: chan_zap.c:10329 setup_zap: Unable to register channel '1-2'
    Nov  4 16:04:11 WARNING[12707]: loader.c:345 ast_load_resource: chan_zap.so: load_module failed, returning -1
      == Unregistered channel type 'Tor'
      == Unregistered channel type 'Zap'
    Nov  4 16:04:11 WARNING[12707]: loader.c:440 load_modules: Loading module chan_zap.so failed!
    Ouch ... error while writing audio data: : Broken pipe
    
    ich habe bereits versucht die chan_zap in der modules.conf zu laden, als auch ein "modprobe zaptel"

    ich steh aufm schlauch :) sicher was essentielles vergessen.

    hier mal alle (so denke ich) relevanten files:

    zaptel.conf
    Code:
    #
    # hfc-s pci a SPAN Definitionen
    #
    loadzone=nl
    defaultzone=nl
    span=1,1,3,ccs,ami
    bchan=1-2
    dchan=3
    
    zapata.conf
    Code:
    [channels]
    ;----------------------------------------------------------------------------
    ;NT-Karte fuer ISDN-Telefonanlage im Mehrgeraete-Anschluss
    ;----------------------------------------------------------------------------
    switchtype = euroisdn
    signalling = bri_net_ptmp
    pridialplan = local
    prilocaldialplan = local
    echocancel = yes
    overlapdial = no
    echocancelwhenbridged=no
    echotraining=no
    immediate = no
    usecallerid = yes
    group = 1
    context = pbx-trunk
    channel => 1-2
    usecallingpres=yes
    nationalprefix = 0
    internationalprefix = 00
    
    die extensions.conf habe ich ein paar dutzend mal verändert, aktuell ist es eine die ich hier im forum fand. zum testen sollte das reichen:
    Code:
    [general]
    static=yes
    writeprotect=yes
    
    [globals]
    IAXINFO => guest
    TRUNKMSD => 1
    CONSOLE => Console/dsp
    
    [default]
    include => callin
    include => callout
    include => sipcallout
    
    ;----------------------------- CAPICALL ----------------------------------------
    
    [callin]
    exten => 5400001,1,DIAL(SIP/3@10.10.7.124,10,tT)
    exten => 5400001,2,DIAL(ZAP/g1/5400001,15 )
    exten => 5400001,3,Hangup
    
    ;exten => 5400002,1,DIAL(SIP/4@10.10.7.10,10)
    ;exten => 5400002,2,Dial(ZAP/g1/5400002,30,tT)
    ;exten => 5400002,3,Hangup
    
    [callout]
    exten => s,1,DIAL(ZAP/g1/${EXTEN},r)
    exten => _x.,2,DIAL(CAPI/@5400001:{EXTEN})
    
    
    [sipcallout]
    exten => _x.,1,DIAL(CAPI/@5400001:${EXTEN})
    exten => _x.,2,Congestion
    

    modules.conf
    Code:
    ;
    ; Asterisk configuration file
    ;
    ; Module Loader configuration file
    ;
    
    [modules]
    autoload=yes
    ;
    ; 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
    ;
    load => chan_modem.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.
    ;
    [global]
    chan_modem.so=yes
    noload => chan_modem.so
    load => chan_capi.so
    noload => chan_modem_bestdata.so
    noload => chan_modem_aopen.so
    noload => chan_modem_i4l.so
    load => chan_zap.so
    

    sollte jemand ne idee haben, so möge er mich bitte vom schlauch stoßen auf dem ich grad stehe.

    danke :)
     
  2. nme

    nme Neuer User

    Registriert seit:
    4 Nov. 2005
    Beiträge:
    15
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    DIESES problem ist gelöst, es lag an einem zaphfc modul das aus einer alten asterisk installation aus suse 9.2 übrig geblieben ist.

    kann also geschlossen werden denke ich :)