jonnydollar
asked on
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
ASKER
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
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.
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.
/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)
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)
ASKER
not fitted the card yet but its Digiums DGM-TDM03B
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)
MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports)
ASKER
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
exten => _9NxxNxxxxxx,1,Dial(Zap/??
somthing like that i think
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
/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.
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.
ASKER
excellent
thanks alot
thanks alot
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.c