diff options
-rw-r--r-- | main/features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index 283c1805f..9dda36de6 100644 --- a/main/features.c +++ b/main/features.c @@ -648,7 +648,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)) { orig_chan_name = ast_strdupa(peer->name); } |