The result of a blogging accident

SA Police Speed Camera Monitor for Asterisk

I’ve written a PHP-AGI script that uses Asterisk 1.2, PHP 4.3 and Festival to download and speak the locations of speed cameras published on the SA Police website. For high-traffic PBX systems, it may be desirable to cache the locations on the local machine to reduce PBX load.

Because the script generates wave files on demand, on some systems multiple threads running it may conflict with one another.

Included are extra prompts needed for the script. They are for demonstration purposes only - if you want to put it in your own system, you’ll need to rerecord the prompts.

Download v0.1 of the script.

UPDATE (2006-12-05): This script probably doesn’t work anymore, as SAPOL nicely screwed up their website. :(