I think some output explains it best: # asterisk -Rx "dahdi show channel 3" | grep Gains Gains (RX/TX): 8.00/6.00 # asterisk -rx "dahdi set swgain rx 3 4.0" software rx gain set to 4.0 on channel 3 # asterisk -Rx "dahdi show channel 3" | grep Gains Gains (RX/TX): 8.00/6.00 So in spite of the gain having being modified the change is not reflected. There is also no indication whether the displayed gains is the hw or sw gains. I've written a small patch to rectify the situation and improve it somewhat: # asterisk -Rx "dahdi show channel 3" | grep Gains SW Gains (RX/TX): 8.00/6.00 HW Gains (RX/TX): 0.00/0.00 # asterisk -rx "dahdi set swgain rx 3 4.0" software rx gain set to 4.0 on channel 3 # asterisk -Rx "dahdi show channel 3" | grep Gains SW Gains (RX/TX): 4.00/6.00 HW Gains (RX/TX): 0.00/0.00 Reproducible: Always
Created attachment 357364 [details, diff] asterisk-11.5.0-dahdi_gain_display.diff Tony - the patch is 100 % correct in what it aims to correct, however, there are still some issues as per the upstream bug report. Just lodging this here so long that we can get the patch in with the next update of the asterisk gentoo patch set, but I think there is more to be done on this one still.
Tony, I think we can close this?
No longer care.