aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index c74c87236..e5a6179e4 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -590,7 +590,7 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
peer = chan;
}
- if (!play_announcement || !orig_chan_name) {
+ if (peer && (!play_announcement || !orig_chan_name)) {
/* chan is the channel being parked, peer is the effective park-er */
orig_chan_name = ast_strdupa(peer->name);
}