Hello, I'm trying to play an audio file to a phone an arbitrary number of times. The audio is a five-second segment of a sine wave. I need this to be played repeatedly without gaps between playbacks. I've tried doing this in the dial plan, e.g.: exten => s,1,Playback(tonefile) exten => s,2,Goto(1) but there is too long of a gap between the playbacks. Does anyone know of a way to achieve this? Thanks, Earle
Earle Clubb wrote:> Hello, > > I'm trying to play an audio file to a phone an arbitrary number of > times. The audio is a five-second segment of a sine wave. I need this > to be played repeatedly without gaps between playbacks. I've tried > doing this in the dial plan, e.g.: > > exten => s,1,Playback(tonefile) > exten => s,2,Goto(1) > > but there is too long of a gap between the playbacks. Does anyone know > of a way to achieve this?You have a long gap in your tone file.
Why not just merge the file together a few times using an audio program and make a longer file? Bill -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Earle Clubb Sent: Thursday, September 21, 2006 9:45 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Looped message playback Hello, I'm trying to play an audio file to a phone an arbitrary number of times. The audio is a five-second segment of a sine wave. I need this to be played repeatedly without gaps between playbacks. I've tried doing this in the dial plan, e.g.: exten => s,1,Playback(tonefile) exten => s,2,Goto(1) but there is too long of a gap between the playbacks. Does anyone know of a way to achieve this? Thanks, Earle _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
DOH I just read that you said an arbitrary number of times no wonder you asked this question Please ignore me. :) -----Original Message----- From: Bill Gibbs Sent: Thursday, September 21, 2006 10:11 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Looped message playback Why not just merge the file together a few times using an audio program and make a longer file? Bill -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Earle Clubb Sent: Thursday, September 21, 2006 9:45 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Looped message playback Hello, I'm trying to play an audio file to a phone an arbitrary number of times. The audio is a five-second segment of a sine wave. I need this to be played repeatedly without gaps between playbacks. I've tried doing this in the dial plan, e.g.: exten => s,1,Playback(tonefile) exten => s,2,Goto(1) but there is too long of a gap between the playbacks. Does anyone know of a way to achieve this? Thanks, Earle _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Earle Clubb wrote:> Hello, > > I'm trying to play an audio file to a phone an arbitrary number of > times. The audio is a five-second segment of a sine wave. I need this > to be played repeatedly without gaps between playbacks. I've tried > doing this in the dial plan, e.g.: > > exten => s,1,Playback(tonefile) > exten => s,2,Goto(1) > > but there is too long of a gap between the playbacks. Does anyone know > of a way to achieve this?Well, I don't have a solution for the general case (looped playback), but if you are only playing a sine wave, couldn't you use Playtones() instead? It has the ability to play a tone indefinitely until you tell it to stop. John