Hi Chandrakant,<div>for what I can see the patch you&#39;re trying to use (<a href="http://sourceforge.net/projects/aterisk-amr/files/">http://sourceforge.net/projects/aterisk-amr/files/</a>) is going to work with 1.8.13 as well, however the issue behind the crash is not in Asterisk&#39;s code but in 3GPP&#39;s original AMR implementation when running on 64-bit hosts.</div>
<div>I&#39;ve found that applying the patch suggested here: <a href="http://lists.digium.com/pipermail/asterisk-video/2008-October/002229.html">http://lists.digium.com/pipermail/asterisk-video/2008-October/002229.html</a> to codecs/amr/typedef.h fixed the crash.</div>
<div><br></div><div>I hope this helps and I&#39;d be interested to know if this solves your issue.</div><div><br></div><div>Regards,</div><div>Giacomo</div><div><br><br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi All,<br>OS : Cent OS 5 64Bit<br>Asterisk : 1.8.0-rc2<br>AMR Source Link : <a href="http://sourceforge.net/projects/aterisk-amr/files/">http://sourceforge.net/projects/aterisk-amr/files/</a><br>When I tried to call or start asterisk, I found &quot;Segmentation Fault&quot;. Below<br>
I paste same for AMR<br><br>Loaded symbols for /usr/lib/asterisk/modules/app_db.so<br>Core was generated by `asterisk -qg&#39;.<br>Program terminated with signal 11, Segmentation fault.<br>#0  D_plsf_3 (st=&lt;value optimized out&gt;, mode=&lt;value optimized out&gt;,<br>
bfi=&lt;value optimized out&gt;, indice=&lt;value optimized out&gt;,<br>lsp1_q=0x7fff11d05df0)<br>    at sp_dec.c:567<br>567           tmp = ( ( cos_table[ind+1]-cos_table[ind] )*offset ) &lt;&lt; 1;<br>(gdb) br<br>Breakpoint 1 at 0x2aaab57093f1: file sp_dec.c, line 567.<br>
(gdb) bt<br>#0  D_plsf_3 (st=&lt;value optimized out&gt;, mode=&lt;value optimized out&gt;,<br>bfi=&lt;value optimized out&gt;, indice=&lt;value optimized out&gt;,<br>lsp1_q=0x7fff11d05df0)<br>    at sp_dec.c:567<br>#1  0x00002aaab570df95 in Decoder_amr (st=0x2aaad6147d00, mode=MR515,<br>
parm=0x7fff11d06a40, frame_type=&lt;value optimized out&gt;,<br>synth=0x7fff11d060a0,<br>    A_t=0x7fff11d06730) at sp_dec.c:4717<br>#2  0x00002aaab5712e6a in Speech_Decode_Frame (st=0x2aaad613e200, mode=80,<br>parm=0x2aaab5725400, frame_type=4294949091, synth=0x2aaad6142ba0)<br>
    at sp_dec.c:5676<br>#3  0x00002aaab56efb25 in Decoder_Interface_Decode (st=0x2aaad613e1e0,<br>bits=&lt;value optimized out&gt;, synth=0x2aaad6142ba0, bfi=&lt;value optimized out&gt;)<br>    at interf_dec.c:816<br>#4  0x00002aaab56ee6f9 in amrtolin_framein (pvt=0x2aaad613e5c0, f=&lt;value<br>
optimized out&gt;) at codec_amr.c:263<br>#5  0x0000000000528244 in framein (pvt=0x2aaad613e5c0, f=0x2aaab5942e40) at<br>translate.c:178<br>#6  0x0000000000529538 in calc_cost (t=0x2aaab593ff40, seconds=1) at<br>translate.c:397<br>
#7  0x000000000052a00c in __ast_register_translator (t=0x2aaab593ff40,<br>mod=&lt;value optimized out&gt;) at translate.c:835<br>#8  0x00002aaab56ee37b in load_module () at codec_amr.c:490<br>#9  0x00000000004c29e3 in start_resource (mod=0xdf) at loader.c:785<br>
#10 0x00000000004c3308 in load_resource_list (load_order=0x7fff11d07000,<br>global_symbols=0, mod_count=0x7fff11d0701c) at loader.c:973<br>#11 0x00000000004c3727 in load_modules (preload_only=0) at loader.c:1126<br>#12 0x000000000043c2c4 in main (argc=&lt;value optimized out&gt;,<br>
argv=0x7fff11d095e8) at asterisk.c:3794<br>(gdb) quit<br><br>--<br> Regards,<br>Chandrakant Solanki</blockquote><br>-- <br>Giacomo Vacca<br>+44 7408866340<br>+39 3928454855<br><a href="mailto:giacomo.vacca@gmail.com">giacomo.vacca@gmail.com</a><br>
skype: giacomo.vacca</div>