All pastes #590839 Raw Edit

Miscellany

public text v1 · immutable
#590839 ·published 2007-06-26 20:18 UTC
rendered paste body
## I want it to be [TE TE NT NT], (bin)1100 = (dec)12
# modprobe qozap ports=12


## dmesg output:
[20887660.340000] Zapata Telephony Interface Registered on major 196
[20887660.340000] Zaptel Version: 1.2.10 Echo Canceller: MG2
[20887660.348000] PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
[20887660.348000] ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 18 (level, low) -> IRQ 106
[20887660.348000] qozap: CologneChip HFC-4S evaluation board configured at io port 0xc400
IRQ 106 HZ 250
[20887660.352000] qozap: S/T ports: 4 [ TE TE NT NT ]
[20887660.360000] qozap: 1 multiBRI card(s) in this box, 4 BRI ports total, bloop 0, pcmsl
ave 0.


###########################################



# cat /etc/asterisk/zaptel.conf
loadzone=de
defaultzone=de
# qozap span definitions
# most of the values should be bogus because we are not really zaptel

span=1,1,3,ccs,ami
bchan=1,2
dchan=3

span=2,2,3,ccs,ami
bchan=4,5
dchan=6

span=3,0,3,ccs,ami
bchan=7,8
dchan=9

span=4,0,3,ccs,ami
bchan=10,11
dchan=12


############################################################


# ztcfg

## dmesg output:
[20887688.308000] Registered tone zone 29 (Germany)


######################################











# cat /proc/zaptel/*
Span 1: ztqoz/2/1 "quadBRI PCI ISDN Card 1 Span 1 [TE] (cardID 255) Layer 1 ACTIVATED (F7)" AMI/CCS

           1 ztqoz2/1/1 Clear (In use)
           2 ztqoz2/1/2 Clear (In use)
           3 ztqoz2/1/3 HDLCFCS (In use)
Span 2: ztqoz/2/2 "quadBRI PCI ISDN Card 1 Span 2 [TE] (cardID 255) Layer 1 ACTIVATED (F7)" AMI/CCS

           4 ztqoz2/2/1 Clear (In use)
           5 ztqoz2/2/2 Clear (In use)
           6 ztqoz2/2/3 HDLCFCS (In use)
Span 3: ztqoz/2/3 "quadBRI PCI ISDN Card 1 Span 3 [NT] (cardID 255) Layer 1 DEACTIVATED (G2)" AMI/CCS

           7 ztqoz2/3/1 Clear (In use)
           8 ztqoz2/3/2 Clear (In use)
           9 ztqoz2/3/3 HDLCFCS (In use)
Span 4: ztqoz/2/4 "quadBRI PCI ISDN Card 1 Span 4 [NT] (cardID 255) Layer 1 DEACTIVATED (G2)" AMI/CCS

          10 ztqoz2/4/1 Clear (In use)
          11 ztqoz2/4/2 Clear (In use)
          12 ztqoz2/4/3 HDLCFCS (In use)


###############################################






## *CLI tells me every 5 seconds:
  == Primary D-Channel on span 3 down
Jun 26 22:13:45 WARNING[10620]: chan_zap.c:2505 pri_find_dchan: No D-channels available!  Using Primary channel 9 as D-channel anyway!
  == Primary D-Channel on span 4 down
Jun 26 22:13:45 WARNING[10623]: chan_zap.c:2505 pri_find_dchan: No D-channels available!  Using Primary channel 12 as D-channel anyway!