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/branches/1.4@175187
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int park_status;
if ((pu = park_space_reserve(rchan)) == NULL) {
- ast_stream_and_wait(peer, "beeperr", peer->language, "");
+ if (peer)
+ ast_stream_and_wait(peer, "beeperr", peer->language, "");
return FEATURE_RETURN_PARKFAILED;
}