Handle speex under most circumstances
authorMark Spencer <markster@digium.com>
Tue, 29 Jul 2003 19:51:11 +0000 (19:51 +0000)
committerMark Spencer <markster@digium.com>
Tue, 29 Jul 2003 19:51:11 +0000 (19:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1237 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 3c0f3e6..972aa1d 100755 (executable)
@@ -573,6 +573,9 @@ static int get_samples(struct ast_frame *f)
 {
        int samples=0;
        switch(f->subclass) {
+       case AST_FORMAT_SPEEX:
+               samples = 160;  /* XXX Not necessarily true XXX */
+               break;
        case AST_FORMAT_G723_1:
                samples = 240 /* XXX Not necessarily true XXX */;
                break;