Vincent
2007-Nov-25 23:44 UTC
[asterisk-users] [Record() function] Script stops if user doesn't hit # after msg
Hello I noticed something nasty with the Record() function: If the user either hangs up during the prompt (ie. doesn't leave a message at all), or does leave a message but forgets to hit the # key at the end... Asterisk stops right there, so the rest of the script doesn't run: =======[internal] exten => 777,1,Playback(leave_msg) exten => 777,n,Record(/tmp/test.wav,3,30) ;Verbose() not run exten => 777,n,Verbose(Here we are) ======= Am I doing it wrong? Is there a way to solve this? Thank you.
Doug Lytle
2007-Nov-26 00:03 UTC
[asterisk-users] [Record() function] Script stops if user doesn't hit # after msg
Vincent wrote:> Hello > > I noticed something nasty with the Record() function: If the > user either hangs up during the prompt (ie. doesn't leave a message at >What exactly are you trying to do? If a user hangs up during your Record, it'll go directly the the h extension if it exists. I do this for recording pages, they record their page and then just hang up. It then gets played back over the PA system. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."