2 * T.38 fax analysis for Wireshark
6 * Copyright 2005 Verso Technologies Inc.
7 * By Alejandro Vaquero <alejandro.vaquero@verso.com>
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
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.
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.
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.
34 #include <epan/epan.h>
35 #include <epan/packet.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>
42 #include "../globals.h"
43 #include "../stat_menu.h"
44 #include "../alert_box.h"
45 #include "../simple_dialog.h"
47 #include "gtk/graph_analysis.h"
49 #include "gtk/gui_stat_menu.h"
52 void voip_calls_init_tap(const char *);
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_)
59 voip_calls_init_tap("");
62 /****************************************************************************/
63 /* entry point from main menu */
64 static void t38_analysis_cb(GtkWidget *w _U_, gpointer data _U_)
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);
74 /****************************************************************************/
76 t38_analysis_init(const char *dummy _U_, void* userdata _U_)
78 t38_analysis_cb(NULL, NULL);
81 /****************************************************************************/
83 register_tap_listener_t38_analysis(void)
85 register_stat_cmd_arg("t38", t38_analysis_init,NULL);
88 register_stat_menu_item("Fax T38 Analysis...", REGISTER_STAT_GROUP_TELEPHONY,
89 t38_analysis_cb, NULL, NULL, NULL);