Doug Lytle wrote: > BerkHolz, Steven wrote: > >> Option 3 (I believe this is best, but am not sure where to start) >> When asterisk is in night mode, >> >> >> > > 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 >
Dough, 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. So an if you change it to : 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) should solve it. /Mats
_______________________________________________ --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
