[asterisk-commits] jpeeler: branch 1.4 r175187 - /branches/1.4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Feb 12 11:57:11 CST 2009
Author: jpeeler
Date: Thu Feb 12 11:57:10 2009
New Revision: 175187
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=175187
Log:
Fix crash in event of failed attempt to transfer to parking
The peer is not going to exist during a transfer, so don't try to play a sound
to it.
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=175187&r1=175186&r2=175187
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Thu Feb 12 11:57:10 2009
@@ -555,7 +555,8 @@
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;
}
More information about the asterisk-commits
mailing list