[asterisk-users] best way for night ringer??
MatsK
mkn0014 at gmail.com
Fri Dec 21 14:35:49 CST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071221/eb1a22a7/attachment.htm
More information about the asterisk-users
mailing list