Timed announcements

lorsungcu
Posts: 3
Member Since:
2008-04-16

I've looked through the forums here and googled a bunch, but i cant seem to find a real good answer to my question. I'm building a system for my company, and we need a bell to sound at various times throughout the day (for breaks, etc). I've got the overhead paging working fine, but i cant figure out how to get the bell to sound at certain times; i found one other instance of someone in my situation, but i couldn't get the results i needed. is there some easy way to do this? or any way? i find it hard to believe that im one of the only people who need this feature. There must be a simple way of doing it, i just dont know how.

Thanks!



ethans
Posts: 128
Member Since:
2007-01-16
I wouldn't say "simple", per

I wouldn't say "simple", per se, unless you can find something canned.

Consider writing a script that is on a cron schedule and manipulates Asterisk call files:
http://www.voip-info.org/tiki-index.php?page=Asterisk+auto-dial+o...
It would have to use a custom context that plays a beep to a page group.

Or consider writing a script that uses a combination of the Asterisk manager and a custom context that is on a cron schedule.

--

OTTS - The Official FreePBX/Open Telephony Training Seminar
http://www.freepbx.org/open-telephony-training-seminar-0001

Come to the event in Vegas on May 20. There are a few spots left and air fare is still cheap to Vegas from major metros!



lorsungcu
Posts: 3
Member Since:
2008-04-16
Well, i got cron to copy the

Well, i got cron to copy the call file into the outgoing directory, but asterisk isnt tkaing it - it should immediatly open and execute it, then delete it, correct? None of that happened..here is what my file looks like:


Channel: sip/7773
MaxRetries: 2
RetryTime: 15
WaitTime: 5
Context: from-internal-custom
Extension: 33
Priority: 1



ethans
Posts: 128
Member Since:
2007-01-16
Couple things. First, you

Couple things. First, you cannot use cp, you must use mv. Second, chown asterisk:asterisk file.call.

Last, if you want the phone to auto answer, prefix the extension with *80 or whatever your intercom feature code is set to. For instance, the following works for me:

channel: Local/*804004@from-internal
maxretries: 2
retrytime: 60
waittime: 60
context: from-internal-custom
extension: 33
priority: 1

What is the contents of your from-internal-custom context?

--

OTTS - The Official FreePBX/Open Telephony Training Seminar
http://www.freepbx.org/open-telephony-training-seminar-0001

Come to the event in Vegas on May 20. There are a few spots left and air fare is still cheap to Vegas from major metros!



lorsungcu
Posts: 3
Member Since:
2008-04-16
if i use mv, how do i make

if i use mv, how do i make it recurring? Do i want the overhead extension to have an asterisk or the virtual extension that is being used to page it? 33 is the overhead and 7773 is the extension i was going to use to page it.

Here is the relevant parts of from-internal-custom.


;;Overhead paging
exten => *33,1,Dial(console/dsp,20,A(hail))
exten => *33,2,Hangup()

;;Timed bells, announcements
exten => 7773,1,Answer
exten => 7773,n,Wait(1)
exten => 7773,n,Playback(bell)
exten => 7773,n,Macro(hangupcall,)

while were at it, i cant seem to get it to play a sound when i page - i'd like it to pick up, play the sound and then let me speak, but it doesnt play anything (the logs say it is, but nothing comes out. am i formatting something wrong?)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.