[asterisk-commits] rmudgett: branch 10 r368568 - in /branches/10: ./ main/features.c

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


Author: rmudgett
Date: Tue Jun  5 20:10:10 2012
New Revision: 368568

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368568
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
........

Merged revisions 368567 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/main/features.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/main/features.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/features.c?view=diff&rev=368568&r1=368567&r2=368568
==============================================================================
--- branches/10/main/features.c (original)
+++ branches/10/main/features.c Tue Jun  5 20:10:10 2012
@@ -5070,7 +5070,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;
@@ -5313,10 +5313,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