diff options
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); + } } |