Categories Archives: Code

Automatically purge old voicemail on Asterisk/FreePBX/Trixbox

Run this nifty Perl script daily or weekly via cron. This will keep your voicemail from overflowing and unknowingly rejecting new voicemail. #!/usr/bin/perl # # Script to expire voicemail after a specified number of days # by Steve Creel # # Directory housing the voicemail spool for asterisk $dir = “/var/spool/asterisk/voicemail”; # Context for which […]

Easy Javascript-based Bookmark Link

Here’s a simple Javascript-based bookmarking script for your site. It automatically populates the page name and URL so you don’t have to. Put this in the <HEAD>: <script language=”javascript” type=”text/javascript”> function addToFav() { if(window.sidebar){ window.sidebar.addPanel(document.title, this.location,””); }else{ window.external.AddFavorite(this.location,document.title); } } </script> Then, you can add a link in your <BODY>: Bookmark Us!