diff options
author | lroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-20 15:53:11 +0000 |
---|---|---|
committer | lroland <lroland@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-20 15:53:11 +0000 |
commit | 7be7a16617891628f62317feedbd374af091bdc5 (patch) | |
tree | 586b38b0e155434aef2d602a4cb8072d5e858cb6 /gtk/voip_calls_dlg.c | |
parent | a123a2384bcee4d15ca113b1fb1fc7ec4403ae06 (diff) |
Don't register mgcp taps,
when we haven't loaded the mgcp plugin.
and
From Alejandro Vaquero:
mgcp support for the voip call analysis tap
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13447 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/voip_calls_dlg.c')
-rw-r--r-- | gtk/voip_calls_dlg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/voip_calls_dlg.c b/gtk/voip_calls_dlg.c index c2fe98aeeb..c7c140fc61 100644 --- a/gtk/voip_calls_dlg.c +++ b/gtk/voip_calls_dlg.c @@ -49,6 +49,7 @@ #include "globals.h" #include "epan/filesystem.h" +#include <epan/tap.h> #include "tap_menu.h" #include "dlg_utils.h" #include "ui_util.h" @@ -173,6 +174,9 @@ void voip_calls_remove_tap_listener() remove_tap_listener_q931_calls(); remove_tap_listener_sdp_calls(); remove_tap_listener_rtp(); + if (find_tap_id("mgcp")) { + remove_tap_listener_mgcp_calls(); + } } /****************************************************************************/ @@ -672,6 +676,10 @@ voip_calls_init_tap(char *dummy _U_) q931_calls_init_tap(); sdp_calls_init_tap(); rtp_init_tap(); + /* We don't register this tap, if we don't have the mgcp plugin loaded.*/ + if (find_tap_id("mgcp")) { + mgcp_calls_init_tap(); + } /* init the Graph Analysys */ graph_analysis_data = graph_analysis_init(); |