Working the deals

So great things are brewing in the works right now as far as business deals go, things that would make my life so much easier financial, stress wise, and work load. I’ve got a hosting project in the works that might triple our current customer base, as well as a screen printing project that could turn out to be great. I don’t want to say anything else in fear of jeopardizing them, but as soon as I have news I will be sure to post it.

For those of you familiar with Asterisk, I wrote a kewl, simple little system for recording voice prompts. Basically the way it works is that I identify every prompt/recording with a 3 digit code and then reference the recording by that ID. Here is the code I use the code to record and play them:

[recording-system]
; Voice Recording System
exten => s,1,Wait(1)
exten => s,2,Background(/usr/local/share/asterisk/sounds/802)
exten => 1,1,Goto(recording-system-play,9,1)
exten => 2,1,Goto(recording-system-record,9,1)
[recording-system-record]
exten => 9,1,Wait(1)
exten => 9,2,Background(/usr/local/share/asterisk/sounds/804)
exten => _XXX,1,Wait(1)
exten => _XXX,2,Set(lastPlayedRecording=${EXTEN})
exten => _XXX,3,Record(/usr/local/share/asterisk/sounds/${EXTEN}:gsm)
exten => _XXX,4,Wait(1)
exten => _XXX,5,Background(/usr/local/share/asterisk/sounds/805)
exten => 1,1,Goto(recording-system-play,${lastPlayedRecording},1)
exten => 2,1,Goto(recording-system-record,${lastPlayedRecording},1)
[recording-system-play]
exten => 9,1,Wait(1)
exten => 9,2,Background(/usr/local/share/asterisk/sounds/803)
exten => _XXX,1,Wait(1)
exten => _XXX,2,Set(lastPlayedRecording=${EXTEN})
exten => _XXX,3,Playback(/usr/local/share/asterisk/sounds/${EXTEN})
exten => _XXX,4,Wait(1)
exten => _XXX,5,Background(/usr/local/share/asterisk/sounds/805)
exten => 1,1,Goto(recording-system-play,${lastPlayedRecording},1)
exten => 2,1,Goto(recording-system-record,${lastPlayedRecording},1)

You then just reference every message with either Background(ID#) or Playback(ID#). If anyone finds this useful, post here, I’d love to hear about your implementation/modification.

Anyways, I’m off to finish a Nagios configuration for my network, I’ll share some stuff on that tomorrow. Take it easy…

“A friendship founded on business is a good deal better than a business founded on friendship.” - John D. Rockefeller

No Comment

No comments yet

Leave a reply