mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
fixes iax "can't compress subclass 4294967295" error
(closes issue #16456) Reported by: dvossel Tested by: dvossel git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6248,10 +6248,15 @@ static int iax2_send(struct chan_iax2_pvt *pvt, struct ast_frame *f, unsigned in
|
||||
if (!transfer)
|
||||
pvt->aseqno = fr->iseqno;
|
||||
fh->type = fr->af.frametype & 0xFF;
|
||||
if (fr->af.frametype == AST_FRAME_VIDEO)
|
||||
|
||||
if (fr->af.frametype == AST_FRAME_VIDEO) {
|
||||
fh->csub = compress_subclass(fr->af.subclass.codec & ~0x1LL) | ((fr->af.subclass.codec & 0x1LL) << 6);
|
||||
else
|
||||
} else if (fr->af.frametype == AST_FRAME_VOICE) {
|
||||
fh->csub = compress_subclass(fr->af.subclass.codec);
|
||||
} else {
|
||||
fh->csub = compress_subclass(fr->af.subclass.integer);
|
||||
}
|
||||
|
||||
if (transfer) {
|
||||
fr->dcallno = pvt->transfercallno;
|
||||
} else
|
||||
|
Reference in New Issue
Block a user