aboutsummaryrefslogtreecommitdiffstats
path: root/main/features.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/features.c')
-rw-r--r--main/features.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c
index 7f8b78ca0..ce07dfa24 100644
--- a/main/features.c
+++ b/main/features.c
@@ -756,7 +756,8 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
}
if ((args->pu = park_space_reserve(rchan, peer, args)) == NULL) {
- ast_stream_and_wait(peer, "beeperr", "");
+ if (peer)
+ ast_stream_and_wait(peer, "beeperr", "");
return AST_FEATURE_RETURN_PARKFAILED;
}