Make chan_iax2 reject cause code indications correctly
authorKinsey Moore <kmoore@digium.com>
Mon, 21 May 2012 20:35:58 +0000 (20:35 +0000)
committerKinsey Moore <kmoore@digium.com>
Mon, 21 May 2012 20:35:58 +0000 (20:35 +0000)
If chan_iax2 does not reject the PVT_CAUSE_CODE frames, the cause will not be
stored properly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@367189 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 3b2d8cc..c88cd4d 100644 (file)
@@ -5671,7 +5671,7 @@ static int iax2_indicate(struct ast_channel *c, int condition, const void *data,
                break;
        case AST_CONTROL_PVT_CAUSE_CODE:
                res = -1;
-               break;
+               goto done;
        }
 
        res = send_command(pvt, AST_FRAME_CONTROL, condition, 0, data, datalen, -1);