diff --git a/main/features.c b/main/features.c index 94161626e0..b1b6e84091 100644 --- a/main/features.c +++ b/main/features.c @@ -614,7 +614,8 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i int park_status; if ((pu = park_space_reserve(rchan)) == NULL) { - ast_stream_and_wait(peer, "beeperr", ""); + if (peer) + ast_stream_and_wait(peer, "beeperr", ""); return FEATURE_RETURN_PARKFAILED; }