Independent DAHDI Channel RX TX Gain Volume?

mark.bielech
Posts: 9
Member Since:
2008-05-31

I am new to Linux and trixbox, and I have done tons of research while implementing a trixbox solution for my home. I currently have set up a trixbox server running trixbox version 2.8.0.3. I have also installed an FXO/FXS card (1 FXO, 3 FXS) so I can use our traditional phones within our house and to interface with our landline.

The problem I am experiencing is that Line 1 in our house, attached to Channel 2 of the voice card, has a normal input/output to the phones while Line 2 in our house, attached to Channel 3 of the voice card, has an extremely LOW volume output. I tried adjusting the RX and TXGAIN in chan_dahdi.conf which solves the problem on Line 2, but causes ears to bleed on Line 1 with the excessive volume. It seems that these values are global to all the DAHDI channels on the card. Is there a way to independently set the RX and TXGAIN values on a single DAHDI channel? I see in some configuration templates you can also configure channels in a separate dahdi.conf section, but I'm not sure exactly what that means, or how I can configure an independent channel. Can anyone please give me a hand with this if this is possible? Any help would be GREATLY appreciated!

-Mark Bielech

--

>M0toM@rk_



mkleine
Posts: 207
Member Since:
2007-04-22
I've never tried this with gain...

Don't you love that response.

However, from following wiki...
http://www.voip-info.org/wiki/view/chan_dahdi.conf

While none of my gains listed below match your config, however, I've dummied up 3 lines to show how you change the channel and the gains per channel. I'd aim for chan_dahdi.conf to modify. I hope this gets you started.

From the wiki, modified for rxgain...
; When starting a new section almost all of the configuration values are
; copied from their values at the end of the section [channels] in
; dahdi.conf and [general] in users.conf - one section's configuration
; does not affect another one's.
;
; Instead of letting common configuration values "slide through" you can
; use configuration templates to easily keep the common part in one
; place and override where needed.
;
;[phones](!)
Enter your commands that are common to all channels here...
;
;[phone-1](phones)
dahdichan = 1
rxgain=0.0
txgain=0.0
;
;[phone-2](phones)
dahdichan = 2
rxgain=10.0
txgain=10.0
;
;[phone-3](phones)
dahdichan = 3
rxgain=-10.0
txgain=-10.0



mark.bielech
Posts: 9
Member Since:
2008-05-31
Real cute, maybe I should try some Tide instead? lol ;)

Thanks for the response mkleine. I have been staring at that wiki for nearly a WEEK. I don't quite understand the part where the configuration values are copied from their values at the end of the section. What does the (!) do as well as the (phones) next to the context? Do the contexts HAVE to say [phone-#]? After dahdichan =1, would the rx/txgain values be set for the first DAHDI channel? Where exactly would I put such options like "callerid" and "faxdetect"? I know this is a lot, but I'm trying to know more information about this. Thanks for your help!

--

>M0toM@rk_



mark.bielech
Posts: 9
Member Since:
2008-05-31
No Dice. :(

With the help from mkleine, I tried testing this possible solution. I modified the config from the wiki and placed it at the end of my chan_dahdi.conf. I restarted Asterisk, and it acts as if the config hasn't changed at all. Below is a snippet from my config. Am I still doing something wrong? Please help.

group=1

;Include PBXconfig configs
#include chan_dahdi_additional.conf
;#include chan_dahdi_custom.conf

[phones](!)

[phone-1](phones)
dahdichan = 1
rxgain=0.0
txgain=0.0

[phone-2](phones)
dahdichan = 2
rxgain=0.0
txgain=0.0

[phone-3](phones)
dahdichan = 3
rxgain=-2.0
txgain=9.5

--

>M0toM@rk_



mark.bielech
Posts: 9
Member Since:
2008-05-31
Still need assistance

Someone? Anyone? I still have yet to solve this problem.. :(

>M0toM@rk_

--

>M0toM@rk_



meowwoof2003
Posts: 1
Member Since:
2012-01-29
chan_dahdi_additional.conf

/etc/asterisk/chan_dahdi_additional.conf
thats the place where i added the rx and tx values and after i restarted Asterisk, the volumes changed but it gets re written by freepbx at some point so its not a permanent solution.

so i stopped asterisk (amportal stop) editied the file (nano/etc/asterisk/chan_dahdi_additional.conf)
and restarted asterisk (amportal start)

this is what mine looked like
;;;;;[2011]
signalling=fxs_ks
pickupgroup=
mailbox=2011@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
rxgain=10%
txgain=5%
context=from-zaptel
callprogress=no
callgroup=
callerid=device
busydetect=no
busycount=7
accountcode=
channel=>3



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.