[Asterisk-video] codec_amr installation problems

aster vdo astervdo at gmail.com
Wed Aug 4 15:33:15 CDT 2010


Hi,

I am having problem installing amr codec under Centos 5 x86_64 version.

my version of asterisk is 1.4.24

when i start asterisk it ends as follows

Parsing '/etc/asterisk/codecs.conf': Found
    -- codec_amr: parsing codecs.conf
    -- codec_amr: set octed-aligned mode to 1
    -- codec_amr: set dtx mode to 0
    -- codec_amr: AMR mode set to MR122 (7)
codec_amr: enc_mode = 7, dtx = 0
Segmentation fault (core dumped)

i tried the following patch posted in the list by Klaus,

--- typedef.h.orig 2004-03-05 00:00:02.000000000 +0100
+++ typedef.h 2008-09-24 19:34:49.813538000 +0200
 @@ -12,10 +12,12 @@

#ifndef _TYPEDEF_H
#define _TYPEDEF_H

-typedef char Word8;
-typedef unsigned char UWord8;
-typedef short Word16;
-typedef long Word32;
+#include <stdint.h>
+
+typedef int8_t Word8;
+typedef uint8_t UWord8;
+typedef int16_t Word16;
+typedef int32_t Word32;
typedef float Float32;
typedef double Float64;



but it did not work here.

the back trace is as follows


#0  Lsf_lsp (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0,
pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX,
mode=MR475,
    parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at
sp_dec.c:567
567           tmp = ( ( cos_table[ind+1]-cos_table[ind] )*offset ) << 1;
(gdb) bt
#0  Lsf_lsp (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0,
pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX,
mode=MR475,
    parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at
sp_dec.c:567
#1  dtx_dec (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0,
pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX,
mode=MR475,
    parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at
sp_dec.c:1734
#2  0x00002aaab4a32fc7 in Decoder_amr (st=0x1f0c7f80, mode=MR475,
parm=<value optimized out>, frame_type=<value optimized out>,
synth=0x7fffa236b050,
    A_t=0x7fffa236b6e0) at sp_dec.c:4654
#3  0x00002aaab4a3509a in Speech_Decode_Frame (st=0x1f08e920,
mode=2721490160, parm=0x68, frame_type=9512, synth=0x1f0c2e28) at
sp_dec.c:5676
#4  0x00002aaab4a11c75 in Decoder_Interface_Decode (st=0x1f08e960,
bits=<value optimized out>, synth=0x1f0c2e28, bfi=<value optimized out>)
    at interf_dec.c:816
#5  0x00002aaab4a109d2 in amrtolin_framein (pvt=0x1f0be820, f=<value
optimized out>) at asterisk.c:281
#6  0x00000000004a79af in framein (pvt=0x1f0be820, f=0x2aaab4c654c0) at
translate.c:201
#7  0x00000000004a8bcb in calc_cost (t=0x2aaab4c62640, seconds=1) at
translate.c:422
#8  0x00000000004a922c in __ast_register_translator (t=0x2aaab4c62640,
mod=<value optimized out>) at translate.c:731
#9  0x00002aaab4a110ba in load_module () at asterisk.c:281
#10 0x000000000046485f in load_resource (resource_name=0x1f090e90
"codec_amr.so", global_symbols_only=<value optimized out>) at loader.c:680
#11 0x00000000004650b8 in load_modules (preload_only=<value optimized out>)
at loader.c:874
#12 0x0000000000428c34 in main (argc=<value optimized out>,
argv=0x7fffa236c488) at asterisk.c:3058
#13 0x00000038a5c1d994 in __libc_start_main () from /lib64/libc.so.6
#14 0x0000000000413ab9 in pthread_attr_setdetachstate ()
#15 0x00007fffa236c478 in ?? ()
#16 0x0000000000000000 in ?? ()

rest of the apps of asterisk video works fine.

Please help.


regards
aster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-video/attachments/20100805/99507462/attachment.htm 


More information about the asterisk-video mailing list