diff options
author | Lars Roland <Lars.Roland@gmx.net> | 2005-02-20 15:53:11 +0000 |
---|---|---|
committer | Lars Roland <Lars.Roland@gmx.net> | 2005-02-20 15:53:11 +0000 |
commit | b65e9739d29e6ccaba833986088f10d32405475d (patch) | |
tree | 586b38b0e155434aef2d602a4cb8072d5e858cb6 /tap-mgcpstat.c | |
parent | a177b7a4cc593a7655c8a9bc23ced7ac68cf2b6d (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
svn path=/trunk/; revision=13447
Diffstat (limited to 'tap-mgcpstat.c')
-rw-r--r-- | tap-mgcpstat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tap-mgcpstat.c b/tap-mgcpstat.c index 0426a3e264..f8b92b6192 100644 --- a/tap-mgcpstat.c +++ b/tap-mgcpstat.c @@ -233,6 +233,9 @@ mgcpstat_init(char *optarg) void register_tap_listener_mgcpstat(void) { - register_ethereal_tap("mgcp,rtd", mgcpstat_init); + /* We don't register this tap, if we don't have the mgcp plugin loaded.*/ + if (find_tap_id("mgcp")) { + register_ethereal_tap("mgcp,rtd", mgcpstat_init); + } } |