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

BItte um Hilfe zaphfc geht nicht mit kernel 2.6.8-2-386

Dieses Thema im Forum "Asterisk ISDN mit Bristuff (hfc, zaptel)" wurde erstellt von momadino, 24 Juni 2005.

  1. momadino

    momadino Neuer User

    Registriert seit:
    24 März 2005
    Beiträge:
    24
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Hallo Leute , nachdem ich alles mögliches in diesen Forum über die instalierung von bristuff und , alles mögliche versucht , bleibt ihr meine letzte Hoffnung um endlich mal mein Problem zu lösen .
    Folgendes :

    hab einen Debian 3.1 Sarge mit kernel 2.6.8-2-386
    uname -r : 2.6.8-2-386

    hab dann die kernel-sources-2.6.8.tar in /usr/src entpackt.
    hab dann die kernel-headers-2.6.8-2-386 instaliert via apt-get .

    hab die beiden symlinks erstellt
    ln -s kernel-sources-2.6.8 linux
    ln -s kernel-sources-2.6.8 linux-2.6

    dann habe ich ./install in "bristuff-0.2.0-RC8f-CVS" ausgefürt .
    Zaptel und libpri wird fehlerlos kompiliert

    bei qozap bekomme ich die fehler hier :


    Code:
    Asterisk:/usr/src/bristuff-0.2.0-RC8f-CVS/qozap# make all
    make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/bristuff-0.2.0-RC8f-CVS/qozap ZAP=-I
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaptel modules
    make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
      CC [M]  /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.o
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c: In Funktion »qoz_dfifo_tx«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:233: error: structure has no memb
    er named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:243: error: structure has no memb
    er named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:249: error: structure has no memb
    er named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:251: error: structure has no memb
    er named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c: In Funktion »qoz_dfifo_rx«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:305: error: structure has no memb
    er named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:335: error: structure has no memb
    er named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:336: error: structure has no memb
    er named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:345: error: structure has no memb
    er named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:346: error: structure has no memb
    er named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:353: error: structure has no memb
    er named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:354: error: structure has no memb
    er named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c: In Funktion »qoz_run«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:435: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:436: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:437: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:438: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c: In Funktion »ztqoz_startup«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:700: error: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:700: error: (Each undeclared identifier is reported only once
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:700: error: for each function itappears in.)
    /usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.c:712: error: structure has no member named `maxbytes2transmit'
    make[2]: *** [/usr/src/bristuff-0.2.0-RC8f-CVS/qozap/qozap.o] Fehler 1
    make[1]: *** [_module_/usr/src/bristuff-0.2.0-RC8f-CVS/qozap] Fehler 2
    make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
    make: *** [linux26] Fehler 2
    
    bei cwain die hier :
    Code:
    Asterisk:/usr/src/bristuff-0.2.0-RC8f-CVS/cwain# make all
    make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/bristuff-0.2.0-RC8f-CVS/cwain ZAP=-I/usr/src/bristuff-0.2.0-RC8f-CVS/zaptel modules
    make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
      CC [M]  /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.o
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c: In Funktion »cwain_dfifo_tx«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:210: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:220: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:228: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:230: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c: In Funktion »cwain_dfifo_rx«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:292: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:293: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:302: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:303: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:313: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:314: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c: In Funktion »cwain_run«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:399: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:400: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:401: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:402: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c: In Funktion »ztcwain_startup«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:634: error: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:634: error: (Each undeclared identifier is reported only once
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:634: error: for each function it appears in.)
    /usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.c:653: error: structure has no member named `maxbytes2transmit'
    make[2]: *** [/usr/src/bristuff-0.2.0-RC8f-CVS/cwain/cwain.o] Fehler 1
    make[1]: *** [_module_/usr/src/bristuff-0.2.0-RC8f-CVS/cwain] Fehler 2
    make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
    make: *** [linux26] Fehler 2
    
    bei zaphfc :

    Code:
    Asterisk:/usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc# make all
    make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc ZAP=-I/usr/src/bristuff-0.2.0-RC8f-CVS/zaptel modules
    make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
      CC [M]  /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.o
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c: In Funktion »hfc_dtrans«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:396: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:419: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:436: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:455: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:459: error: structure has no member named `eoftx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c: In Funktion »hfc_drec«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:471: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:472: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:506: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:511: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:521: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:527: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c: In Funktion »hfc_interrupt«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:721: error: structure has no member named `bytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:722: error: structure has no member named `maxbytes2transmit'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:736: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:739: error: structure has no member named `eofrx'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:741: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:744: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:746: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:749: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:755: error: structure has no member named `bytes2receive'
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c: In Funktion »zthfc_startup«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:831: error: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:831: error: (Each undeclared identifier is reported only once
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:831: error: for each function it appears in.)
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c: In Funktion »hfc_findCards«:
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:1000: Warnung: use of cast expressions as lvalues is deprecated
    /usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.c:1000: Warnung: use of cast expressions as lvalues is deprecated
    make[2]: *** [/usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc/zaphfc.o] Fehler 1
    make[1]: *** [_module_/usr/src/bristuff-0.2.0-RC8f-CVS/zaphfc] Fehler 2
    make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
    make: *** [linux26] Fehler 2
    hab echt alles versucht .erfolglos
    Was mache ich denn Falsche .
    Bitte hilft mir bin verzweifelt .
    Danke
     
  2. Maik

    Maik Gesperrt

    Registriert seit:
    1 Apr. 2004
    Beiträge:
    1,778
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Wenn ich das richtige sehe, ist nicht der Kern das Problem sondern die Zaptel-Treiber. Da wird wohl gegen eine falsche Zaptel-Version kompiliert.
     
  3. pcexperte

    pcexperte Neuer User

    Registriert seit:
    9 Apr. 2005
    Beiträge:
    22
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Hatte das auch mal allerdings auf einer SuSE Distri, geholfen hatte folgendes:

    Wechseln nach

    /usr/src/linux

    dann

    make cloneconfig

    danach

    make prepare

    danach konnte ich alles ohne Fehler kompilieren.

    Bin aber auch kein Linux-Guru daher kann ich nicht sagen ob es bei
    anderen distris auch so geht.
     
  4. momadino

    momadino Neuer User

    Registriert seit:
    24 März 2005
    Beiträge:
    24
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Hallo Leute nun ich glaube ich habe die lösung gefunden , wie fragt mich bitte nicht :) .
    nächste problem ich kann mit mein Karte in TE modus nicht rauswählen oder anrufe
    entgegen nehmen hier sind meine config und asterisk logfiles .
    Danke euch alle im voraus .





    zap show status
    Code:
    Asterisk*CLI> zap show status
    Description                              Alarms     IRQ        bpviol     CRC4
    HFC-S PCI A ISDN card 0 [TE] layer 1 AC@ OK                  0          0          0
    
    ztcfg -vvv
    Code:
    Zaptel Configuration
    ======================
    
    SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
    
    Channel map:
    
    Channel 01: Individual Clear channel (Default) (Slaves: 01)
    Channel 02: Individual Clear channel (Default) (Slaves: 02)
    Channel 03: D-channel (Default) (Slaves: 03)
    
    3 channels configured.
    

    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]
    
    
    switchtype = euroisdn
    signalling = bri_cpe_ptmp
    pridialplan = local
    prilocaldialplan = local
    usecallerid = yes
    overlapdial = no
    immediate = no
    group = 1
    context = isdn
    channel => 1-2
    
    


    extension.conf

    Code:
    
    [general]
    static=yes
    writeprotect=yes
    
    
    
    [default]
    
    include => 11
    include => 12
    include => isdn
    include => isdn_in
    
    
    [isdn_in]
    exten => 396,1,Dial(SIP/11)
    exten => 396,2,Hangup
    
    
    [isdn]
    
    ; 8 vorwaehlen -> Ueber ISDN waehlen
    ; ${EXTEN:1} bedeutet, dass von der zu waehlenden Rufnummer eine
    ; Ziffer abgeschnitten wird, hier also die '8'.
    
    exten => _8.,1,Dial(Zap/g1/${EXTEN:1})
    exten => _8.,2,Congestion
    exten => _8.,3,Busy
    exten => _8.,4,Hangup
    
    exten =>_X.,1,Dial(SIP/11)
    exten =>_X.,2,Hangup
    

    Code:
    Asterisk*CLI>
        -- Executing Dial("SIP/11-b23f", "Zap/g1/001797039567") in new stack
    Jun 25 14:20:03 NOTICE[13124]: app_dial.c:983 dial_exec_full: Unable to create channelof type 'Zap' (cause 0)
      == Everyone is busy/congested at this time (1:0/0/1)
        -- Executing Congestion("SIP/11-b23f", "") in new stack
      == Spawn extension (default, 8001797039567, 2) exited non-zero on 'SIP/11-b23f'
    
    
    
    

    was mache ich falsche .!!!

    sip geht ohne probleme .
     
  5. udosw

    udosw Aktives Mitglied

    Registriert seit:
    20 März 2004
    Beiträge:
    1,114
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Ort:
    Hannover
    Nach vielen Versuchen habe ich den Eindruck, dass man die Kernel-Sourcen nicht braucht, die kernel-headers reichen.

    Bei mir hat es endlich auf folgende Weise geklappt:
    - Kernel als Image installiert:
    apt-get install kernel-image-2.6.11-1-386
    - Kernel Headers installiert:
    apt-get install kernel-headers-2.6.11-1-386

    Darauf geachtet, dass es einen Link von
    > /lib/modules/2.6.11-1-386# ls -la
    lrwxrwxrwx 1 root root 14 2005-06-26 00:16 build -> /usr/src/linux
    gibt. Das scheint entscheidend zu sein!
    und:
    > /usr/src# ls -lad linux*
    lrwxrwxrwx 1 root src 27 2005-06-26 00:11 linux -> kernel-headers-2.6.11-1-386
    lrwxrwxrwx 1 root src 27 2005-06-26 00:11 linux26 -> kernel-headers-2.6.11-1-386
    lrwxrwxrwx 1 root src 27 2005-06-26 00:11 linux-2.6 -> kernel-headers-2.6.11-1-386
    (vorsichtshalber).

    Versuch's mal so.

    Udo
     
  6. isenberg

    isenberg Neuer User

    Registriert seit:
    8 Okt. 2005
    Beiträge:
    86
    Zustimmungen:
    0
    Punkte für Erfolge:
    0
    Laut http://voip-info.linuxsys.com/wiki/index00a00dd7854b92b64136f1ea090f349c.html?page=Asterisk+zaphfc:

    Jedenfalls hatte ich "patch" nicht installiert und somit konnten die Sourcen nicht gepatcht werden. Nach der Installation von "patch" funktionierte es.