Archive for the ‘Asterisk’ Category

After looking around and not finding any decent script to read the weather for Asterisk, I decided to write my own.

The code is downloadable here. Save the file to /var/lib/asterisk/agi-bin/getweather.agi.

To use this script in Asterisk, copy the following into /etc/asterisk/extensions.conf:

exten => 997,1,Answer
exten => 997,2,agi,getweather.agi
exten => 997,3,Hangup

Update 6/6: I’ve updated this script to v1.1 now. I’ve fixed up a parsing error and also added more wind directions – the BOM add more than I thought ;)

If you’re an Australian running asterisk then you’ll probably want a heap of Australian sounding .gsm files for the voicemail and other menus. OpenVoice has done just that – and opened a lot up for free download. They also have AtHome and Premium packages for those wanting a more complete selection.

Yay, I’ve just completed the move to put asterisk on it’s own machine. Means I can play a bit more! I’ve set it up with 1.2.0, and actually put in SRV records in the crc.id.au domain – which in theory lets anyone call me just by calling crc.id.au. I had one issue while moving across, but the guys in #asterisk on irc.freenode.net rock :) I’ve also updated my e164 records – so if you use asterisk and e164′s enum service, you can call me for free – transparently!