Make IAX know about iLBC
authorMark Spencer <markster@digium.com>
Wed, 16 Apr 2003 02:49:20 +0000 (02:49 +0000)
committerMark Spencer <markster@digium.com>
Wed, 16 Apr 2003 02:49:20 +0000 (02:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@857 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c

index 894aa67..deb739b 100755 (executable)
@@ -637,6 +637,9 @@ static int get_samples(struct ast_frame *f)
        case AST_FORMAT_GSM:
                samples = 160 * (f->datalen / 33);
                break;
+       case AST_FORMAT_ILBC:
+               samples = 240 * (f->datalen / 52);
+               break;
        case AST_FORMAT_SLINEAR:
                samples = f->datalen / 2;
                break;