[H248 3GPP] Add dissection of IP transport package.
[metze/wireshark/wip.git] / ui / voip_calls.h
index dbc26d05154e06e91fc24f80c7f79d14b3250efd..193d0dd6c775dc7d4133b74033ed26dd25cfda24 100644 (file)
@@ -189,8 +189,8 @@ typedef struct _voip_calls_tapinfo {
     tap_draw_cb           tap_draw; /**< tap draw callback */
     void                 *tap_data; /**< data for tap callbacks */
     int                   ncalls; /**< number of call */
-    GQueue*               callsinfos; /**< queue with all calls */
-    GHashTable*           callsinfo_hashtable[1]; /**< array of hashes per voip protocol; currently only the one for SIP is used */
+    GQueue*               callsinfos; /**< queue with all calls (voip_calls_info_t) */
+    GHashTable*           callsinfo_hashtable[1]; /**< array of hashes per voip protocol (voip_calls_info_t); currently only the one for SIP is used */
     int                   npackets; /**< total number of packets of all calls */
     voip_calls_info_t    *filter_calls_fwd; /**< used as filter in some tap modes */
     int                   start_packets;
@@ -219,13 +219,24 @@ typedef struct _voip_calls_tapinfo {
     guint16               h225_call_num;
     int                   h225_cstype; /* XXX actually an enum */
     gboolean              h225_is_faststart;
+    guint32               sip_frame_num;
     guint32               actrace_frame_num;
     gint32                actrace_trunk;
     gint32                actrace_direction;
     flow_show_options     fs_option;
-    gboolean              redraw;
+    guint32               redraw;
 } voip_calls_tapinfo_t;
 
+#if 0
+#define VOIP_CALLS_DEBUG(...) { \
+    char *VOIP_CALLS_DEBUG_MSG = g_strdup_printf(__VA_ARGS__); \
+    g_warning("voip_calls: %s:%d %s", G_STRFUNC, __LINE__, VOIP_CALLS_DEBUG_MSG); \
+    g_free(VOIP_CALLS_DEBUG_MSG); \
+}
+#else
+#define VOIP_CALLS_DEBUG(...)
+#endif
+
 /****************************************************************************/
 /* INTERFACE */
 
@@ -267,4 +278,3 @@ void voip_calls_reset_all_taps(voip_calls_tapinfo_t *tapinfo);
  * ex: set shiftwidth=4 tabstop=8 expandtab:
  * :indentSize=4:tabSize=8:noTabs=true:
  */
-