diff --git a/main/features.c b/main/features.c index 1d9de65df5..910570a283 100644 --- a/main/features.c +++ b/main/features.c @@ -823,7 +823,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; }