Detect frame length of G.729A
[asterisk/asterisk.git] / 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;