summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 3096d1656..1fdec4ed3 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -403,9 +403,13 @@ struct ast_channel {
unsigned long insmpl;
unsigned long outsmpl;
- /* Frames in/out counters */
+ /* Frames in/out counters. The high bit is a debug mask, so
+ * the counter is only in the remaining bits
+ */
unsigned int fin;
unsigned int fout;
+#define DEBUGCHAN_FLAG 0x80000000
+#define FRAMECOUNT_INC(x) ( ((x) & DEBUGCHAN_FLAG) | ((x++) & ~DEBUGCHAN_FLAG) )
/* Why is the channel hanged up */
int hangupcause;