Posts tagged ‘Asterisk’

NOTE: This info is VERY outdated and doesn’t work anymore. You should look at the new script for services provided by Reverse Australia.

So since I found the Australian gray pages on a lovely web site, I wanted to integrate this info into asterisk. 30 minutes of perl hacking later, and it works. enjoy :)

The following script & example will enable a reverse lookup of incoming caller ID and replace the name section with the lookup. It also allows you to maintain a comma separated file in number,name format. If this finds a match, it will add the name in the file to the caller ID string. If nothing is found in the file, it will consult the grey pages.

Updated 24/8/07: changed script URL to reflect new grey pages site.

Continue reading ‘Asterisk and the Australian grey pages’ »

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 ;)