keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

Card doesn't wok - DAHDI hook failed returned -1

13 years 6 months ago #6304 by ricardo
Hi!

Ich have some problems with getting to work the g400p. The card is installed and the driver opvxg4xxis loaded.
First, some information:
- we are using debian Lenny
- installion was ok ( http://wiki.openvox.cn/index.php/OpenVox_G400P_User_Manual ) with bristuff 0.4.0 ...
lspci says:
Class ff00: Device 1b74:0100 (rev 01)
        Subsystem: Device 1b74:0104
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- SERR- 
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at fdfe0000 (32-bit, non-prefetchable) [size=64K]
        Kernel driver in use: opvxg4xx
        Kernel modules: opvxg4xx
dmesg says:
Found an OpenVox G400P: Version 1.0
opvxg4xx: slot 0 is Installed
opvxg4xx: slot 1 is Installed
opvxg4xx: slot 2 is Empty
opvxg4xx: slot 3 is Empty
opvxg4xx: Powering up all spans...
cat /proc/zaptel/* says:
Span 1: opvxg4xx/0/1 "OpenVox G400P GSM/CDMA PCI Card 0" (MASTER) AMI/CCS

           1 opvxg4xx/0/1/0 Clear (In use)
           2 opvxg4xx/0/1/1 HDLCFCS (In use)
Span 2: opvxg4xx/0/2 "OpenVox G400P GSM/CDMA PCI Card 0" AMI/CCS

           3 opvxg4xx/0/2/0 Clear (In use)
           4 opvxg4xx/0/2/1 HDLCFCS (In use)
ztcfg -vv
Zaptel Version: 1.4.12.1
Echo Canceller: MG2
Configuration
======================

SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 399-533 feet (DSX-1)

Channel map:

Channel 01: Clear channel (A-law) (Slaves: 01)
Channel 02: D-channel (Default) (Slaves: 02)
Channel 03: Clear channel (A-law) (Slaves: 03)
Channel 04: D-channel (Default) (Slaves: 04)

4 channels to configure.
When I start asterisk, I get:
== Parsing '/etc/asterisk/zapata.conf': Found
WARNING[3325]: chan_dahdi.c:2047 dahdi_set_hook: DAHDI hook failed returned -1 (trying 0): Invalid argument
    -- Registered channel 1, GSM signalling
WARNING[3325]: chan_dahdi.c:2047 dahdi_set_hook: DAHDI hook failed returned -1 (trying 0): Invalid argument
    -- Registered channel 3, GSM signalling
    -- Automatically generated pseudo channel
When I dial :
Unable to create channel of type 'Zap' (cause 0 - Unknown)
And when I restart zap from asterisk cli:
WARNING[3325]: chan_dahdi.c:1312 dahdi_open: Unable to specify channel 2: Device or resource busy
 ERROR[3325]: chan_dahdi.c:8053 mkintf: Unable to set buffer info on channel '2': Bad file descriptor
 ERROR[3325]: chan_dahdi.c:12921 build_channels: Unable to register channel '1'
 WARNING[3325]: chan_dahdi.c:12122 dahdi_restart: Reload channels from dahdi config failed!
I don't know what to do anymore... I hope you can help me ...

Thanks a lot!
13 years 6 months ago #6305 by chapeti
I have the same problem as Richard.

Apparently have updated the code in the file "opvx-bristuff-0.4.0-RC3h.tar.gz" on 15/10 and corrected several problems. (About the size of the PDU, the "include stdllib.h", etc.).

I downloaded the new version compiles without problems but I have the same problem as Richard:

CHAPETI * CLI> module load chan_dahdi.so
[October 18 18:31:07] WARNING [4174]: chan_dahdi.c: 1312 dahdi_open: Unable to Specify channel 2: Device or resource busy
[October 18 18:31:07] ERROR [4174]: chan_dahdi.c: 8053 mkintf: Unable to September buffer channel info on '2 ': Bad file descriptor
[October 18 18:31:07] ERROR [4174]: chan_dahdi.c: build_channels 12921: Unable to register channel '1 '
CHAPETI * CLI>
13 years 6 months ago #6306 by svolta
Hi,
Please show me your configure files, eg: /etc/zaptel.conf /etc/asterisk/zapata.conf
13 years 6 months ago #6308 by ricardo
Hi!

we have also a HFC-Pci Card, but it is disabled. And only 2 SIM-Cards (Slot 1 and 2, Slot 3 and 4 is empty) in the openvox g400p.
/etc/zaptel.conf:
loadzone        =nl
defaultzone     =nl

alaw            =1,3#,5,7
span            =1,1,3,ccs,ami
span            =2,2,3,ccs,ami
#span           =3,3,3,ccs,ami
#span           =4,4,3,ccs,ami

bchan=1,3#,5,7
dchan=2,4#,6,8

#span=5,1,3,ccs,ami
#span=6,1,3,ccs,ami
#span=7,1,3,ccs,ami
#span=8,1,3,ccs,ami
#bchan=9-10
#dchan=11
#bchan=12-13
#dchan=14
#bchan=15-16
#dchan=17
#bchan=18-19
#dchan=20
/etc/asterisk/zapata.conf
[channels]
;GSM
txgain          = 0.0
rxgain          = 0.0
signalling      = gsm
context         = from-gsm
echocancel      = no
relaxdtmf       = yes

group = 1

; slot A
channel => 1
; slot B
channel=> 3
; slot C
;channel =>5
; slot D
;channel => 7


;QuadBri
;language                = de
;switchtype              = euroisdn
;pridialplan             = local
;prilocaldialplan        = dynamic
;nationalprefix          = 0
;internationalprefix     = 00
;overlapdial             = yes
;immediate               = no
;callprogress            = no
;busydetect              = no
;callwaiting             = yes
;musiconhold             = default
;faxdetect               = both

;signalling = pri_cpe
;context = s2m-incoming
;group = 2
;channel => 9-20
And one installation error I solved like this way : http://bbs.openvox.cn/viewthread.php?action=printable& ;tid=1401 (I think chapeti (second post)) had the same error ...

Thanks

i] Last edited by ricardo at 2010-10-19 14:17 [/i
13 years 6 months ago #6310 by svolta
Hi,
what's the OS version you are using? Did you see any error or warnning when you installed the drivers?
13 years 6 months ago #6311 by ricardo
We are using Debian Lenny ( Kernel 2.6.26-2-amd64 ). In /etc/modules we load :
opvxg4xx
qozap
And both use zaptel, which is loaded by them.
Time to create page: 0.042 seconds
Powered by Kunena Forum