?
Solved

Asterisk: Installing a 3 fxo digium Card

Posted on 2007-10-14
11
Medium Priority
?
1,089 Views
Last Modified: 2013-11-12
Can someone give me a walk thru for installing and setting up a digium 3 fxo card for 3 analog ph  lines
0
Comment
Question by:jonnydollar
  • 6
  • 5
11 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 20076500
Sure. Can you tell me the model of the card?
What country are you in?

How do you intend to use the cards?
Are you going to pass the incoming call onto a particular internal phone depending on what line it came in on?
Or are you going to group the 3 lines together?

Generally the procedure is :-

1) Fit the card
2) Edit /etc/sysconfig/zaptel and enable the driver for the card you are using.
3) Edit /etc/zaptel.conf to setup the 'spans' for the cards you are using.
4) Edit /etc/asterisk/zapata.conf and setup the features on the lines.
5) Edit /etc/asterisk/extensions.conf and setup your dialplan.
0
 

Author Comment

by:jonnydollar
ID: 20078091
Well im in the bahamas. So US standard would work. I plan to send all incoming calls thru the three lines to one main extension. Sip/0 for the operator that is. Next i would like users to be able to call out on any free line or the three. So i would like to group the three lines in a group but im not sure how to do that in the zaptel or zapata config
0
 
LVL 36

Expert Comment

by:grblades
ID: 20078376
What model card do you have?

If you have already fitted the card(s) then running the command 'lspci' from the linux prompt will give you a list of cards installed.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 36

Expert Comment

by:grblades
ID: 20078445
/etc/zaptel.conf will contain the following entries :-
loadzone=us
defaultzone=us
fxsks=1-3

/etc/asterisk/zapata.conf will contain the following :-
context=did
signalling=fxs_ks
echocancel=yes
echocancelwhenbridged=yes
group=1
channel => 1-3

Then in extensions.conf you will have an entry like :-
[did]
exten => s,1,Dial(sip/somephone)
0
 

Author Comment

by:jonnydollar
ID: 20078448
not fitted the card yet but its Digiums DGM-TDM03B
0
 
LVL 36

Expert Comment

by:grblades
ID: 20078548
Thats a TDM400P based card. In /etc/sysconfig/zaptel make sure it contains the following line without the '#' infront. The # effectivly comments out the line :-
MODULES="$MODULES wctdm"       # TDM400P - Modular FXS/FXO interface (1-4 ports)
0
 

Author Comment

by:jonnydollar
ID: 20078788
ok cool and for my outgoing how do i direct calls to a free line?

exten => _9NxxNxxxxxx,1,Dial(Zap/???, Exten:1)

somthing like that i think
0
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 20078834
Almost. Since in /etc/asterisk/zapata.conf we specified group=1 for all 3 lines then you can use this group for outgoing calls and the first free line will be used. So :-

exten => _9NxxNxxxxxx,1,Dial(Zap/g1/${EXTEN:1})
0
 

Author Comment

by:jonnydollar
ID: 20079691
so all lines would be a member of group one. If i may ask how would i separate them into groups for instance lets say i wanted 2 lines in one group and one line in another group
0
 
LVL 36

Expert Comment

by:grblades
ID: 20079735
/etc/asterisk/zapata.conf will contain the following :-
context=did
signalling=fxs_ks
echocancel=yes
echocancelwhenbridged=yes
group=1
channel => 1-2
group=2
context=did2
channel => 3

Channels 1 and 2 will then be in group1 and channel 3 will be in group 2.

You can also specify a different context as in the example above. This is completely optional.
For example taking the above config you could add the did2 context to extensions.conf so that it contained something like :-
[did]
exten => s,1,Dial(sip/phone1)
[did2]
exten => s,1,Dial(sip/phone2)
Now when a call comes in on either of the first two channels phone1 is rung while if a call comes in on channel3 phone2 is rung.
0
 

Author Comment

by:jonnydollar
ID: 20081124
excellent

thanks alot
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

809 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