[asterisk-commits] dvossel: trunk r271831 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 22 10:46:27 CDT 2010


Author: dvossel
Date: Tue Jun 22 10:46:22 2010
New Revision: 271831

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=271831
Log:
fixes attended transfer behavior when both transferee and transferer hung up

If both the transferer and transferee of a attended transfer hangup before
the new channel picks up, the new channel should be hung up as well as it
has no endpoint to talk to.  This mirrors the expected behavior used in 1.4. 

(closes issue #17444)
Reported by: corruptor


Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=271831&r1=271830&r2=271831
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Tue Jun 22 10:46:22 2010
@@ -2117,6 +2117,11 @@
 	} else {
 		/* Transferee hung up */
 		finishup(transferee);
+		/* At this point both the transferer transferee have hungup,
+		 * so if newchan is up, hang it up as it has no one to talk to */
+		if (newchan) {
+			ast_hangup(newchan);
+		}
 		return -1;
 	}
 }




More information about the asterisk-commits mailing list