[asterisk-commits] kmoore: trunk r369061 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 18 17:56:05 CDT 2012


Author: kmoore
Date: Mon Jun 18 17:56:01 2012
New Revision: 369061

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369061
Log:
Fix AST_CONTROL_PVT_CAUSE_CODE handling

When the IAX2 Who Hung Up? changes were added, they uncovered a bug in
the way AST_CONTROL_PVT_CAUSE_CODE was handled in
feature_request_and_dial().  This particular frame subtype was being
treated like more terminal control frames causing the function to be
exited prematurely.

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=369061&r1=369060&r2=369061
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Mon Jun 18 17:56:01 2012
@@ -3939,8 +3939,6 @@
 					break;
 				} else if (f->subclass.integer == AST_CONTROL_PVT_CAUSE_CODE) {
 					ast_indicate_data(caller, AST_CONTROL_PVT_CAUSE_CODE, f->data.ptr, f->datalen);
-					ast_frfree(f);
-					break;
 				} else if (f->subclass.integer == AST_CONTROL_CONNECTED_LINE) {
 					if (caller_hungup) {
 						struct ast_party_connected_line connected;




More information about the asterisk-commits mailing list