Hi,<br><br>I am having problem installing amr codec under Centos 5 x86_64 version.<br><br>my version of asterisk is 1.4.24<br><br>when i start asterisk it ends as follows<br><br>Parsing '/etc/asterisk/codecs.conf': Found<br>
-- codec_amr: parsing codecs.conf<br> -- codec_amr: set octed-aligned mode to 1<br> -- codec_amr: set dtx mode to 0<br> -- codec_amr: AMR mode set to MR122 (7)<br>codec_amr: enc_mode = 7, dtx = 0<br>Segmentation fault (core dumped)<br>
<br>i tried the following patch posted in the list by Klaus, <br><br>--- typedef.h.orig 2004-03-05 00:00:02.000000000 +0100<br>+++ typedef.h 2008-09-24 19:34:49.813538000 +0200<br> @@ -12,10 +12,12 @@<br><br>#ifndef _TYPEDEF_H<br>
#define _TYPEDEF_H<br><br>-typedef char Word8;<br>-typedef unsigned char UWord8;<br>-typedef short Word16;<br>-typedef long Word32;<br>+#include <stdint.h><br>+<br>+typedef int8_t Word8;<br>+typedef uint8_t UWord8;<br>
+typedef int16_t Word16;<br>+typedef int32_t Word32;<br>typedef float Float32;<br>typedef double Float64;<br><br><br><br>but it did not work here.<br><br>the back trace is as follows<br><br><br><span style="color: rgb(51, 51, 255);">#0 Lsf_lsp (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0, pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX, mode=MR475,</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at sp_dec.c:567</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">567 tmp = ( ( cos_table[ind+1]-cos_table[ind] )*offset ) << 1;</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">(gdb) bt</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#0 Lsf_lsp (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0, pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX, mode=MR475,</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at sp_dec.c:567</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#1 dtx_dec (st=0x1f0c8750, mem_syn=0x1f0c85e8, lsfState=0x1f0aeca0, pred_state=<value optimized out>, averState=0x1f0aedd0, new_state=DTX, mode=MR475,</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> parm=0x7fffa236b9f0, synth=0x7fffa236b050, A_t=0x7fffa236b6e0) at sp_dec.c:1734</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#2 0x00002aaab4a32fc7 in Decoder_amr (st=0x1f0c7f80, mode=MR475, parm=<value optimized out>, frame_type=<value optimized out>, synth=0x7fffa236b050,</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> A_t=0x7fffa236b6e0) at sp_dec.c:4654</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#3 0x00002aaab4a3509a in Speech_Decode_Frame (st=0x1f08e920, mode=2721490160, parm=0x68, frame_type=9512, synth=0x1f0c2e28) at sp_dec.c:5676</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#4 0x00002aaab4a11c75 in Decoder_Interface_Decode (st=0x1f08e960, bits=<value optimized out>, synth=0x1f0c2e28, bfi=<value optimized out>)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> at interf_dec.c:816</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#5 0x00002aaab4a109d2 in amrtolin_framein (pvt=0x1f0be820, f=<value optimized out>) at asterisk.c:281</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#6 0x00000000004a79af in framein (pvt=0x1f0be820, f=0x2aaab4c654c0) at translate.c:201</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#7 0x00000000004a8bcb in calc_cost (t=0x2aaab4c62640, seconds=1) at translate.c:422</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#8 0x00000000004a922c in __ast_register_translator (t=0x2aaab4c62640, mod=<value optimized out>) at translate.c:731</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#9 0x00002aaab4a110ba in load_module () at asterisk.c:281</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#10 0x000000000046485f in load_resource (resource_name=0x1f090e90 "codec_amr.so", global_symbols_only=<value optimized out>) at loader.c:680</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#11 0x00000000004650b8 in load_modules (preload_only=<value optimized out>) at loader.c:874</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#12 0x0000000000428c34 in main (argc=<value optimized out>, argv=0x7fffa236c488) at asterisk.c:3058</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#13 0x00000038a5c1d994 in __libc_start_main () from /lib64/libc.so.6</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#14 0x0000000000413ab9 in pthread_attr_setdetachstate ()</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">#15 0x00007fffa236c478 in ?? ()</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">#16 0x0000000000000000 in ?? ()</span><br><br>rest of the apps of asterisk video works fine.<br>
<br>Please help.<br><br><br>regards<br>aster<br style="color: rgb(51, 51, 255);"><br>