Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Playback don't play the beginning if a sound file


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
yraber at mailup.net
Guest





PostPosted: Mon May 05, 2008 6:03 am    Post subject: [asterisk-users] Playback don't play the beginning if a soun Reply with quote

It seems this has something to do with the Wait() before the Playback
(Background behaves the same).

If I remove the Wait, the next Playback is just fine, otherwise it
truncates the beginning of the message.

On Mon, 2008-05-05 at 10:41 +0200, Yves R?ber wrote:
Quote:
Hello,

I'm using this dialplan to let user record messages. The recording part
works quite fine, but there is something strange :

When Asterisk plays vm-torerecord, it misses the beginning, I only hear
the few last seconds (vm-torerecord is a sound file that was in the
asterisk-sounds cvs repo, but I simply renamed it).

I've looked on voip-info.org, googled anything I could think about and
checked on bugs.digium.com, I don't have any clue of what's going on.

Does anyone has an idea ? Thanks.


Here is my dialplan :

[record]
exten => s,1,Answer
exten => s,n,Set(counter=1)
exten => s,n,NoOp(${counter})
exten => s,n,GotoIf($[${counter} = 1]?record)
exten => s,n(next),System(/bin/rm
-f /var/lib/asterisk/sounds/${RECORDED_FILE}.wav)
exten => s,n(record),Set(counter=$[${counter}+1]);
exten => s,n,GotoIf($[${counter} > 3]?i,1)
exten => s,n,Playback(vm-intro)
exten => s,n,Record(webrecord%d:wav,10,60)
exten => s,n,Wait(1)
exten => s,n,Set(CDR(userfield)=${RECORDED_FILE})
exten => s,n,Playback(${RECORDED_FILE})
exten => s,n(askretry),Background(vm-torerecord)
exten => s,n,WaitExten(5)
exten => i,1,Goto(s,askretry)
exten => 3,1,Goto(s,next)
exten => t,1,Set(CDR(userfield)=${RECORDED_FILE})
exten => t,n,Hangup


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services