[svn-commits] jpeeler: branch 1.4 r147941 - /branches/1.4/res/res_features.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Oct 9 13:56:01 CDT 2008
Author: jpeeler
Date: Thu Oct 9 13:56:00 2008
New Revision: 147941
URL: http://svn.digium.com/view/asterisk?view=rev&rev=147941
Log:
(closes issue #13139)
Reported by: krisk84
Tested by: krisk84
This change prevents a call that is placed in the parkinglot to be picked up before the PBX is finished. If another extension dials the parking extension before the PBX thread has completed at minimum warnings will occur about the PBX not properly being terminated. At worse, a crash could occur.
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=147941&r1=147940&r2=147941
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Thu Oct 9 13:56:00 2008
@@ -2104,6 +2104,11 @@
pu = parkinglot;
while(pu) {
if (pu->parkingnum == park) {
+ if (pu->chan->pbx) { /* do not allow call to be picked up until the PBX thread is finished */
+ ast_mutex_unlock(&parking_lock);
+ ast_module_user_remove(u);
+ return -1;
+ }
if (pl)
pl->next = pu->next;
else
More information about the svn-commits
mailing list