summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchannels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 567cf40f4..badc0287b 100755
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -3695,7 +3695,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
dcallno = ntohs(fh->dcallno) & ~IAX_FLAG_RETRANS;
/* Retrieve the type and subclass */
f.frametype = fh->type;
- if (f.frametype == AST_FRAME_VOICE) {
+ if (f.frametype == AST_FRAME_VIDEO) {
f.subclass = uncompress_subclass(fh->csub & ~0x40) | ((fh->csub & 0x40) >> 6);
} else {
f.subclass = uncompress_subclass(fh->csub);