Merged revisions 238834 via svnmerge from
[asterisk/asterisk.git] / main / features.c
index 423ff27..3f20080 100644 (file)
@@ -991,7 +991,7 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
                peer = chan;
        }
 
-       if (!play_announcement && args == &park_args) {
+       if (peer && (!play_announcement && args == &park_args)) {
                args->orig_chan_name = ast_strdupa(peer->name);
        }