Junghanns quadGSM card with dahdi: no channels in CLI

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.

Hi,

I am facing exactly the same problem. Were you able to solve the issue?

Thanks & Regards

hello:
[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’

you should check the system.conf and chan_dahdi.conf. might be the setting is wrong. I am sure the GSM card worked with asterisk. you have to find a doc from junghannns website for a right setting.

Running Asterisk Version = 1.4.43-BRIstuffed-0.4.0-RC19
Dahdi Source Version     = 2.6.1                          
Libpri Source Version    = 1.4.3     
Operating System         = CentOS release 6.4 (Final)
Kernel Version           = 2.6.32-358.11.1.el6.i686 - 32 bit
pesq*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol     CRC4      
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0      
pesq*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret       
 pseudo            default                    default             
[root@pesq ~]# dahdi_hardware
pci:0000:02:00.0     ztgsm-       1397:f001 HFC-GSM Cologne Chips GSM
[root@pesq ~]# dahdi_scan
[1]
active=yes
alarms=OK
description=Junghanns.NET quadGSM PCI Card 0
name=ztgsm/0
manufacturer=Junghanns.NET
devicetype=Junghanns.NET quadGSM PCI
location=PCI Bus 02 Slot 01
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]
active=yes
alarms=OK
description=Junghanns.NET quadGSM PCI Card 0
name=ztgsm/0
manufacturer=Junghanns.NET
devicetype=Junghanns.NET quadGSM PCI
location=PCI Bus 02 Slot 01
basechan=3
totchans=2
irq=0
type=digital-
syncsrc=0
lbo=399-533 feet (DSX-1)
coding_opts=AMI
framing_opts=CCS
coding=AMI
framing=CCS
[3]
active=yes
alarms=OK
description=Junghanns.NET quadGSM PCI Card 0
name=ztgsm/0
manufacturer=Junghanns.NET
devicetype=Junghanns.NET quadGSM PCI
location=PCI Bus 02 Slot 01
basechan=5
totchans=2
irq=0
type=digital-
syncsrc=0
lbo=399-533 feet (DSX-1)
coding_opts=AMI
framing_opts=CCS
coding=AMI
framing=CCS
[4]
active=yes
alarms=OK
description=Junghanns.NET quadGSM PCI Card 0
name=ztgsm/0
manufacturer=Junghanns.NET
devicetype=Junghanns.NET quadGSM PCI
location=PCI Bus 02 Slot 01
basechan=7
totchans=2
irq=0
type=digital-
syncsrc=0
lbo=399-533 feet (DSX-1)
coding_opts=AMI
framing_opts=CCS
coding=AMI
framing=CCS
[root@pesq ~]# cat /etc/dahdi/system.conf
loadzone=uk
defaultzone=uk

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
[root@pesq ~]# cat /etc/asterisk/chan_dahdi.conf
#include dahdi-channels.conf
[root@pesq ~]# cat /etc/asterisk/dahdi-channels.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
[root@pesq ~]# tail -100 /var/log/asterisk/messages
[Jul  5 17:07:03] NOTICE[1464] cdr.c: CDR simple logging enabled.
[Jul  5 17:07:03] NOTICE[1464] loader.c: 151 modules will be loaded.
[Jul  5 17:07:03] WARNING[1464] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: Starting AEL load process.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: calculated config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] NOTICE[1464] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Jul  5 17:07:03] ERROR[1464] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory
Jul  5 17:01:31 pesq kernel: dahdi: Telephony Interface Registered on major 196
Jul  5 17:01:31 pesq kernel: dahdi: Version: 2.6.1
Jul  5 17:01:31 pesq kernel: pci 0000:02:00.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
Jul  5 17:01:31 pesq kernel: ztgsm: iomem at d0000000 size 8192
Jul  5 17:01:31 pesq kernel: ztgsm: ioport size 256
Jul  5 17:01:31 pesq kernel: ztgsm: Junghanns.NET quadGSM card configured at io port 1000 IRQ 20 io mem f8b84000 HZ 1000 CardID 0
Jul  5 17:01:31 pesq kernel: ztgsm: VERSION aa32
Jul  5 17:01:31 pesq kernel: ztgsm: Powering up all spans... done.
Jul  5 17:01:31 pesq kernel: ztgsm: 1 multiGSM card(s) in this box, 4 GSM spans total.
Jul  5 17:01:33 pesq kernel: asterisk[1343]: segfault at 1c ip 0066fbe6 sp b70ff130 error 4 in chan_dahdi.so[64e000+44000]
Jul  5 17:01:37 pesq kernel: asterisk[1358]: segfault at b71c4000 ip 00da1bc0 sp b71c3130 error 6 in chan_dahdi.so[d80000+44000]
Jul  5 17:01:41 pesq kernel: asterisk[1373]: segfault at 1c ip 004b5be6 sp b72ff130 error 4 in chan_dahdi.so[494000+44000]
Jul  5 17:01:46 pesq kernel: asterisk[1403]: segfault at b7288000 ip 005d5bc0 sp b7287130 error 6 in chan_dahdi.so[5b4000+44000]

