diff options
author | Jeff Peeler <jpeeler@digium.com> | 2009-02-12 18:00:11 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2009-02-12 18:00:11 +0000 |
commit | 66e88633a5f839964508adbac16ab8975b06be7f (patch) | |
tree | f59123f0e0ba4e0e025ed26e7fdec0fdc4a00f34 /main/features.c | |
parent | 53f3ab973ea1eab6b1ac27d233a5e045df887582 (diff) |
Merged revisions 175187 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r175187 | jpeeler | 2009-02-12 11:57:10 -0600 (Thu, 12 Feb 2009) | 6 lines
Fix crash in event of failed attempt to transfer to parking
The peer may not necessarily exist, such as in the case of a transfer to
ParkAndAnnounce. In this case don't try to play a sound to it.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@175188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index 1d9de65df..910570a28 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; } |