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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@367189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kinsey Moore
2012-05-21 20:35:58 +00:00
parent 8b1193087e
commit ab4c9f2247

View 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);