Randomizing your voicemail greetings with Asterisk to annoy friends and family! : Voip Phreak

By: Voip Phreak  09-12-2011
Keywords: Security, Asterisk

Browse >

/ Archive by category 'Asterisk 1.2'

# mkdir /var/spool/asterisk/random-vm

Now, copy all your gsm files to this directory

# mv /home/admin/*.gsm /var/spool/asterisk/random-vm

Now, create a symlink from busy.gsm to unavail.gsm

# ln -s unavail.gsm busy.gsm

# cd /var/spool/asterisk/random-vm
# nano vmscript.sh

And using your favourite editor (nano for us. yes, we're not that nerdy) paste the following in.

#!/bin/sh

# done!

All you should have to do now, is change the permissions, and then add it to cron and you'll be set.

Change permissions like this

# chown -R asterisk:asterisk /var/spool/asterisk/random-vm
# chmod +x /var/spool/asterisk/random-vm/vmscript.sh

Add it to cron like this

# crontab -e

then add the following line

Exit and save your crontab. Which will rotate them every minute. Obviously, if you get like 30 calls a minute you may run into trouble, but for a simple house line, this works great, and always keeps callers guessing!

UPDATE

turns out it wasn't fully randomizing the messages as I intended. To get this to work, simply change the script above from

#!/bin/sh

to

#!/bin/bash

and then change

number=`expr $(date +%S) % 6`

to

number=$(($RANDOM % 6))

Now it'll rotate as expected.

UPDATE

This update for Asterisk includes a security fix for chan_iax2. Please see the associated security adivisory for more details:

These updates are a fix to a previous security release (released as versions 1.2.31, 1.4.22.1, and 1.6.0.3).

The new versions are being released after additional testing revealed some issues with the way that scanning for users was blocked. Those issues have been corrected in this release.

This security issue affects the 1.2, 1.4, and 1.6 series of Asterisk.

Also note, that Asterisk 1.6.0.4-rc1 was released yesterday prior to the security update. That release has been removed as there will be no 1.6.0.4 release, but rather will be reincarnated as 1.6.0.6-rc1. The reason for the dead release is to avoid 5 digit release numbers.

ChangeLogs for the various releases are available at:

Thank you for your continued support of Asterisk!

This update for Asterisk includes a security fix for chan_iax2. Please see the associated security adivisory for more details:

This security issue affects the 1.2, 1.4, and 1.6 series of Asterisk. Asterisk releases 1.2.31, and 1.4.22.1 only contain the security fix.

Asterisk release 1.6.0.3 has additional changes from 1.6.0.2, including a fix to the Makefile that caused menuselect to break in certain cases.

Also, some issues related to memory leaks and more appropriate SIP dialog responses when receiving 4XX messages have been fixed.

http://downloads.digium.com/pub/asterisk/ChangeLog-1.2.31

Thank you for your continued support of Asterisk!

This security issue affects only the 1.2 series.

Thank you for your continued support of Asterisk!

The information in this article was current at 06 Dec 2011

Keywords: Asterisk, Security

Contact Voip Phreak

Email - none provided

Print this page

Other products and services from Voip Phreak

09-12-2011

Asterisk-Addons 1.6.1.0 Now Available : Voip Phreak - asterisk

This release fixes a couple of issues with realtime music on hold that could cause Asterisk to crash, and an issue that caused hungup channels to stay up, leading to 100% CPU usage. This release maintains compatibilty of the Asterisk-Addons package with the Asterisk 1.6.1 series of releases, since it is possible for API changes to occur between 1.6.x releases. Also see the CHANGES file for useful information about what is new in Asterisk 1.6.1.


09-12-2011

Top Twelve Ways to Use Voice Over Internet Protocol in your Business : Voip Phreak

In this article we will demonstrate that Voice over internet protocol is a very powerful technology that transcends your normal latest greatest technical tool that is being introduced but you can't see how it applies to you. As the voice component of IOVC strategy and technology, we will list capabilities that you can use to reduce your business expenses and improve your ability to attract customers using just this one technical component.


09-12-2011

Asterisk-Addons 1.6.1.0 Now Available : Voip Phreak - asterisk addons

This release maintains compatibilty of the Asterisk-Addons package with the Asterisk 1.6.1 series of releases, since it is possible for API changes to occur between 1.6.x releases. If you are not using chan_ooh323c, there is no need to upgrade. Thank you for your continued support of Asterisk. Archive by category 'Asterisk Addons.


09-12-2011

Voice Over Ip [voip] – Softwares Can Aid in the Control of Many Business Activities : Voip Phreak

What is [VOIP] Telephony System Management?: Integration into global telëphone number system: While the traditional Plain Ancient Teletelephone System and mobile phone networks share a common global average which allocates and identifies any specific telephone line, there is no widely adopted alike customary for networks.


09-12-2011

Aastra Introduces two Entry Level phones to their SIP product lineup : Voip Phreak

Offering up to 6 lines with call appearances, full duplex speakerphones, intercom, paging and auto answer features as well as XML browser capabilities, these SIP phones are ideally suited for regular telephone usage in small and large business environments as well as enterprise and home-based applications.


09-12-2011

Asterisk-Addons 1.4.8 Now Available : Voip Phreak

As they are located in a bi-lingual area they wanted to have english and french menus available to them. All you should have to do now, is change the permissions, and then add it to cron and you'll be set. This update for Asterisk includes a security fix for chan_iax2. Don't overflow when paging more than 128 extensions. Thank you for your continued support of Asterisk.