[RESOLVED] Asterisk Book Wrong? Elementary configuration?

Greetings,

I bought the Asterisk book, read it, installed Fedora Core 6, pulled down zaptel, libpri, and asterisk, compiled them, loaded up the TDM400P, and followed the instructions to the letter.

Nothing happens.

I know the system is golden as I have no problems running and configuring AsteriskNOW on it and getting the 3 FXS modules to ring and the FXO to answer.

zaptel.conf:

fxsks=1
loadzone=us
defaultzone=us
fxoks=2
loadzone=us
defaultzone=us
fxoks=3
loadzone=us
defaultzone=us
fxoks=4
loadzone=us
defaultzone=us

zapate.conf:

[trunkgroups]
;
[channels]
;
;context=default
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
echocancelwhenbridged=yes
;rxgain=0.0
;txgain=0.0
;
;define channels
;
context=incoming
signalling=fxs_ks
channel => 1
;
signalling=fx0_ks
channel => 2
;
signalling=fx0_ks
channel => 3
;
signalling=fx0_ks
channel => 4

[incoming]
exten => s,1,Answer()
exten => s,2,Echo()

Right now I would be happy with an aswer and an echo.

Thanks,

Ike

Asterisk can be a steep learning curve the book is still valid, open source changes very quickly.

  1. Your signaling is in reverse
  2. fxo not fx0
  3. zapate.conf you mean zapata.conf

This should work for you if everything else is to the letter.

zaptel.conf

loadzone=us
defaultzone=us
fxoks=1,2,3
fxsks=4

zapata.conf

[trunkgroups]
;
[channels]
;
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0

;define channels

context=incoming
signalling=fxs_ks
channel => 4

signalling=fxo_ks
channel => 1,2,3

OK, the TDM400P card is loaded up as follows:

1: FXO Module
2,3,4: FXS Modules

I have a POTS line in the FXO Module and 3 POTS phones on the FXS Modules.

Here is a cut-and-paste from the terminal showing zaptel loaded, the channels configured, and asterisk started:

[root@usxxdc01 ~]# lsmod | grep zaptel
zaptel 211364 8 wcusb,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wct4xxp,tor2,wctdm
crc_ccitt 6337 1 zaptel
[root@usxxdc01 ~]# ztcfg -vv

Zaptel Version: 1.4.0
Echo Canceller: MG2
Configuration

Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)
4 channels configured.

[root@usxxdc01 ~]# lsmod | grep wctdm
wctdm24xxp 132548 0
wctdm 50880 0
zaptel 211364 8 wcusb,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wct4xxp,tor2,wctdm
[root@uschdc01 ~]# asterisk

here is my zaptel.conf:

loadzone=us
defaultzone=us
fxsks=1
fxoks=2,3,4

here is my zapata.conf:

[trunkgroups]
;
[channels]
;
;context=default
usecallerid=yes
hidecallerid=no
callwaiting=no
threewaycalling=yes
transfer=yes
echocancel=yes
echotraining=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
;
;define channels
;
context=incoming
signalling=fxs_ks
channel => 1
;
context=internal
signalling=fxo_ks
channel => 2,3,4

and finally my extensions.conf:

[incoming]
exten => s,1,Answer()
exten => s,2,Echo()

At this point shouldn’t Asterisk at least answer an inbound call to the FXO module and echo back what I say?

Perhaps there is a stupid mistake in my configuration files. I will reatly appreciate any help.

Regards,

Ike

That all looks ok; what does the CLI messages say when you try to call the POTS number?

[root@pbx01~]# asterisk -r

[quote=“bwilks”]That all looks ok; what does the CLI messages say when you try to call the POTS number?

[root@pbx01~]# asterisk -r[/quote]

It does not say anything. All I get is:

[root@usxxdc01 ~]# asterisk -r
Asterisk 1.4.15, Copyright © 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
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.

Connected to Asterisk 1.4.15 currently running on usxxdc01 (pid = 3120)
usxxdc01*CLI>

When I dial into the POTS line nothing happens at the CLI.

Am I too uplevel?

Should I blow this installation away and go for an older distribution set?

Do I have the correct mix of zaptel, libpri, and asterisk?

Any help would be appreciated.

Ike

At the CLI>core set verbose 5
and try again

[quote=“bwilks”]At the CLI>core set verbose 5
and try again[/quote]

Did it, called in, and nothing shows up at the CLI.

I’m a noob; should there be some other monitoring function running or should the messages appear at the CLI?

Thanks,

Ike

Hi did you get my reply from your other post?

extensions.conf

Replace your extensions.conf with this type reload at the CLI> and try dialing out or another extension we need to get the CLI giving us information to solve the problem.

[general]
static=yes
writeprotect=yes
autofallthrough=no
language=us

[internal]
include => outgoing

exten => 2,1,Verbose(1|Echo test application)
exten => 2,n,Echo()
exten => 2,n,Hangup()

;Extension 112
exten => 112,1,Dial(Zap/2,20)
exten => 112,2,HangUp()

;Extension 113
exten => 113,1,Dial(Zap/3,20)
exten => 113,2,HangUp()

;Extension 114
exten => 113,1,Dial(Zap/4,20)
exten => 113,2,HangUp()

[outgoing]
exten => _X.,1,Dial(Zap/1/${EXTEN:0})
exten => _X.,2,HangUp()

