<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=865131314-17022006><FONT face=Arial
color=#0000ff size=2>This is my own GotoifTime section, which works swimmingly I
might add:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=865131314-17022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=865131314-17022006><FONT face=Arial
color=#0000ff size=2> exten => s,1,Answer<BR> exten =>
s,2,SetMusicOnHold(default)<BR> exten =>
s,3,Set(TIMEOUT(digit)=5)<BR> exten =>
s,4,Set(TIMEOUT(response)=10)<BR> exten =>
s,5,Background(fedwelcome)<BR> exten =>
s,6,GotoIfTime(*|*|1|jan?afterhours,s,1)
; New Year's Day<BR> exten =>
s,7,GotoIfTime(*|mon|25-31|may?afterhours,s,1)
; Memorial Day<BR> exten =>
s,8,GotoIfTime(*|*|4|jul?afterhours,s,1)
; 4th of July<BR> exten =>
s,9,GotoIfTime(*|mon|1-7|sep?afterhours,s,1)
; Labor Day<BR> exten =>
s,10,GotoIfTime(*|thu|22-28|nov?afterhours,s,1)
; Thanksgiving<BR> exten =>
s,11,GotoIfTime(*|*|25|dec?afterhours,s,1)
; Christmas Day<BR> exten =>
s,12,GotoIfTime(08:00-17:00|*|*|*?mainmenu,s,1)<BR> exten =>
s,13,Goto(afterhours,s,1)<BR> exten =>
s,14,Hangup<BR>-----</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=865131314-17022006><FONT face=Arial
color=#0000ff size=2>For your situation I would do something
like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=865131314-17022006></SPAN><SPAN
class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=865131314-17022006><FONT face=Arial
color=#0000ff size=2> exten =>
s,12,GotoIfTime(08:00-17:00|*|*|*?playsoundfile,s,1)</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2>[playsoundfile]</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2> exten => s,1,Playback(soundfile)</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2>-----</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff size=2>I
personally use a record extension to get my files on the server, striaght out of
the wiki, sort of:</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2>[205record]<BR>; Record voice file to /tmp directory<BR>
exten => 9205,1,Wait(2) ; Call 205 to Record new Sound Files<BR> exten
=> 9205,2,Record(/tmp/asterisk-recording:gsm) ; Press # to stop
recording<BR> exten => 9205,3,Wait(2)<BR> exten =>
9205,4,Playback(/tmp/asterisk-recording) ; Listen to your voice<BR> exten
=> 9205,5,wait(2)<BR> exten =>
9205,6,Hangup<BR>-----</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff size=2>If I
were to try and move the file to * from another PC, I'd probably upload said
file to my webserver then 'wget' it down to *.</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff size=2>Hope
this helps. There's nothing too special about it, but I'd really proud of
what we are going to be able to do with the awesome system.</FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff size=2>If
anyone sees any faux pas in my config, please let me know.</DIV>
<DIV dir=ltr align=left><BR></DIV></FONT></SPAN>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Bob McDowell<BR></FONT></P>
<DIV><SPAN class=865131314-17022006><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=865131314-17022006> </SPAN></DIV>
<DIV>
<HR tabIndex=-1>
</DIV>
<DIV><FONT face=Tahoma size=2><B>From:</B>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Faisal
Inam<BR><B>Sent:</B> Thursday, February 16, 2006 11:33 PM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> [Asterisk-Users] Playing
sound File using GotoifTime function<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I want to play a sound file using GotoifTime function.<BR>1) What should be
the appropriate format of this type of sound file?<BR>2) Is there any method to
copy this file into the destination directory using the browser of a PC other
than the asterisk PC (currently i am using cp to copy the file in
/var/lib/asterisk/sounds on asterisk PC)???<BR> <BR>Waiting for ur kind
reply !!</DIV>
<DIV> </DIV>
<P>
<HR SIZE=1>
Yahoo! Mail<BR><A
href="http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com"><U>Use</U></A><U></U><U>
Photomail</U></A> to share photos without annoying attachments.</BODY></HTML>