diff options
author | jrose <jrose@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-04-01 17:01:01 +0000 |
---|---|---|
committer | jrose <jrose@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-04-01 17:01:01 +0000 |
commit | 8f809d2963d00d1f2b8496dda7a4cf12f4b15e1c (patch) | |
tree | 3bef2884c2ac1f145692c8b88d0ac8f1459dd479 /include | |
parent | c855ea7dcbea5781105a3a3226aa9af7aac1a8e6 (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: http://svn.digium.com/svn/asterisk/trunk@312384 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/dsp.h | 9 |
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); |