#include <epan/conversation.h> not req'd ...
[obnox/wireshark/wip.git] / gtk / t38_analysis.c
1 /* t38_analysis.c
2  * T.38 fax analysis for Wireshark
3  *
4  * $Id$
5  *
6  * Copyright 2005 Verso Technologies Inc.
7  * By Alejandro Vaquero <alejandro.vaquero@verso.com>
8  *
9  *
10  * Wireshark - Network traffic analyzer
11  * By Gerald Combs <gerald@wireshark.org>
12  * Copyright 1998 Gerald Combs
13  *
14  * This program is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU General Public License
16  * as published by the Free Software Foundation; either version 2
17  * of the License, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to the Free Software
26  * Foundation,  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
27  */
28
29 #ifdef HAVE_CONFIG_H
30 # include "config.h"
31 #endif
32 #include <string.h>
33
34 #include <epan/epan.h>
35 #include <epan/packet.h>
36 #include <epan/tap.h>
37 #include <epan/epan_dissect.h>
38 #include <epan/dissectors/packet-t38.h>
39 #include <epan/dissectors/packet-rtp.h>
40 #include <epan/stat_cmd_args.h>
41
42 #include "../globals.h"
43 #include "../stat_menu.h"
44 #include "../alert_box.h"
45 #include "../simple_dialog.h"
46
47 #include "gtk/graph_analysis.h"
48 #include "gtk/main.h"
49 #include "gtk/gui_stat_menu.h"
50
51
52 void voip_calls_init_tap(const char *); 
53
54 /****************************************************************************/
55 /* user confirmed the info dialog */
56 /* callback from dialog */
57 static void t38_analysis_answered_cb(gpointer dialog _U_, gint btn _U_, gpointer data _U_)
58 {
59         voip_calls_init_tap("");
60 }
61
62 /****************************************************************************/
63 /* entry point from main menu */
64 static void t38_analysis_cb(GtkWidget *w _U_, gpointer data _U_) 
65 {
66         gpointer dialog;
67
68         /* We have moved this directly to the VoIP Calls */
69         dialog = simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
70                 "This feature has been moved to the \"VoIP Calls\"");
71         simple_dialog_set_cb(dialog, t38_analysis_answered_cb, NULL);
72 }
73
74 /****************************************************************************/
75 static void
76 t38_analysis_init(const char *dummy _U_, void* userdata _U_)
77 {
78         t38_analysis_cb(NULL, NULL);
79 }
80
81 /****************************************************************************/
82 void
83 register_tap_listener_t38_analysis(void)
84 {
85         register_stat_cmd_arg("t38", t38_analysis_init,NULL);
86
87
88         register_stat_menu_item("Fax T38 Analysis...", REGISTER_STAT_GROUP_TELEPHONY,
89             t38_analysis_cb, NULL, NULL, NULL);
90 }