[Asterisk-cvs] asterisk/include/asterisk dsp.h,1.5,1.6

markster at lists.digium.com markster at lists.digium.com
Wed Nov 17 00:54:54 CST 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20289/include/asterisk

Modified Files:
	dsp.h 
Log Message:
Expose tone state and threshold (bug #2830)


Index: dsp.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/dsp.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- dsp.h	15 Nov 2004 00:48:36 -0000	1.5
+++ dsp.h	17 Nov 2004 05:55:26 -0000	1.6
@@ -33,6 +33,15 @@
 #define DSP_PROGRESS_CONGESTION		(1 << 19)		/* Enable congestion tone detection */
 #define DSP_FEATURE_CALL_PROGRESS	(DSP_PROGRESS_TALK | DSP_PROGRESS_RINGING | DSP_PROGRESS_BUSY | DSP_PROGRESS_CONGESTION)
 
+#define DSP_TONE_STATE_SILENCE  0
+#define DSP_TONE_STATE_RINGING  1 
+#define DSP_TONE_STATE_DIALTONE 2
+#define DSP_TONE_STATE_TALKING  3
+#define DSP_TONE_STATE_BUSY     4
+#define DSP_TONE_STATE_SPECIAL1	5
+#define DSP_TONE_STATE_SPECIAL2 6
+#define DSP_TONE_STATE_SPECIAL3 7
+
 struct ast_dsp;
 
 struct ast_dsp *ast_dsp_new(void);
@@ -79,4 +88,9 @@
 /* Set digit mode */
 int ast_dsp_digitmode(struct ast_dsp *dsp, int digitmode);
 
+/* Get tstate (Tone State) */
+int ast_dsp_get_tstate(struct ast_dsp *dsp);
+
+/* Get tcount (Threshold counter) */
+int ast_dsp_get_tcount(struct ast_dsp *dsp);
 #endif




More information about the svn-commits mailing list