[asterisk-commits] rmudgett: branch 1.8 r368567 - /branches/1.8/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 5 20:08:33 CDT 2012


Author: rmudgett
Date: Tue Jun  5 20:08:29 2012
New Revision: 368567

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368567
Log:
Fix parked call performing a DTMF blind transfer after being retrieved.

When a parked call was retrieved from the parking lot, it could not do a
blind transfer because it caused the involved calls to be hung up
unconditionally.

* Made the ParkedCall application return the ast_bridge_call() return
value.

(closes issue ABE-2862)
Reported by: Vlad Povorozniuc

Modified:
    branches/1.8/main/features.c

Modified: branches/1.8/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/features.c?view=diff&rev=368567&r1=368566&r2=368567
==============================================================================
--- branches/1.8/main/features.c (original)
+++ branches/1.8/main/features.c Tue Jun  5 20:08:29 2012
@@ -5055,7 +5055,7 @@
 /*! \brief Pickup parked call */
 static int parked_call_exec(struct ast_channel *chan, const char *data)
 {
-	int res = 0;
+	int res;
 	struct ast_channel *peer = NULL;
 	struct parkeduser *pu;
 	struct ast_context *con;
@@ -5298,10 +5298,11 @@
 		}
 		ast_verb(3, "Channel %s tried to retrieve nonexistent parked call %d\n",
 			chan->name, park);
+		res = -1;
 	}
 
 	parkinglot_unref(parkinglot);
-	return -1;
+	return res;
 }
 
 /*!




More information about the asterisk-commits mailing list