How to break a playback with loops
Hi, I am trying to playing back a wav file a few times, and on receiving a dtmf event, it stops playing the file. The command I sent is: sendmsg call-command: execute execute-app-name: playback execute-app-arg: <the wav file> loops: 4 On receiving a dtmf event, I send a break command: sendmsg call-command: execute execute-app-name: break However, that only breaks one loop of the playback. And I have to press a dtmf for 4 times to stop the file. I tried sending 4 break commands all at once. But it didn't work. And even worse, my program stops receiving dtmfs anymore. My guess is that the first break stops the first loop, but before the second loop starts, the following 3 breaks stop something else that I don't know what they are. Any help is appreciated. Thanks. Daniel Liang
Could you please file a bug report on this? jira.freeswitch.org. Also, follow the bug reporting guidelines here: http://wiki.freeswitch.org/wiki/Reporting_Bugs Thanks, MC On Thu, Jan 29, 2009 at 11:05 AM, Daniel Liang <Daniell@airg.com> wrote:
Hi,
I am trying to playing back a wav file a few times, and on receiving a dtmf event, it stops playing the file. The command I sent is:
sendmsg call-command: execute execute-app-name: playback execute-app-arg: <the wav file> loops: 4
On receiving a dtmf event, I send a break command:
sendmsg call-command: execute execute-app-name: break
However, that only breaks one loop of the playback. And I have to press a dtmf for 4 times to stop the file.
I tried sending 4 break commands all at once. But it didn't work. And even worse, my program stops receiving dtmfs anymore. My guess is that the first break stops the first loop, but before the second loop starts, the following 3 breaks stop something else that I don't know what they are.
Any help is appreciated.
Thanks. Daniel Liang
_______________________________________________ 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
The break function with the all app is better for this api break <uuid> all This lets you still break even if the playback is in event lock I did add to trunk a patch so you can do it with the app you can now add "all" as the app args to break completely. On Thu, Jan 29, 2009 at 3:34 PM, Michael Collins <msc@freeswitch.org> wrote:
Could you please file a bug report on this? jira.freeswitch.org. Also, follow the bug reporting guidelines here: http://wiki.freeswitch.org/wiki/Reporting_Bugs
Thanks, MC
On Thu, Jan 29, 2009 at 11:05 AM, Daniel Liang <Daniell@airg.com> wrote:
Hi,
I am trying to playing back a wav file a few times, and on receiving a dtmf event, it stops playing the file. The command I sent is:
sendmsg call-command: execute execute-app-name: playback execute-app-arg: <the wav file> loops: 4
On receiving a dtmf event, I send a break command:
sendmsg call-command: execute execute-app-name: break
However, that only breaks one loop of the playback. And I have to press a dtmf for 4 times to stop the file.
I tried sending 4 break commands all at once. But it didn't work. And even worse, my program stops receiving dtmfs anymore. My guess is that the first break stops the first loop, but before the second loop starts, the following 3 breaks stop something else that I don't know what they are.
Any help is appreciated.
Thanks. Daniel Liang
_______________________________________________ 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/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
It works. Thank you. ________________________________ From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: January 29, 2009 1:54 PM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] How to break a playback with loops The break function with the all app is better for this api break <uuid> all This lets you still break even if the playback is in event lock I did add to trunk a patch so you can do it with the app you can now add "all" as the app args to break completely. On Thu, Jan 29, 2009 at 3:34 PM, Michael Collins <msc@freeswitch.org> wrote: Could you please file a bug report on this? jira.freeswitch.org. Also, follow the bug reporting guidelines here: http://wiki.freeswitch.org/wiki/Reporting_Bugs Thanks, MC On Thu, Jan 29, 2009 at 11:05 AM, Daniel Liang <Daniell@airg.com> wrote: > Hi, > > I am trying to playing back a wav file a few times, and on receiving a dtmf > event, it stops playing the file. The command I sent is: > > sendmsg > call-command: execute > execute-app-name: playback > execute-app-arg: <the wav file> > loops: 4 > > On receiving a dtmf event, I send a break command: > > sendmsg > call-command: execute > execute-app-name: break > > However, that only breaks one loop of the playback. And I have to press a > dtmf for 4 times to stop the file. > > I tried sending 4 break commands all at once. But it didn't work. And even > worse, my program stops receiving dtmfs anymore. My guess is that the first > break stops the first loop, but before the second loop starts, the following > 3 breaks stop something else that I don't know what they are. > > Any help is appreciated. > > Thanks. > Daniel Liang > > _______________________________________________ > 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/ AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
is thee a way to loop a file when using playback in xml dialplan? I see http://wiki.freeswitch.org/wiki/Channel_Variables#loops but no indication on how to use it. can someone please advise how it's supposed to work.
I couldn't find any such channel variable in the source, so I removed that recent change to the wiki. On Sun, Jun 24, 2012 at 5:05 PM, Abaci <abaci64@gmail.com> wrote:
is thee a way to loop a file when using playback in xml dialplan? I see http://wiki.freeswitch.org/wiki/Channel_Variables#loops but no indication on how to use it. can someone please advise how it's supposed to work.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
Do you want this..? http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_endless_playback -Avi On Mon, Jun 25, 2012 at 12:37 AM, Christopher Rienzo <cmrienzo@gmail.com>wrote:
I couldn't find any such channel variable in the source, so I removed that recent change to the wiki.
On Sun, Jun 24, 2012 at 5:05 PM, Abaci <abaci64@gmail.com> wrote:
is thee a way to loop a file when using playback in xml dialplan? I see http://wiki.freeswitch.org/wiki/Channel_Variables#loops but no indication on how to use it. can someone please advise how it's supposed to work.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
participants (6)
-
Abaci
-
Anthony Minessale
-
Avi Marcus
-
Christopher Rienzo
-
Daniel Liang
-
Michael Collins