[asterisk-commits] kmoore: trunk r367189 - /trunk/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 21 15:36:04 CDT 2012


Author: kmoore
Date: Mon May 21 15:35:58 2012
New Revision: 367189

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=367189
Log:
Make chan_iax2 reject cause code indications correctly

If chan_iax2 does not reject the PVT_CAUSE_CODE frames, the cause will not be
stored properly.

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=367189&r1=367188&r2=367189
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Mon May 21 15:35:58 2012
@@ -5671,7 +5671,7 @@
 		break;
 	case AST_CONTROL_PVT_CAUSE_CODE:
 		res = -1;
-		break;
+		goto done;
 	}
 
 	res = send_command(pvt, AST_FRAME_CONTROL, condition, 0, data, datalen, -1);




More information about the asterisk-commits mailing list