<div dir="ltr"><div style="font-family:Calibri,sans-serif">2015-08-11 14:32:28.827339 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode!</div><div style="font-family:Calibri,sans-serif"><span style="color:rgb(255,0,0)">2015-08-11 14:32:28.827339 [ERR] switch_core_io.c:1423 Codec G.729 encoder error!</span></div><div style="font-family:Calibri,sans-serif"><br></div><div style="font-family:Calibri,sans-serif">You&#39;re trying to use mod_g729 to do transcoding (converting between different codecs, which includes playing a file). However that module is the version that doesn&#39;t require a license and thus can only act in passthrough mode where it transfers data between call legs that&#39;s already converted to G729. It cannot encode or decode, hence the error when you try to play your WAV file.</div><div style="font-family:Calibri,sans-serif"><br></div><div style="font-family:Calibri,sans-serif">Your options are:</div><div style="font-family:Calibri,sans-serif">1) Use mod_com_g729, which is the licensed version and supports transcoding (see <a href="http://freeswitch.org">freeswitch.org</a>)</div><div style="font-family:Calibri,sans-serif">2) Try using a codec other than G729 (perhaps the codec choice of the client is not in your control though)</div><div style="font-family:Calibri,sans-serif">3) See whether mod_native_file can playback the file already converted to G729 (you&#39;ll still need a license for the conversion though, and still hit transcoding errors at other times eg during a bridge)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 August 2015 at 07:57,  <span dir="ltr">&lt;<a href="mailto:david.fu@oocl.com" target="_blank">david.fu@oocl.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Calibri, sans-serif" size="2">
<div>Hi All,</div>
<div> </div>
<div>We ‘re encountering the error “Codec G.729 encoder error!”.  Would you please give us some hints how to resolve the issue ? I’ve attached the log message in the followings. Thanks </div>
<div><font face="Times New Roman, serif"> </font></div>
<div><u><b>SIP Log:</b></u></div>
<div>2015-08-11 14:32:28.807295 [DEBUG] sofia.c:6715 Channel sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> entering state [completed][200]</div>
<div>2015-08-11 14:32:28.807295 [NOTICE] mod_dptools.c:1309 Channel [sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>] has been answered</div>
<div>2015-08-11 14:32:28.807295 [DEBUG] switch_channel.c:3759 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Callstate Change EARLY -&gt; ACTIVE</div>
<div>EXECUTE sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> playback(ivr/ivr-welcome_to_freeswitch.wav)</div>
<div>2015-08-11 14:32:28.807295 [DEBUG] switch_ivr_play_say.c:1359 Codec Activated L16@8000hz 1 channels 20ms</div>
<div>recv 454 bytes from tcp/[146.222.181.146]:53483 at 14:32:28.817573:</div>
<div>   ------------------------------------------------------------------------</div>
<div>   ACK sip:10818899@146.222.181.242:5060;transport=tcp SIP/2.0</div>
<div>   Via: SIP/2.0/TCP 146.222.181.146:5060;branch=z9hG4bK146f1e181af4</div>
<div>   From: &lt;<a href="mailto:sip%3A10810609@146.222.181.146" target="_blank">sip:10810609@146.222.181.146</a>&gt;;tag=11828~406686f1-eb54-4f74-9646-b75095131124-22185543</div>
<div>   To: &lt;<a href="mailto:sip%3A10818899@146.222.181.242" target="_blank">sip:10818899@146.222.181.242</a>&gt;;tag=F3Qc7t63vH7pK</div>
<div>   Date: Tue, 11 Aug 2015 06:46:42 GMT</div>
<div>   Call-ID: <a href="mailto:b8327a80-5c919a52-1457-92b5de92@146.222.181.146" target="_blank">b8327a80-5c919a52-1457-92b5de92@146.222.181.146</a></div>
<div>   Max-Forwards: 70</div>
<div>   CSeq: 101 ACK</div>
<div>   Allow-Events: presence, kpml</div>
<div>   Content-Length: 0</div>
<div> </div>
<div>   ------------------------------------------------------------------------</div>
<div>2015-08-11 14:32:28.827339 [DEBUG] sofia.c:6715 Channel sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> entering state [ready][200]</div>
<div>2015-08-11 14:32:28.827339 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode!</div>
<div><font color="#FF0000">2015-08-11 14:32:28.827339 [ERR] switch_core_io.c:1423 Codec G.729 encoder error!</font></div>
<div>2015-08-11 14:32:28.827339 [DEBUG] switch_ivr_play_say.c:1805 done playing file /usr/local/freeswitch/sounds/en/us/callie/ivr/ivr-welcome_to_freeswitch.wav</div>
<div>EXECUTE sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> sleep(500)</div>
<div>2015-08-11 14:32:28.927320 [DEBUG] switch_rtp.c:6462 Correct audio ip/port confirmed.</div>
<div>2015-08-11 14:32:29.347316 [NOTICE] switch_core_state_machine.c:315 sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> has executed the last dialplan instruction, hanging up.</div>
<div>2015-08-11 14:32:29.347316 [NOTICE] switch_core_state_machine.c:317 Hangup sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> [CS_EXECUTE] [NORMAL_CLEARING]</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:539 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State EXECUTE going to sleep</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:473 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Running State Change CS_HANGUP</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:739 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Callstate Change ACTIVE -&gt; HANGUP</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State HANGUP</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:431 Channel sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> hanging up, cause: NORMAL_CLEARING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:484 Sending BYE to sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a></div>
<div>send 657 bytes to tcp/[146.222.181.146]:5060 at 14:32:29.348499:</div>
<div>   ------------------------------------------------------------------------</div>
<div>   BYE sip:10810609@146.222.181.146:5060;transport=tcp SIP/2.0</div>
<div>   Via: SIP/2.0/TCP 146.222.181.242;branch=z9hG4bK62B2N5Z2yK39D</div>
<div>   Max-Forwards: 70</div>
<div>   From: &lt;<a href="mailto:sip%3A10818899@146.222.181.242" target="_blank">sip:10818899@146.222.181.242</a>&gt;;tag=F3Qc7t63vH7pK</div>
<div>   To: &lt;<a href="mailto:sip%3A10810609@146.222.181.146" target="_blank">sip:10810609@146.222.181.146</a>&gt;;tag=11828~406686f1-eb54-4f74-9646-b75095131124-22185543</div>
<div>   Call-ID: <a href="mailto:b8327a80-5c919a52-1457-92b5de92@146.222.181.146" target="_blank">b8327a80-5c919a52-1457-92b5de92@146.222.181.146</a></div>
<div>   CSeq: 79301310 BYE</div>
<div>   User-Agent: FreeSWITCH-mod_sofia/1.7.0+git~20150810T224801Z~28ae331c93~64bit</div>
<div>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</div>
<div>   Supported: timer, path, replaces</div>
<div>   Reason: Q.850;cause=16;text=&quot;NORMAL_CLEARING&quot;</div>
<div>   Content-Length: 0</div>
<div> </div>
<div>   ------------------------------------------------------------------------</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:60 sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> Standard HANGUP, cause: NORMAL_CLEARING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State HANGUP going to sleep</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:508 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State Change CS_HANGUP -&gt; CS_REPORTING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:473 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Running State Change CS_REPORTING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:827 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State REPORTING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:104 sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> Standard REPORTING, cause: NORMAL_CLEARING</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:827 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State REPORTING going to sleep</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State Change CS_REPORTING -&gt; CS_DESTROY</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_session.c:1639 Session 5 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Locked, Waiting on external entities</div>
<div>2015-08-11 14:32:29.347316 [NOTICE] switch_core_session.c:1657 Session 5 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Ended</div>
<div>2015-08-11 14:32:29.347316 [NOTICE] switch_core_session.c:1661 Close Channel sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> [CS_DESTROY]</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:630 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) Running State Change CS_DESTROY</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:640 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State DESTROY</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:341 sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> SOFIA DESTROY</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:111 sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a> Standard DESTROY</div>
<div>2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:640 (sofia/internal/<a href="mailto:10810609@146.222.181.146" target="_blank">10810609@146.222.181.146</a>) State DESTROY going to sleep</div>
<div>recv 362 bytes from tcp/[146.222.181.146]:5060 at 14:32:29.358948:</div>
<div>   ------------------------------------------------------------------------</div>
<div><font face="Times New Roman, serif"> </font></div>
<div>Best Regards,</div>
<div>David</div>
<div><font face="Times New Roman, serif"> </font></div>
</font>
<br><br>IMPORTANT NOTICE<br>Email from OOCL is confidential and may be legally privileged.  If it is not<br>intended for you, please delete it immediately unread.  The internet<br>cannot guarantee that this communication is free of viruses, interception<br>or interference and anyone who communicates with us by email is taken<br>to accept the risks in doing so.  Without limitation, OOCL and its affiliates<br>accept no liability whatsoever and howsoever arising in connection with<br>the use of this email.  Under no circumstances shall this email constitute<br>a binding agreement to carry or for provision of carriage services by OOCL,<br>which is subject to the availability of carrier&#39;s equipment and vessels and<br>the terms and conditions of OOCL&#39;s standard bill of lading which is also<br>available at <a href="http://www.oocl.com" target="_blank">http://www.oocl.com</a>.</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>