summaryrefslogtreecommitdiff
path: root/main/bridge_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/bridge_channel.c')
-rw-r--r--main/bridge_channel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/bridge_channel.c b/main/bridge_channel.c
index 4e1377558..0948928ea 100644
--- a/main/bridge_channel.c
+++ b/main/bridge_channel.c
@@ -1477,11 +1477,16 @@ static void testsuite_notify_feature_success(struct ast_channel *chan, const cha
feature = "automixmon";
} else if (!strcmp(dtmf, featuremap->parkcall)) {
feature = "parkcall";
- } else if (!strcmp(dtmf, xfer->atxferthreeway)) {
+ }
+ } else if (xfer) {
+ if (!strcmp(dtmf, xfer->atxferthreeway)) {
feature = "atxferthreeway";
}
}
+ ao2_cleanup(featuremap);
+ ao2_cleanup(xfer);
+
ast_test_suite_event_notify("FEATURE_DETECTION",
"Result: success\r\n"
"Feature: %s", feature);