Hi All. I am wondering if somebody can point me in the right direction. I am playing back tone_stream on my call, but noticed that if the codec is in G729, the call fails because of a codec negotiation error (I am loading the G729 mod). Does anybody know how tone_stream can work with G279? Here's the line from my dialplan (NumberOfLoops depends on how long it takes us to find the user, historical average): <load module="mod_g729"/> <action application="playback" data="tone_stream://%(2000,4000,440.0,480.0);loops=${NumberOfLoops}" /> Thanks, Alex
Inline (audible tones in the audio stream) tones will not work with G.729. You need to use RFC2833 for best results. Try with send_dtmf <dtmf digits>[@<tone_duration>] If your tones are not standard DTMF, you can try to record them in a file, convert it to G.729 offline, and then play the file back in the call. There is a file conversion utility in FS calles fs_convert if I recall correctly which you can use to convert the file. You will need one G.729 license to do this, or find some other program to convert your file. Regards, Guillermo On Mon, May 7, 2018 at 1:35 PM, Alexander Perkins < alexanderhenryperkins@gmail.com> wrote:
Hi All. I am wondering if somebody can point me in the right direction. I am playing back tone_stream on my call, but noticed that if the codec is in G729, the call fails because of a codec negotiation error (I am loading the G729 mod).
Does anybody know how tone_stream can work with G279? Here's the line from my dialplan (NumberOfLoops depends on how long it takes us to find the user, historical average):
<load module="mod_g729"/>
<action application="playback" data="tone_stream://%(2000, 4000,440.0,480.0);loops=${NumberOfLoops}" />
Thanks, Alex
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Guillermo Ruiz Camauer
Hi, "mod_g729" works only passthrough, you can't play tones or files with it. You need "mod_com_g729" if you want to decode media stream. Also inband DTMF with g729 is not good idea overall. Use RFC2833. Regards, Alex On Tue, May 8, 2018 at 2:38 AM, Guillermo Ruiz Camauer <grcamauer@gmail.com> wrote:
Inline (audible tones in the audio stream) tones will not work with G.729. You need to use RFC2833 for best results.
Try with
send_dtmf <dtmf digits>[@<tone_duration>]
If your tones are not standard DTMF, you can try to record them in a file, convert it to G.729 offline, and then play the file back in the call. There is a file conversion utility in FS calles fs_convert if I recall correctly which you can use to convert the file. You will need one G.729 license to do this, or find some other program to convert your file.
Regards,
Guillermo
On Mon, May 7, 2018 at 1:35 PM, Alexander Perkins < alexanderhenryperkins@gmail.com> wrote:
Hi All. I am wondering if somebody can point me in the right direction. I am playing back tone_stream on my call, but noticed that if the codec is in G729, the call fails because of a codec negotiation error (I am loading the G729 mod).
Does anybody know how tone_stream can work with G279? Here's the line from my dialplan (NumberOfLoops depends on how long it takes us to find the user, historical average):
<load module="mod_g729"/>
<action application="playback" data="tone_stream://%(2000,400 0,440.0,480.0);loops=${NumberOfLoops}" />
Thanks, Alex
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Guillermo Ruiz Camauer
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: alex@freeswitch.com Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> Need commercial support? Contact sales@freeswitch.com for details.
participants (3)
-
Alexander Perkins
-
Alexey Sibyakin
-
Guillermo Ruiz Camauer