Asterisk & FreePbx – Voicemail toggle

VoicemailIMHO many users don’t want the voicemail funct, but they want be able to access to the user portal (ARI) to see the CDR call list and the other stuff or, more easily, they want to activate-deactivate individually voicemail funct using a code on the phone, as in other pbx.

So far this feature has not been implemented in Asterisk/FreePBX: so I have implemented a very simple voicemail toggle, so a user can enable/disable the voicemail (like the Follow-me). Continue reading

Copying files from EXT3 to FAT

FatVsXFSThere are times which that is convenient to use USB disks formatted with the old FAT file system, i.e. in office environment with mixed operating system.

In my situation we have a linux server (using ext3 file system), with several SMB shared folder used by all the MAC/Linux/Windows workstation:  a very cheap backup system consist in a USB disk connected directly to the server, and a daily backup process that copy all the files from shared folders to this disk. In emergency this disk become the only way to get all files.

From here the most convenient way to use commonly a USB disk is to format it using the old FAT file system !

Continue reading

Connect Php code in Linux to Ms Sql Server using Freetds

Using Freetds we can connect php code in Linux to Microsoft Sql Server.

We start from a fresh installation of Ubuntu 11.04.

# apt-get install dpkg-dev
# apt-get install apache2
# apt-get install php5
# /etc/init.d/apache2 restart

To check that php5 works fine

# php -v
PHP 5.3.5-1ubuntu7.10 with Suhosin-Patch (cli) (built: Jun 19 2012 00:54:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Now if all works fine you can continue. Click here to continue reading Php code in Linux to Ms Sql Server using Freetds