Make sure chan_iax.c and chan_iax2.c know the size of G726 frames
authorJames Golovich <james@gnuinter.net>
Sun, 7 Mar 2004 22:57:00 +0000 (22:57 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 7 Mar 2004 22:57:00 +0000 (22:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2364 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.c

index 2745537..ce08970 100755 (executable)
@@ -682,6 +682,7 @@ static int get_samples(struct ast_frame *f)
                samples = f->datalen;
                break;
        case AST_FORMAT_ADPCM:
+       case AST_FORMAT_G726:
                samples = f->datalen *2;
                break;
        case AST_FORMAT_SPEEX:
index d75beca..4347636 100755 (executable)
@@ -647,6 +647,7 @@ static int get_samples(struct ast_frame *f)
                samples = f->datalen;
                break;
        case AST_FORMAT_ADPCM:
+       case AST_FORMAT_G726:
                samples = f->datalen *2;
                break;
        default: