<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Doug Lytle wrote:
<blockquote cite="mid:476C1C90.3030807@drdos.info" type="cite">
<pre wrap="">BerkHolz, Steven wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Option 3 (I believe this is best, but am not sure where to start)
When asterisk is in night mode,
</pre>
</blockquote>
<pre wrap=""><!---->
I'm doing option 3, menu item on the IVR to ring the night bell. Plays
an awfully loud horn noise on the PA while ringing a phone out an the
plant floor every 15 seconds.
The breakroom and plant manager's phones are apart of the same pickup
group. Any of them can do a *7 to grab an incoming call.
exten => 4173,1,GotoIfTime(07:45-17:00|mon-fri|*|*?press-officehours,s,1)
exten => 4173,n,System(/bin/cp /usr/local/bin/bullhorn.call
/var/spool/asterisk/outgoing/bullhorn`date +%s`.call)
exten => 4173,n,Dial(SIP/4173,15,tT)
exten => 4173,n,Goto(analog-extensions,4173,1)
Doug
</pre>
</blockquote>
<br>
Dough,<br>
<br>
I see that you use "cp" to copy the call file to spool directory, that
is not recommended, use "mv" instead since it is a atomic command
whitch "cp" isnt.<br>
<br>
So an if you change it to :<br>
<pre wrap="">exten => 4173,1,GotoIfTime(07:45-17:00|mon-fri|*|*?press-officehours,s,1)
exten => 4173,n,System(/bin/cp /usr/local/bin/bullhorn.call /temp/bullhorn.call)
exten => 4173,n,System(/bin/mv /temp/bullhorn.call /var/spool/asterisk/outgoing/bullhorn`date +%s`.call)
exten => 4173,n,Dial(SIP/4173,15,tT)
exten => 4173,n,Goto(analog-extensions,4173,1)
</pre>
should solve it.<br>
<br>
<br>
/Mats<br>
</body>
</html>