I have upgraded the installed version of asterisk and libpri

Running Asterisk Version = 1.8.22.0
Dahdi Source Version     = 2.6.1                          
Libpri Source Version    = 1.4.14
Operating System         = CentOS release 6.4 (Final)
Kernel Version           = 2.6.32-358.11.1.el6.i686 - 32 bit

Now I no longer get segmentation faults when I start asterisk however still cannot see any channels

pesq*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret        Blocked    State     
 pseudo            default                    default                         In Service
pesq*CLI> dahdi show status
Description                              Alarms  IRQ    bpviol CRC    Fra Codi Options  LBO
Junghanns.NET quadGSM PCI Card 0         OK      0      0      0      CCS AMI           399-533 feet (DSX-1)
Junghanns.NET quadGSM PCI Card 0         OK      0      0      0      CCS AMI           399-533 feet (DSX-1)
Junghanns.NET quadGSM PCI Card 0         OK      0      0      0      CCS AMI           399-533 feet (DSX-1)
Junghanns.NET quadGSM PCI Card 0         OK      0      0      0      CCS AMI           399-533 feet (DSX-1)
tail -f /var/log/asterisk/messages
[Jul 11 15:42:58] NOTICE[16027] cdr.c: CDR simple logging enabled.
[Jul 11 15:42:58] NOTICE[16027] loader.c: 191 modules will be loaded.
[Jul 11 15:42:58] NOTICE[16027] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Jul 11 15:42:58] NOTICE[16027] chan_skinny.c: Configuring skinny from skinny.conf
[Jul 11 15:42:58] WARNING[16027] chan_dahdi.c: Ignoring any changes to 'userbase' (on reload) at line 23.
[Jul 11 15:42:58] WARNING[16027] chan_dahdi.c: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Jul 11 15:42:58] WARNING[16027] chan_dahdi.c: Ignoring any changes to 'hassip' (on reload) at line 35.
[Jul 11 15:42:58] WARNING[16027] chan_dahdi.c: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Jul 11 15:42:58] WARNING[16027] chan_dahdi.c: Ignoring any changes to 'hasmanager' (on reload) at line 47.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: Starting AEL load process.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Jul 11 15:42:58] NOTICE[16027] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Jul 11 15:42:58] ERROR[16027] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory

I have finally managed to get it to work, I have had to go back to older versions of the packages

Running Asterisk Version = 1.4.40-rc1-BRIstuffed-0.4.0-RC10
Dahdi Source Version     = 2.5.0.2                          
Libpri Source Version    = 1.4.3
Operating System         = CentOS release 6.4 (Final)
Kernel Version           = 2.6.32-358.11.1.el6.i686 - 32 bit

I am now able to see the channels.

pesq*CLI> dahdi show channels
   Chan Extension  Context         Language   MOH Interpret       
 pseudo            default                    default             
      1            from-gsm                   default             
      3            from-gsm                   default             
      5            from-gsm                   default             
      7            from-gsm                   default             
pesq*CLI> 
pesq*CLI> dahdi show status
Description                              Alarms     IRQ        bpviol     CRC4      
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0         
Junghanns.NET quadGSM PCI Card 0         OK         0          0          0