diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-10-14 22:52:42 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-10-14 22:52:42 +0000 |
commit | 2127848d6c09a59d10844c12ec2175c4c820b46d (patch) | |
tree | 377cda337ad1ec10e7af7d90bd298eccdf2d6103 /channels/chan_dahdi.h | |
parent | edb437ee6cb8d76a3791e319807a5e73cc5a9a32 (diff) |
chan_dahdi: Add config support for hwgain settings.
* Add hwtxgain and hwrxgain config options to chan_dahdi.conf with
documentation in chan_dahdi.conf.sample.
(closes issue ASTERISK-22429)
Reported by: Jaco Kroon
Patches:
jira_asterisk_22429_hwgain_trunk.patch (license #5621) patch uploaded by rmudgett
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.h')
-rw-r--r-- | channels/chan_dahdi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/channels/chan_dahdi.h b/channels/chan_dahdi.h index eb0a5fbb1..91c961910 100644 --- a/channels/chan_dahdi.h +++ b/channels/chan_dahdi.h @@ -147,6 +147,10 @@ struct dahdi_pvt { int outsigmod; /*!< Outbound Signalling style (modifier) */ int oprmode; /*!< "Operator Services" mode */ struct dahdi_pvt *oprpeer; /*!< "Operator Services" peer tech_pvt ptr */ + /*! \brief Hardware Rx gain set by chan_dahdi.conf */ + float hwrxgain; + /*! \brief Hardware Tx gain set by chan_dahdi.conf */ + float hwtxgain; /*! \brief Amount of gain to increase during caller id */ float cid_rxgain; /*! \brief Software Rx gain set by chan_dahdi.conf */ @@ -402,6 +406,10 @@ struct dahdi_pvt { * \note Applies to all channels */ unsigned int manages_span_alarms:1; + /*! \brief TRUE if hardware Rx gain set by Asterisk */ + unsigned int hwrxgain_enabled; + /*! \brief TRUE if hardware Tx gain set by Asterisk */ + unsigned int hwtxgain_enabled; #if defined(HAVE_PRI) struct sig_pri_span *pri; |