Asterisk: Installing a 3 fxo digium Card

Can someone give me a walk thru for installing and setting up a digium 3 fxo card for 3 analog ph  lines
jonnydollarAsked:
Who is Participating?
 
grbladesConnect With a Mentor Commented:
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
 
grbladesCommented:
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
 
jonnydollarAuthor Commented:
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
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
grbladesCommented:
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
 
grbladesCommented:
/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
 
jonnydollarAuthor Commented:
not fitted the card yet but its Digiums DGM-TDM03B
0
 
grbladesCommented:
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
 
jonnydollarAuthor Commented:
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
 
jonnydollarAuthor Commented:
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
 
grbladesCommented:
/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
 
jonnydollarAuthor Commented:
excellent

thanks alot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.