keywords: ip pbx voip gateway gsm gateway

×

Notice

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

asterisk don't start when i install opvxg4xx module

13 years 9 months ago #5948 by yoyo
Hello,

Asterisk simply don't start after i use modprobe opvxg4xx.
if i remove opvxg4xx(and only zaptel remain) i can start asterisk but ofcource i cannot use the cards.
PS: i have two cards installed

LOGS:

ztcfg -vvv
Zaptel Version: 1.4.12.1
Echo Canceller: MG2
Configuration
======================
SPAN 1: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 3: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 4: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 5: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 6: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 7: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 8: CCS/ AMI Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: D-channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: D-channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: D-channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: D-channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: D-channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: D-channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: D-channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
16 channels to configure.


zaptel.conf was generated using genzaptelconf, but i also tried to use the one from the wiki
here is the file:

cat zaptel.conf
# Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#
# It must be in the module loading order

# Span 1: opvxg4xx/0/1 "OpenVox G400P GSM/CDMA PCI Card 0" (MASTER)
span=1,0,0,ccs,ami
# termtype: te
bchan=1-1
dchan=2
# Span 2: opvxg4xx/0/2 "OpenVox G400P GSM/CDMA PCI Card 0"
span=2,0,0,ccs,ami
# termtype: te
bchan=3-3
dchan=4
# Span 3: opvxg4xx/0/3 "OpenVox G400P GSM/CDMA PCI Card 0"
span=3,0,0,ccs,ami
# termtype: te
bchan=5-5
dchan=6
# Span 4: opvxg4xx/0/4 "OpenVox G400P GSM/CDMA PCI Card 0"
span=4,0,0,ccs,ami
# termtype: te
bchan=7-7
dchan=8
# Span 5: opvxg4xx/1/1 "OpenVox G400P GSM/CDMA PCI Card 1"
span=5,0,0,ccs,ami
# termtype: te
bchan=9-9
dchan=10
# Span 6: opvxg4xx/1/2 "OpenVox G400P GSM/CDMA PCI Card 1"
span=6,0,0,ccs,ami
# termtype: te
bchan=11-11
dchan=12
# Span 7: opvxg4xx/1/3 "OpenVox G400P GSM/CDMA PCI Card 1"
span=7,0,0,ccs,ami
# termtype: te
bchan=13-13
dchan=14
# Span 8: opvxg4xx/1/4 "OpenVox G400P GSM/CDMA PCI Card 1"
span=8,0,0,ccs,ami
# termtype: te
bchan=15-15
dchan=16
# Global data
loadzone = us
defaultzone = us


cat zapata.conf
[channels]
txgain = 0.0
rxgain = 0.0
signalling = gsm
context = from-gsm
echocancel=no
relaxdtmf=yes
; slot A
channel => 1
; slot B
channel=> 3
; slot C
channel => 5
; slot D
channel => 7


ls /dev/zap
1 10 11 12 13 14 15 16 2 3 4 5 6 7 8 9 channel ctl pseudo timer



asterisk -vvvvg
Asterisk 1.4.26.2-BRIstuffed-0.4.0-RC3h, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
[Jul 24 19:07:32] ERROR[31226]: asterisk.c:3090 main: Asterisk has detected a problem with your Zaptel configuration and will shutdown for your protection. You have options:
1. You only have to compile Zaptel support into Asterisk if you need it. One option is to recompile without Zaptel support.
2. You only have to load Zaptel drivers if you want to take advantage of Zaptel services. One option is to unload Zaptel modules if you don't need them.
3. If you need Zaptel services, you must correctly configure Zaptel.


can you please tell me why asterisk is not starting?
13 years 9 months ago #5949 by yoyo
i finnaly manage this problem but ofcourse i have another one now.
but first of all:

It seems asterisk gives this error ( "Asterisk has detected a problem with your Zaptel configuration" ) when is trying to take the clock from /dev/zap/timer but this doesn't work correctly.
In order to see if the timer is working or not, please check if you have ztdummy module installed and run zttest. If zttest doen't show you anything it seems the ztdummy module has something wrong.

After a lot of readings it seems the kernel timer should be put to 1000(which is stupid because this timer is usually for desktop not for servers).
So recompile your kernel and put CONFIG_HZ_1000=y and CONFIG_HIGH_RES_TIMERS=y
after that, of course you ztdummy will not compile :lol
for this there is patch ( http://www.mail-archive.com/svn- ... m.com/msg34082.html ) .. apply it and compile again the zaptel

after this load zaptel, load ztdummy and after that opvxg4xx.



ok..so far so good.
now i managed to start asterisk and everthing looks ok to me.


hasterisk*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo default default
1 from-pstn default
3 from-pstn default
5 from-pstn default
7 from-pstn default

zap show channel 1
Channel: 1CLI>
File Descriptor: 10
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 0
Signalling Type: GSM
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: alaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 1 taps unless TDM bridged, currently OFF
Hookstate (FXS only): Onhook


when i am trying to place a call i receive this error.

-- Executing [100@default:1] Dial("SIP/100-08423668", "zap/1/10000") in new stack
[Jul 25 12:18:01] WARNING[2797]: app_dial.c:1294 dial_exec_full: Unable to create channel of type 'zap' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)


can you please help with this ?

i] Last edited by yoyo at 2010-7-25 20:32 [/i
13 years 9 months ago #5950 by Denins.Den
Please give me your email address
13 years 9 months ago #5954 by yoyo
hello,

i've sent you an email.
13 years 9 months ago #5955 by Denins.Den
I didn't received your email, please check
13 years 9 months ago #5960 by yoyo
hello,

I've sent you a private message.
you can also find me at This email address is being protected from spambots. You need JavaScript enabled to view it.

Thanks
Time to create page: 0.049 seconds
Powered by Kunena Forum