mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
Merged revisions 175188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r175188 | jpeeler | 2009-02-12 12:00:11 -0600 (Thu, 12 Feb 2009) | 12 lines 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/branches/1.6.0@175189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -614,6 +614,7 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i
|
|||||||
int park_status;
|
int park_status;
|
||||||
|
|
||||||
if ((pu = park_space_reserve(rchan)) == NULL) {
|
if ((pu = park_space_reserve(rchan)) == NULL) {
|
||||||
|
if (peer)
|
||||||
ast_stream_and_wait(peer, "beeperr", "");
|
ast_stream_and_wait(peer, "beeperr", "");
|
||||||
return FEATURE_RETURN_PARKFAILED;
|
return FEATURE_RETURN_PARKFAILED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user