Make sure chan_iax.c and chan_iax2.c know the size of G726 frames
[asterisk/asterisk.git] / channels / chan_iax.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:
                samples = f->datalen;
                break;
        case AST_FORMAT_ADPCM:
+       case AST_FORMAT_G726:
                samples = f->datalen *2;
                break;
        case AST_FORMAT_SPEEX:
                samples = f->datalen *2;
                break;
        case AST_FORMAT_SPEEX: