Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482958 - net-misc/asterisk-* misleading Gains display from dahdi show channel X
Summary: net-misc/asterisk-* misleading Gains display from dahdi show channel X
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Tony Vroon (RETIRED)
URL: https://issues.asterisk.org/jira/brow...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-29 19:43 UTC by Jaco Kroon
Modified: 2018-06-08 08:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
asterisk-11.5.0-dahdi_gain_display.diff (asterisk-11.5.0-dahdi_gain_display.diff,1.67 KB, patch)
2013-08-29 19:45 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2013-08-29 19:43:06 UTC
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
Comment 1 Jaco Kroon 2013-08-29 19:45:59 UTC
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.
Comment 2 Jaco Kroon 2017-11-06 10:19:23 UTC
Tony,

I think we can close this?
Comment 3 Jaco Kroon 2018-06-08 08:53:49 UTC
No longer care.