Thanks Steven for the detailed explanation. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: Tuesday, August 11, 2015 6:02 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Codec G.729 encoder error 2015-08-11 14:32:28.827339 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2015-08-11 14:32:28.827339 [ERR] switch_core_io.c:1423 Codec G.729 encoder error! You'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't require a license and thus can only act in passthrough mode where it transfers data between call legs that's already converted to G729. It cannot encode or decode, hence the error when you try to play your WAV file. Your options are: 1) Use mod_com_g729, which is the licensed version and supports transcoding (see freeswitch.org<http://freeswitch.org>) 2) Try using a codec other than G729 (perhaps the codec choice of the client is not in your control though) 3) See whether mod_native_file can playback the file already converted to G729 (you'll still need a license for the conversion though, and still hit transcoding errors at other times eg during a bridge) On 11 August 2015 at 07:57, <david.fu@oocl.com<mailto:david.fu@oocl.com>> wrote: Hi All, 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 SIP Log: 2015-08-11 14:32:28.807295 [DEBUG] sofia.c:6715 Channel sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> entering state [completed][200] 2015-08-11 14:32:28.807295 [NOTICE] mod_dptools.c:1309 Channel [sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>] has been answered 2015-08-11 14:32:28.807295 [DEBUG] switch_channel.c:3759 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Callstate Change EARLY -> ACTIVE EXECUTE sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> playback(ivr/ivr-welcome_to_freeswitch.wav) 2015-08-11 14:32:28.807295 [DEBUG] switch_ivr_play_say.c:1359 Codec Activated L16@8000hz 1 channels 20ms recv 454 bytes from tcp/[146.222.181.146]:53483 at 14:32:28.817573: ------------------------------------------------------------------------ ACK sip:10818899@146.222.181.242:5060;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 146.222.181.146:5060;branch=z9hG4bK146f1e181af4 From: <sip:10810609@146.222.181.146<mailto:sip%3A10810609@146.222.181.146>>;tag=11828~406686f1-eb54-4f74-9646-b75095131124-22185543 To: <sip:10818899@146.222.181.242<mailto:sip%3A10818899@146.222.181.242>>;tag=F3Qc7t63vH7pK Date: Tue, 11 Aug 2015 06:46:42 GMT Call-ID: b8327a80-5c919a52-1457-92b5de92@146.222.181.146<mailto:b8327a80-5c919a52-1457-92b5de92@146.222.181.146> Max-Forwards: 70 CSeq: 101 ACK Allow-Events: presence, kpml Content-Length: 0 ------------------------------------------------------------------------ 2015-08-11 14:32:28.827339 [DEBUG] sofia.c:6715 Channel sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> entering state [ready][200] 2015-08-11 14:32:28.827339 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2015-08-11 14:32:28.827339 [ERR] switch_core_io.c:1423 Codec G.729 encoder error! 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 EXECUTE sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> sleep(500) 2015-08-11 14:32:28.927320 [DEBUG] switch_rtp.c:6462 Correct audio ip/port confirmed. 2015-08-11 14:32:29.347316 [NOTICE] switch_core_state_machine.c:315 sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> has executed the last dialplan instruction, hanging up. 2015-08-11 14:32:29.347316 [NOTICE] switch_core_state_machine.c:317 Hangup sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> [CS_EXECUTE] [NORMAL_CLEARING] 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:539 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State EXECUTE going to sleep 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:473 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Running State Change CS_HANGUP 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:739 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Callstate Change ACTIVE -> HANGUP 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State HANGUP 2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:431 Channel sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> hanging up, cause: NORMAL_CLEARING 2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:484 Sending BYE to sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> send 657 bytes to tcp/[146.222.181.146]:5060 at 14:32:29.348499: ------------------------------------------------------------------------ BYE sip:10810609@146.222.181.146:5060;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 146.222.181.242;branch=z9hG4bK62B2N5Z2yK39D Max-Forwards: 70 From: <sip:10818899@146.222.181.242<mailto:sip%3A10818899@146.222.181.242>>;tag=F3Qc7t63vH7pK To: <sip:10810609@146.222.181.146<mailto:sip%3A10810609@146.222.181.146>>;tag=11828~406686f1-eb54-4f74-9646-b75095131124-22185543 Call-ID: b8327a80-5c919a52-1457-92b5de92@146.222.181.146<mailto:b8327a80-5c919a52-1457-92b5de92@146.222.181.146> CSeq: 79301310 BYE User-Agent: FreeSWITCH-mod_sofia/1.7.0+git~20150810T224801Z~28ae331c93~64bit Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, path, replaces Reason: Q.850;cause=16;text="NORMAL_CLEARING" Content-Length: 0 ------------------------------------------------------------------------ 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:60 sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> Standard HANGUP, cause: NORMAL_CLEARING 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State HANGUP going to sleep 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:508 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State Change CS_HANGUP -> CS_REPORTING 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:473 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Running State Change CS_REPORTING 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:827 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State REPORTING 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:104 sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> Standard REPORTING, cause: NORMAL_CLEARING 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:827 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State REPORTING going to sleep 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:499 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State Change CS_REPORTING -> CS_DESTROY 2015-08-11 14:32:29.347316 [DEBUG] switch_core_session.c:1639 Session 5 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Locked, Waiting on external entities 2015-08-11 14:32:29.347316 [NOTICE] switch_core_session.c:1657 Session 5 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Ended 2015-08-11 14:32:29.347316 [NOTICE] switch_core_session.c:1661 Close Channel sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> [CS_DESTROY] 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:630 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) Running State Change CS_DESTROY 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:640 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State DESTROY 2015-08-11 14:32:29.347316 [DEBUG] mod_sofia.c:341 sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> SOFIA DESTROY 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:111 sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146> Standard DESTROY 2015-08-11 14:32:29.347316 [DEBUG] switch_core_state_machine.c:640 (sofia/internal/10810609@146.222.181.146<mailto:10810609@146.222.181.146>) State DESTROY going to sleep recv 362 bytes from tcp/[146.222.181.146]:5060 at 14:32:29.358948: ------------------------------------------------------------------------ Best Regards, David IMPORTANT NOTICE Email from OOCL is confidential and may be legally privileged. If it is not intended for you, please delete it immediately unread. The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in doing so. Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email. Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org IMPORTANT NOTICE Email from OOCL is confidential and may be legally privileged. If it is not intended for you, please delete it immediately unread. The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in doing so. Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email. Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com.