<div dir="ltr"><div>If you run fs_cli -x 'show codecs', is g722 reported?  It should be provided by mod_spandsp -  mod_native_file *should* support any loaded codecs.  </div><div><br></div><div>It appears that mod_spandsp may need to be loaded before mod_native_file (although I'm not 100% on that), for it to perform the init that associates the loaded codecs with it's supported formats.  If mod_spandsp is already loaded, try running a 'reload mod_native_file' and see if that helps</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello ,<div><br></div><div>I am using mod native file module to play native files.It works perfectly with PCMA,PCMU,G729 but not for G722. Any idea why ? </div><div><br></div><div>Log line after codec negotiation : </div><div><span style="font-family:monospace"><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.860111 [DEBUG] switch_core_media.c:3818 Set Codec sofia/register/888@ecolocal3.sip.teledge.local G722/8000 20 ms 160 samples 64000</span><br>bits 1 channels                        <br></span><div><br></div><div>Error thrown by FS on CLI : </div><div><span style="font-family:monospace"><span style="color:rgb(178,24,24)">2019-04-11 16:58:39.880339 [ERR] switch_core_file.c:301 Invalid file format [G722] for [/media/freeswitch_storage/sounds/custom/req_fail.G722]!</span><span style="color:rgb(0,0,0)"> </span><br><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.880339 [DEBUG] switch_core_file.c:386 File /media/freeswitch_storage/sounds/custom/req_fail.wav sample rate 8000 doesn't match req</span><br>uested rate 16000                                                               </span></div><div><span style="font-family:monospace"><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.880339 [DEBUG] switch_ivr_play_say.c:1493 Codec Activated L16@16000hz 1 channels 20ms</span><br><span style="color:rgb(0,0,0)"></span><br></span></div><div><span style="font-family:monospace">I am using FS 1.8.2</span></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-6374191472999311793gmail_signature"><div dir="ltr">Thanks,<div><br></div><div>Sagar</div></div></div></div></blockquote><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">--------------------------------</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Troy Denton, P. Eng.</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Senior Telecom Analyst</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">24-7 Intouch</span></p><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><a href="http://24-7intouch.com/" target="_blank"><span style="font-size:9.5pt;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap">24-7intouch.com</span></a><span style="font-size:9.5pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> |</span><span style="font-size:9.5pt;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap"> </span><a href="mailto:tdenton@24-7intouch.com" target="_blank"><span style="font-size:9.5pt;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap">tdenton@24-7intouch.com</span></a></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9.5pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">240 Kennedy St | Winnipeg, Manitoba, Canada R3C 1T1</span></p><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:7pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Confidentiality Note: This e-mail message and any attachments to it are intended only for the named recipients and may contain legally privileged and/or confidential information. If you are not one of the intended recipients, please do not duplicate or forward this e-mail message and immediately delete it from your computer.</span></p></span></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 11, 2019 at 12:19 PM sagar malam <<a href="mailto:sagarmalam@gmail.com">sagarmalam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello ,<div><br></div><div>I am using mod native file module to play native files.It works perfectly with PCMA,PCMU,G729 but not for G722. Any idea why ? </div><div><br></div><div>Log line after codec negotiation : </div><div><span style="font-family:monospace"><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.860111 [DEBUG] switch_core_media.c:3818 Set Codec sofia/register/888@ecolocal3.sip.teledge.local G722/8000 20 ms 160 samples 64000</span><br> bits 1 channels                        <br></span><div><br></div><div>Error thrown by FS on CLI : </div><div><span style="font-family:monospace"><span style="color:rgb(178,24,24)">2019-04-11 16:58:39.880339 [ERR] switch_core_file.c:301 Invalid file format [G722] for [/media/freeswitch_storage/sounds/custom/req_fail.G722]!</span><span style="color:rgb(0,0,0)">
</span><br><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.880339 [DEBUG] switch_core_file.c:386 File /media/freeswitch_storage/sounds/custom/req_fail.wav sample rate 8000 doesn't match req</span><br>uested rate 16000                                                               </span></div><div><span style="font-family:monospace"><span style="color:rgb(178,104,24)">2019-04-11 16:58:39.880339 [DEBUG] switch_ivr_play_say.c:1493 Codec Activated L16@16000hz 1 channels 20ms</span><br><span style="color:rgb(0,0,0)">
</span><br></span></div><div><span style="font-family:monospace">I am using FS 1.8.2</span></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_-6374191472999311793gmail_signature"><div dir="ltr">Thanks,<div><br></div><div>Sagar</div></div></div></div></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>