Solved

What kind of channel should I be trying to configure 1 tdm410 with 1 fxo

Posted on 2009-05-03
7
896 Views
Last Modified: 2013-12-16
This machine is in secure environment, no HDD, no nic, no mass storage, boot from live cd with only a small usb stick to hold the the config files (asterisk 1.4.24.1 on astlinux)

What kind of channel should I be trying to configure if I have one analog phone line, 1 tdm410 and 1 fxo module (yes I'm a newbie and have spent a week on this already, trying to learn, the problem is, all the documentation is written for people who already know everything).

What do i need to put in the 'channel:' field for a call file is the real question - the card works for answering incoming, (shows DAHDI/1-1 in the CLI whatever that is) but won't do outgoing calls using call files

The card seems to be installed ok, but when i do ztcfg -vv it says 1 card TO configure, it doesn't say configured, what's the next step in configuring the channel?

The following is just stuff I've seen in the documentation, maybe something in it will give an answer that I can't see.

lspci -n | grep s191 gives:
01:04.0 Class 0200: d161:8005 Rev 11

modprobe wctdm24xxp gives:
finds the card, shows auto fxo in port 1, fcc mode
port 2,3 and 4 are empty and i don't have the echo cancellation

ztcfg -vv gives:
channel 01:  FXS Kewlstart (default) (Slaves: 01)
1 Channel to configure

zaptel.conf
loadzone=us
defaultzone=us
fxsks=1

zapata.conf
[channels]
signalling=fxs_ks
language=en
context => outgoing
channel => 1

extensions.conf
[outgoing]
exten => s,1,Wait(1)
exten => s,2,Playback(tt-weasels)
exten => s,3,Hangup( )
;will eventually use record() here

[incoming]
exten => s,1,Answer(1)
exten => s,2,Wait(1)
exten => s,3,Playback(tt-weasels)
exten => s,4,Hangup( )

thanks
0
Comment
Question by:scott_audio
  • 3
  • 2
7 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 250 total points
ID: 24294496
Based on the above, I would put
channel: Zap/g0
in the file for the outbound call.

Your zaptel.conf  looks proper for configuring a FXO port; you indeed want to use the FXS protocol, and KS (if available),  although in some rare cases fxsks hangup notification might not be there;  you could need fxls in zaptel.conf   and fxs_ls  in zapata.conf,  on the rare occasion you are connected to a telco provider that doesn't support  kewlstart.


To see your active zap channel numbers in Asterisk, do the following:
# rasterisk
asterisk> zap show channels
asterisk> exit

zapata.conf defines your channel groups. In yours you appear to have one group of channels defined, without a   group=  line before the matching channel=> line
so, that group number will be 0,

Therefore for outbound purposes, you should be Dialing Zap/g0
Or  the channel directly is  Zap/1

       zapata.conf
       [channels]
       signalling=fxs_ks
       language=en
       context => outgoing
       channel => 1
0
 

Author Comment

by:scott_audio
ID: 24297241
Mysidia:

Thank you for your clear concise answers - very helpful.

I added group=0 to zapata

After reloading, I do 'core show channels'  - it shows
0 active channels
0 of 1 Max active calls

Is that what it's supposed to say?

It won't answer incoming or do outgoing, but I had the incoming working before - I'm going to do a fresh install and setup again with the information you've given me, and see how that works, will post results, thanks again

scott
0
 

Author Comment

by:scott_audio
ID: 24297329
also did 'zap show channels' as told but in CLI it says that's not a valid command

when i do 'core show channeltypes', zap is not listed if that's helpful at all

listed are Agent, Local, IAX2, MGCP, Phone, SIP, Skinny and Console

0
 

Author Closing Comment

by:scott_audio
ID: 31577366
ended up using DAHDI vs. Zap - I still don't understand completely, but it's working, so I'll do some more reading and learning, also OSS vs. ALSA was an issue.  You've been a big help, and I very much appreciate your taking time to respond.  -Scott
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 24301349
0 of 1 Max active calls
Is normal to see when there is not a call active, but you have 1 available channel device.

Apparently DAHDI is  a new name for the Zaptel project, which got changed due to trademark reasons (another company came up with a trademark to the Zaptel name),
and  Digium has renamed Zap to DAHDI  in some of the newest releases of Asterisk.
http://www.voip-info.org/wiki/view/DAHDI
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now