Detect frame length of G.729A
authorMark Spencer <markster@digium.com>
Wed, 16 Apr 2003 22:26:03 +0000 (22:26 +0000)
committerMark Spencer <markster@digium.com>
Wed, 16 Apr 2003 22:26:03 +0000 (22:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index eec8d0e..d7dcd47 100755 (executable)
@@ -544,6 +544,9 @@ static int get_samples(struct ast_frame *f)
        case AST_FORMAT_GSM:
                samples = 160 * (f->datalen / 33);
                break;
+       case AST_FORMAT_G729A:
+               samples = 160 * (f->datalen / 20);
+               break;
        case AST_FORMAT_SLINEAR:
                samples = f->datalen / 2;
                break;