[default]
include =>incoming

[incoming]
;exten => s,1,Answer()
;exten => s,2,Echo()

exten => s,1,Dial(ZAP/2,20
exten => s,2,Hangup()

OK, I have 1.4-current but I used the First Edition book to compile zaptel, libpri, and Asterisk & then configure the basic .conf files. I downloaded the 2nd edition book and started reading. Looks like I followed the wrong compile & configuration instructions. Being a noob to Linux and Asterisk I decided to blow away the system and start from scratch rather than try to troubleshoot the system. This time I am going to follow the 2nd Edition Asterisk book and see what happens. I’m on Disk 3 of Fedora Core 6 and should be back in position to try again sometime tomorrow morning.

I will post the results them.

Thank you very much,

Ike

Reload and compiles complete.

Now when I run ztcfg -vv I get:

Zaptel Version: 1.4.7.1
Echo Canceller: MG2
Configuration

Channel map:

Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)

4 channels [color=red]to [/color]configure.

[color=red]4 channels to configure [/color]and my zaptel.conf file is basically right out of the Rev2 Asterisk book:

fxsks=1
fxoks=2,3,4
loadzone=us
defaultzone=us

I found the same exact error in 2 postings; one was an Asterisk post at asteriskguru, one was regarding FREEPBX . I may be a noob but it seems to me that there is a zaptel problem.

Just to be sure my TDM400P didn’t die I ran my AsteriskNOW HDD in the system and the systems works fine. The TDM400P works.

[color=blue]Asterisk/Digium employee moderators: might as well come up with some kind of fix now or deal with me in person at the Bootstrap class I just plunked $3,000 down on. One way or another I’ll be getting an answer from you.[/color]

Ike

Hi[quote]Asterisk/Digium employee moderators: might as well come up with some kind of fix now or deal with me in person at the Bootstrap class I just plunked $3,000 down on. One way or another I’ll be getting an answer from you. [/quote]
This is not the way to get help in the open source community. You have a problem, and that can be very infriating but the problem lies with your install and not zaptel or asterisk, so its a bit of give and take.

What does zttool show ? or when at the CLI prompt what does zap show channels show ?

from the lunix prompt what does lsmod show ? and what does dmesg look like when loading the modules.

Ian

zttool shows:

OK Wildcard TDM400P REV I Board 1

No alarms.
internally clocked
0
0
0/ 0
4/ 4/ 0

1234







At the CLI> there is no such command as “zap show channels”

I ran “core show channels” at the CLI> and it came up with:
Channel Location State Application(Data)
0 active channels
0 active calls

Thank you,

Ike

Hi

try
core show channeltypes

or try

help zap

Ian

Ian,

Here it is:

localhost*CLI> core show channeltypes
Type Description Devicestate Indications Transfer


MGCP Media Gateway Control Protocol (MGCP) yes yes no
Phone Standard Linux Telephony API Driver no yes no
SIP Session Initiation Protocol (SIP) yes yes yes
Console OSS Console Channel Driver no yes no
Local Local Proxy Channel Driver yes yes no
IAX2 Inter Asterisk eXchange Driver (Ver 2) yes yes yes
Agent Call Agent Proxy Channel yes yes no
Skinny Skinny Client Control Protocol (Skinny) no yes no

8 channel drivers registered.
localhost*CLI>

There is no such thin as “help zap” at the CLI. In fact when I enter “help” at the CLI> there is not one single entry that contains “zap” anything. Lots of sip, rtcp, dundi, skinny, iax2, etc. but no zaps to be found.

I am beginning to think that I should have loaded up 1.2-current and not 1.4-current. None of the commands available to me seem to match what everyone else is using.

Thanks,

Ike

From the looks of that you havent installed zaptel correctly, was there any errors during the compiliation.

and you did compile it first then libpri the asterisk ?

Ian

[quote=“ianplain”]From the looks of that you havent installed zaptel correctly, was there any errors during the compiliation.

and you did compile it first then libpri the asterisk ?

Ian[/quote]

Ian,

I compiled zaptel, them libpri, then asterisk. When I compiled zaptel using the instructions from the first Asterisk book (the first server build) there were no error messages but when I compiled zaptel using the 2nd edition Asterisk book instructions (the second server biuld) there were a few blips during the compile.

I’ll blow away the machine and start over again. This time I’ll use the compile instructions from 1st Edition to compile zaptel and the 2nd Edition to compile libpri and asterisk.

When I finally get this thing going I’m going to post an install routine for all the noobs coming behind me they can actually use to get up and running quickly. That is as long as they use exactly the same downloads I used.

Thanks,

Ike

Have you configured your zapata.conf?

Hi

By Blips I assume you mean errors.

Im not sure why you are making this so hard for yourself. if asterisknow works use that or trixbox for that matter. It looks as if you are missing some bits of your linux bulid. TBH Fed 7 may be a bit too new anyway.

Ian

Ian,

I’m using Fedora Core 6, not 7 as Core 6 is supposed to be more stable.

AsteriskNOW was my “training wheels” and it will not suffice for what I am about to build.

If you have other suggestions regarding LINUX distributions, zaptel, libpri, and asterisk versions I am all ears.

Later,

Ike

Yes, copied verbatim right out of the Asterisk 2nd Edition Book. I have also tried various zapata.confs suggested by others.

Regards,

Ike