Junghanns quadGSM card problem
1. General Situation
a) From my predecessor I inherited a junghanns quadGSM card that is not used at the moment. I am trying to renew an Asterisk-project that should include the use of this card and probably more to buy if all goes according to plan.
b) My current lab setup includes:
Fresh installation of centOS version 5.6 (with latest update) on 32bit i386 platform
1 PCI quadGSM card + hotplug simcard holder, no other PCI cards in the system.
Installation of libpri (v. 1.4.12)
Installation of DAHDI, following the install.sh included in the package downloaded from the junghanns website (version 1.0.8 )
Installation of Asterisk from source (version 1.18)
Added 1 sim card in slot 1 of hotplug simcard holder
2. Encountered problem
a) I don’t have the “gsm”-channels available within Asterisk
3. Things I tried: scenario 1
a) Edited the /etc/dahdi/modules to only start the “ztgsm” module
b) Copy the included system.conf.quadGSM to /etc/dahdi/system.conf and changed “zone” from “nl” to “be”.
c) Copied the chan_dahdi.conf.quadGSM to /etc/asterisk/chan_dahdi.conf and uncommented what I thought was needed (see below)
d) Some output :
/etc/dahdi/modules
ztgsm
** /etc/dahdi/system.conf**
loadzone=be
defaultzone=be
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
hardhdlc=2,4,6,8
dahdi_cfg -vv
[i]DAHDI Version: 2.4.1.2
Echo Canceller(s):
Configuration
SPAN 1: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 399-533 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 399-533 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: none) (Slaves: 05)
Channel 06: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: none) (Slaves: 07)
Channel 08: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 08)
8 channels to configure.
Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none
Setting echocan for channel 5 to none
Setting echocan for channel 6 to none
Setting echocan for channel 7 to none
Setting echocan for channel 8 to none[/i]
chan_dahdi.conf
[channels]
txgain = -10.0
rxgain = 0.0
signalling = gsm
context = from-gsm
group=1
; phone number for SIM card in slot A
exten = 016012345671 ; (in lab here was the real phone nbr)
; PIN for SIM card in slot A
pin=1234 ; (in lab here was the real pin code of installed sim)
channel => 1
dahdi_scan
[1]
active=yes
alarms=OK
description=Junghanns.NET quadGSM PCI Card 0
name=ztgsm/0
manufacturer=
devicetype=
location=
basechan=1
totchans=2
irq=0
type=digital-
syncsrc=0
lbo=399-533 feet (DSX-1)
coding_opts=AMI
framing_opts=CCS
coding=AMI
framing=CCS
[2] [3] [4] similar…
***Asterisk log file ****
[Jul 11 11:49:48] ERROR[2812] chan_dahdi.c: Unknown signalling method ‘gsm’ at line 5.
[Jul 11 11:49:48] WARNING[2812] chan_dahdi.c: Unable to use span 0, since the D-channel cannot be located (unexpected span size of 2 channels)
[Jul 11 11:49:48] WARNING[2812] chan_dahdi.c: Channel 1: Unable to find locate channel/trunk group!
[Jul 11 11:49:48] ERROR[2812] chan_dahdi.c: Unable to register channel ‘1’
4. Thinks I tried: scenario 2
a) Edited the /etc/dahdi/modules to only start the “ztgsm” module
b) Copy the included system.conf.quadGSM to /etc/dahdi/system.conf and changed “zone” from “nl” to “be”.
c) Executed the dahdi_genconf tool (with no additional options), no changes are made to /etc/dahdi/genconf_parameters file.
d) Result:
error message on screen and dahdi_genconf stops
Unknown default dahdi signalling for chan 1 type GSM at /usr/lib/perl5/site_perl/5.8.8/Dahdi/Config/Gen/System.pm line 188
module file unchanged
system.conf: overwritten with only comment. Last line starting with
#Span 1: ztgsm/0 “Junghanns.NET quadGSM PCI card 0” (MASTER) AMI/CCS
chan_dahdi.conf is unchanged.
From that point on, with dahdi_cfg or dahdi_scan, it looks as if there’s no card anymore, which is to be expected because the system.conf has only comment in it.
Setting the system.conf file back to the junghanns-example makes the card visible again with dahdi_cfg and dahdi_scan
5. Conclusion:
DAHDI seems to be installed succesfully
The quadGSM card drivers seem to be installed: see output of dahdi_cfg -vv
Asterisk seems to be installed ok
Manual configuration of chan_dadhi.conf with example file included in junghanns package is wrong or incomplete
Auto generation of a correct chan_dahdi.conf with the perl-scripts included with dadhi has a bug or is not programmed to generate GSM config-files
6. QUESTIONS:
a) What are the correct options to be set manually in the chan_dahdi.conf in order to make the GSM channels available within asterisk?
b) Is there a workarround/bugfix to have the config files generated automatically with dahdi_genconf for the Junghanns quadGSM card?
c) Are there any options to be set and in which file to use the hot-plug simcard holder?
d) Where can I find correct, up-to-date and elaborated documentation on the different parameters to be set for the Junghanns quadGSM card? The “current” documentation on the junghanns website is very limited and does hardly handle any dahdi information. It’s still including zaptel.