[Freeswitch-users] Fwd: Problem while playing more than 10 voice files using playback

Anthony Minessale anthony.minessale at gmail.com
Mon Nov 23 07:54:50 PST 2009


Maybe it is a race condition, I can't tell you from just such a basic
description the code is complicated and I would have to reproduce it myself,
but I can tell you one more time for good measure that you should use
execute_complete events to tell when a command you tried to execute has
finished and not poll the channel for a variable to be set because
FreeSWITCH is an asynchronous application in the mode you are describing and
you can never be sure of the timing.



On Sun, Nov 22, 2009 at 10:34 PM, Thangappan.M <thangappan143 at gmail.com>wrote:

> I am waiting only for DTMF events. That's why I am setting freeswitch
> variable for knowing whether the playback has done.
>
> My question is "why this freeswitch variable is not setting properly when I
> play back more than 10 files using playback_delimiter option?".
>
> When I play back lesser than ten voice files the variable has been set
> properly. What could be the reason?
>
>
>
> ---------- Forwarded message ----------
> From: Thangappan.M <thangappan143 at gmail.com>
> Date: Sat, Nov 21, 2009 at 2:52 PM
> Subject: Problem while playing more than 10 voice files using playback
> To: freeswitch-users <freeswitch-users at lists.freeswitch.org>
>
>
> Dear all,
>
>          I am in the process of implementing IVR using event outbound
> socket (async mode).
>          I have implemented using Perl language.
>
>           I did the following steps:
>                    => Set the playback_delimiter variable
>                    => Set the playback_sleep_val variable
>                    => Set the event lock as true
>                     => Set the freeswitch ( my own)  variable as zero
>                     => Wait in the loop until the variable is been set as
> zero
>                    =>  Playback the voice files ( Here I combined the voice
> files with the delimiter value if more than one voice files are there)
>                    => Set the freeswitch(my own) variable as true ( This is
> used to identify whether the voice files are played
>  successfully).
>                    => Wait in the loop until the variable is been set as
> one.
>                    => Set the Event lock as false
>
>                    => Trying to get the DTMF digits ( Have a assurance
> that  all the voice files are played).
>
>        The problem is,
>
>              The above steps are working fine when the voice file count is
> lesser than or equal to 10. After the voice files are played only the
> variable(my own freeswitch) is set. Based on the variable I am doing further
> things.
>
>              But when I tried to give the voice files count of more than 10
> the variable has been set while starting to play back the first voice file
> itself . Because of this I am not able to proceed further.
>
>   *DID I MAKE ANY MISTAKE IN THE ABOVE STEPS?*
>
> *NOTE*: I also referred mod_file_string documentation. In that they
> specified 128 files can be used to play back the voice files using
> playback_delimiter option.
>
> Please help me................?
> Thanks in advance.
>
>
> --
> Regards,
> Thangappan.M
>
>
>
> --
> Regards,
> Thangappan.M
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091123/7139944b/attachment-0002.html 


More information about the FreeSWITCH-users mailing list