image_alt_text

Archive for the 'Blog' Category

19

Aug/10

FreePBX – Common Voicemail Box

Thursday, August 19th, 2010

Overview

I have several extensions on my Asterisk / FreePBX box but currently only one landline. Ring groups solved the problem of one incoming call ringing multiple handsets but there was only one official solution to sharing voicemail.

Voicemail Blasting (VMB)

VMB is a way of disseminating incoming voicemail to multiple voicemail boxes. For example someone lease a message on voicemail for one extension. When the person has finished leaving a message, VMB copies that message and puts it into designated extension voicemail boxes for other extensions to receive. The problem with this setup is that the voicemail may be heard from one extension and deleted but it still remains on others.

Symbolic Links To The Rescue

I found a neat trick to fool FreePBX / Asterisk to get multiple voicemail boxes pointing to one. The great point about this is that each extensions keeps most of their settings separate so things like password can be different for each extension but the messages are shared. This means one person can delete the message from one phone and another user will not see the message (maybe except in the trash).

How To

I have FreePBX running on a Ubuntu 10.04 install. First thing is to create all the extensions and enable voicemail on all of them.

Identify the one extension which will be shared amongst all others e.g 200.

Go to /var/spool/asterisk/voicemail/default Check if there’s a folder with the extension number of your designated voicemail. If not leave a message on extension 200 and it should create one.

Remove all other extensions which should share the same inbox as extension 200, e.g 201 and 202 sudo rm -rf 201 and replace 201 with 202 etc.

Switch user to the Asterisk user. This is needed because the original directories were “owned” by the Asterisk user. Once created also ensure the symbolic links have at least the same or more permissions as extension 200 (or the shared voicemail box) sudo su asterisk

Create a symbolic link to 200 with the previously removed folder names ln -s 200 201ln -s 200 202

Summary

This is a cool trick which should be transparent to FreePBX / Asterisk unless they change the way voicemail works. Updates and modules should not see any difference because the symbolic links point to a real directory.

Also it is easy to revert any extension back to having their own voicemail box or even create multiple shared voicemail boxes by removing the sym link and creating a new one to point to another extension directory.

How to make multiple extensions use a common voicemail box

25

Apr/10

Week 2/4(ish) Without Internet At Home

Sunday, April 25th, 2010

Due to a BT error I have been living at home without Internet for just over two weeks now. In that time I have got a new mobile phone which I will review once I get the Internet back.

The difficulties I’m facing is the number of premium numbers I have to dial to get things sorted like changing of addresses etc. A good side is most evenings and weekends I have been busy decorating the new place before I move in.

I have been using my new phone for around 2 week now but for some reason the browser has difficulties clicking on site links. I downloaded and tried using Opera Beta web browser but it too sometimes has problems.

I just have to hold out for at least another 2 weeks till I can order a new telephone line and then my blogging should be back to normal.

9

Apr/10

Halifax New Home Welcome Pack

Friday, April 9th, 2010

I was very shocked when Halifax sent us a welcoming pack. It’s these little things that makes me glad I bank with them.

Can’t wait to move my some accounts from Santander to Halifax too.

11

Jan/10

WordPress Incorrect Username / Password With VSFTP

Monday, January 11th, 2010

I was getting an error logging into my FTP/SFTP server via WordPress when I tried to upgrade a plugin or two. It was saying the username / password was incorrect yet I was able to log in using an FTP client.

I checked all my config settings for both VSFTP and Apache but ended up restarting both services which made it work. I did not see any errors in VSFTP logs and no relevant entries in Apache. One those strange occurrences I guess.

12

Dec/09

Low Car Battery Moment

Saturday, December 12th, 2009
Halfords smart charger

Had car trouble yesterday so I had to hook up the battery charger by Halfords.

Charging Battery

It took between 5-6 hours to charge from just under 12v left in the battery. I was luck enough to make it home when I left my car light on whilst I was at work (it was a bad day to say the least). In the end it did the job and now the car is working… for now.