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.
UPDATE (2006-12-05): This script probably doesn’t work anymore, as SAPOL nicely screwed up their website. :(
conf.py v0.3
There’s a small update to conf.py. This version fixes some formatting bugs with the channel and flags fields that ment that they would occasionally overlap in varying directions, depending on the length of the channel name. This version fixes the bug by doing tests to actualy see where the channel name ends, and going by that. So you can now download v0.3 of the script.