diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 17:57:10 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-12 17:57:10 +0000 |
commit | 4e856bab6545794cb1d645351906cd9554bb8687 (patch) | |
tree | 4a24ec10823da553ff58f9aa336bc7ff7bee6099 /res | |
parent | 4ae6029018d87aafd95f1bd55e55e54ca2544cb5 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@175187 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index 2161f2446..317b99b5f 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -555,7 +555,8 @@ static int masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, i 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; } |