MOH not working in G729 passthru with native sound files
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message): 2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/ sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@ 74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted?
You would need to set the moh to the file directly and not use local_stream. I'm pretty sure that local_stream might not support native files. /b On Feb 9, 2011, at 8:41 PM, Marcin Wojtowicz wrote:
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz
I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message):
2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218 playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file
I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted? _______________________________________________ FreeSWITCH-users mailing list 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
how did you record in G729? On Thu, Feb 10, 2011 at 3:41 AM, Marcin Wojtowicz <marcin321@gmail.com>wrote:
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz
I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message):
2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/ sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@ 74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file
I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted?
_______________________________________________ FreeSWITCH-users mailing list 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
http://wiki.freeswitch.org/wiki/Mod_native_file#Script_to_convert_a_sound_fi... On 21 February 2011 12:49, Saeed Ahmed <saeedahmad1981@gmail.com> wrote:
how did you record in G729?
On Thu, Feb 10, 2011 at 3:41 AM, Marcin Wojtowicz <marcin321@gmail.com>wrote:
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz
I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message):
2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/ sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file
I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted?
_______________________________________________ FreeSWITCH-users mailing list 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
_______________________________________________ FreeSWITCH-users mailing list 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
2011/2/21 Steven Ayre <steveayre@gmail.com>
http://wiki.freeswitch.org/wiki/Mod_native_file#Script_to_convert_a_sound_fi...
I saw an fs_encode binary compiling a recent version of freeswitch. Does anyone know if it can be used to achieve the same result without installing asterisk ? And without buying g729 codecs for asterisk too ! ;-) Massimiliano
Thanks Steve On Mon, Feb 21, 2011 at 3:55 PM, Steven Ayre <steveayre@gmail.com> wrote:
http://wiki.freeswitch.org/wiki/Mod_native_file#Script_to_convert_a_sound_fi...
On 21 February 2011 12:49, Saeed Ahmed <saeedahmad1981@gmail.com> wrote:
how did you record in G729?
On Thu, Feb 10, 2011 at 3:41 AM, Marcin Wojtowicz <marcin321@gmail.com>wrote:
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz
I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message):
2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/ sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file
I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted?
_______________________________________________ FreeSWITCH-users mailing list 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
_______________________________________________ FreeSWITCH-users mailing list 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
_______________________________________________ FreeSWITCH-users mailing list 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
local_stream is not native its a stream running from a mixer. There is no native file streamer you must put absolute paths to a .G729 file omitting the extension. On Mon, Feb 21, 2011 at 6:49 AM, Saeed Ahmed <saeedahmad1981@gmail.com> wrote:
how did you record in G729?
On Thu, Feb 10, 2011 at 3:41 AM, Marcin Wojtowicz <marcin321@gmail.com> wrote:
I'm trying to enable MOH when both legs of the call are using G729 (FS is in passthru). I converted an edited sample wave file to G729 and put in the appropriate folder, and FS loads it correctly because this is the message that keeps popping up in the console: 2011-02-09 21:10:25.609375 [INFO] mod_native_file.c:94 Opening File [C:\freeswitch\sounds/music/8000\sample.G729] 8000hz
I establish a call, and everything is fine, but when I press hold on my handset I see an error message that says that G729 is only useable in passthru (here is the debug message):
2011-02-09 21:14:01.828125 [DEBUG] switch_channel.c:1376 (sofia/internal/sip:M9jdt73ig0oOJSbt6Uyy@192.168.1.50:5060) Callstate Change ACTIVE -> HELD 2011-02-09 21:14:01.828125 [DEBUG] switch_core_session.c:954 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:01.859375 [DEBUG] switch_core_session.c:709 Send signal sofia/external/MYHOME#@74.63.41.218 [BREAK] 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr.c:563 sofia/external/MYHOME#@74.63.41.218 Command Execute playback(local_stream://moh/8000) EXECUTE sofia/external/MYHOME#@74.63.41.218 playback(local_stream://moh/8000) 2011-02-09 21:14:02.000000 [DEBUG] mod_local_stream.c:421 Opening Stream [moh/8000] 8000hz 2011-02-09 21:14:02.000000 [DEBUG] switch_ivr_play_say.c:1244 Codec Activated L16@8000hz 1 channels 20ms 2011-02-09 21:14:02.015625 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode! 2011-02-09 21:14:02.015625 [ERR] switch_core_io.c:1042 Codec G.729 encoder error! 2011-02-09 21:14:02.015625 [DEBUG] switch_ivr_play_say.c:1581 done playing file
I don't understand why that would be, since my music file is in G729 so I'm not asking freeswitch to convert, only stream. My custom ringback (before a call is established) works just fine using a similar method, so could anyone explain me why what I want to do is not permitted?
_______________________________________________ FreeSWITCH-users mailing list 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
_______________________________________________ FreeSWITCH-users mailing list 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (6)
-
Anthony Minessale
-
Brian West
-
Marcin Wojtowicz
-
Massimiliano Ravelli
-
Saeed Ahmed
-
Steven Ayre