summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2011-04-01 17:01:01 +0000
committerJonathan Rose <jrose@digium.com>2011-04-01 17:01:01 +0000
commit846cfa0ef048c6c1e0830183d1ee063b9757d53e (patch)
tree3bef2884c2ac1f145692c8b88d0ac8f1459dd479 /include
parent3731fd9ccce8d93a0bb22f8ba0db277652537335 (diff)
New Feature for chan_dahdi. 4 length pattern matching.
In chan_dahdi.conf, the user can now use length 4 patterns in addition to the usual length 2 patterns. The s ntax remains the same and the method used to track the pattern history will only change when using the length 4 patterns. (closes issue SWP-3250) Code: jrose rmudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@312384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/dsp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asterisk/dsp.h b/include/asterisk/dsp.h
index bea0e6f5e..10ada9955 100644
--- a/include/asterisk/dsp.h
+++ b/include/asterisk/dsp.h
@@ -59,6 +59,13 @@
struct ast_dsp;
+struct ast_dsp_busy_pattern {
+ /*! Number of elements. */
+ int length;
+ /*! Pattern elements in on/off time durations. */
+ int pattern[4];
+};
+
enum threshold {
/* Array offsets */
THRESHOLD_SILENCE = 0,
@@ -76,7 +83,7 @@ void ast_dsp_set_threshold(struct ast_dsp *dsp, int threshold);
void ast_dsp_set_busy_count(struct ast_dsp *dsp, int cadences);
/*! \brief Set expected lengths of the busy tone */
-void ast_dsp_set_busy_pattern(struct ast_dsp *dsp, int tonelength, int quietlength);
+void ast_dsp_set_busy_pattern(struct ast_dsp *dsp, const struct ast_dsp_busy_pattern *cadence);
/*! \brief Scans for progress indication in audio */
int ast_dsp_call_progress(struct ast_dsp *dsp, struct ast_frame *inf);