diff options
author | Doug Bailey <dbailey@digium.com> | 2009-09-03 19:40:37 +0000 |
---|---|---|
committer | Doug Bailey <dbailey@digium.com> | 2009-09-03 19:40:37 +0000 |
commit | 8430c87faa75061e453e511a2286c0f521807529 (patch) | |
tree | 62d0b8b63640906ae24ee935eab37f1171d7e12a /channels/sig_analog.h | |
parent | 148552de240c2507c1a9732c15615e5a8a93f295 (diff) |
Added detection DTMF CID without polarity change alert.
Added detection of DTMF tone energy levels on FXO channels in chan_dahdi
monitoring loop so DTMF CID can be detected without the need of a polarity
change precursor.
(closes issue #9096)
Reported by: fleed
Patches:
9096-chan_dahdi-trunk.diff uploaded by dbailey (license 819)
Tested by: cyberplant, sum, maturs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@216094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sig_analog.h')
-rw-r--r-- | channels/sig_analog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/sig_analog.h b/channels/sig_analog.h index 381655021..b937ec665 100644 --- a/channels/sig_analog.h +++ b/channels/sig_analog.h @@ -80,6 +80,7 @@ enum analog_event { ANALOG_EVENT_ERROR, ANALOG_EVENT_NEONMWI_ACTIVE, ANALOG_EVENT_NEONMWI_INACTIVE, + ANALOG_EVENT_DTMFCID, }; enum analog_sub { @@ -97,6 +98,7 @@ enum analog_cid_start { ANALOG_CID_START_POLARITY = 1, ANALOG_CID_START_POLARITY_IN, ANALOG_CID_START_RING, + ANALOG_CID_START_DTMF_NOALERT, }; #define ANALOG_MAX_CID 300 @@ -187,6 +189,7 @@ struct analog_callback { void (* const decrease_ss_count)(void); int (* const distinctive_ring)(struct ast_channel *chan, void *pvt, int idx, int *ringdata); + /* Sets the specified sub-channel in and out of signed linear mode, returns the value that was overwritten */ int (* const set_linear_mode)(void *pvt, int idx, int linear_mode); void (* const get_and_handle_alarms)(void *pvt); void * (* const get_sigpvt_bridged_channel)(struct ast_channel *chan); |