--- wctdm24xxp.h	2008-03-27 22:17:46.000000000 +0100
+++ wctdm24xxp.h-mod	2008-05-03 10:59:50.000000000 +0200
@@ -179,6 +179,13 @@
 	BATTERY_LOST,
 };
 
+enum cid_hook_state {
+        CID_STATE_IDLE = 0,
+        CID_STATE_RING_ON,
+        CID_STATE_RING_OFF,
+        CID_STATE_WAIT_RING_FINISH
+};
+
 struct wctdm {
 	char *variety;
 	char board_name[80];
@@ -266,6 +273,12 @@
 	struct voicebus *vb;
 	struct zt_chan chans[NUM_CARDS];
 	int initialized;
+
+	int max_cards;
+        char *cid_history_buf[NUM_CARDS];
+        int      cid_history_ptr[NUM_CARDS];
+        int  cid_history_clone_cnt[NUM_CARDS];
+        enum cid_hook_state cid_state[NUM_CARDS];
 };
 
 
