Asterisk-Addons 1.4.8 Now Available : Voip Phreak

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

Browse >

/ Archive by category 'Asterisk 1.4'

This is a minor release with a single fix for chan_ooh323c from issue #14116, which could cause a crash within the channel driver. If you are not using chan_ooh323c, there is no need to upgrade.

For a full list of changes in this release, please see the ChangeLog:

Thank you for your continued support of Asterisk!

# 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 release is a significant bug fix update for the 1.4 release series.

The following list of bugs were resolved with the participation of the community, and this release would not have been possible without your help!

* Fixed datastore handling crashes in app_queue.c.

- Closes issues 14086. Reported by ZX81. Tested by: ZX81, festr.

* Update autosupport script to supply info for both Zaptel and DAHDI

in 1.4 and be sure to run dahdi_test in 1.6.x and trunk instead of

zttest.

- Closes issue 14132. Reported by and patch contributed by: dsedivec

* Don't overflow when paging more than 128 extensions. The number of available

slots for calls in app_page was hardcoded to 128. Proper bounds checking

was not in place to enforce this limit, so if more than 128 extensions were

passed to the Page() app, Asterisk would crash. This patch instead

dynamically allocates memory for the ast_dial structures and removes the

(non-functional) arbitrary limit. This issue would have special importance

to anyone who is dynamically creating the argument passed to the Page

application and allowing more than 128 extensions to be added by an outside

user via some external interface.

- Closes issue 14217. Reported by and patch contributed by: a_villacis

* Do not crash if we are not passed a followme ID.

- Closes issue 14106. Reported by and patch contributed by: ys

* Change the way the T.38 SDP attribute handling to make it more liberal in

what it accepts, and more strict in what it sends.

- Closes issue 13967. Reported by: linulin. Patches contributed by:

arcivanov

In addition to the issues cited above, several issues related to call parking have been resolved, thereby making Asterisk call parking more robust.

See issues 13820, 13747, 14066, 14228, 13854, 12854, and 13139 for more information. Special thanks to otherwiseguy, davidw, bluefox, waverly360, kobaz, Adam Lee, krisk84, and murf.

For a full list of changes, see the ChangeLog:

Thank you for your support of Asterisk!

The Asterisk.org development team has published Asterisk 1.4.23-rc4.

A number of critical issues have been resolved since the last release candidate for 1.4.23.  We hope to have this be the final release candidate.  If all goes well, 1.4.23 will be released early next week.

For a full list of changes, see the ChangeLog:

Testing of this release candidate would be very much appreciated.  One area that has received a lot of changes is the handling of call parking, so that is an area that could use some special attention in testing.

Thank you for your support of Asterisk!

Tonight we were debugging a customers PBX system for them because of what seemed like a really simple issue with their company directory. As they are located in a bi-lingual area they wanted to have english and french menus available to them. They use a combination of Asterisk 1.4 and FreePBX 2.5.

With this software they already had the Languages module available to them, so they were able to create one main IVR, and then several branching IVR's dependant on the language that was selected.

In this case, English and French. So, that's all well and good, then we noticed that when you dial the company directory from the French menu, the prompt for the instructions (and only that prompt) is always played in english, instead of our desired language of french. This is really weird. So, we debugged it a little bit and found this in the logs:

-- Executing [[email protected]:2] Set("DAHDI/1-1", "CHANNEL(language)=fr") in new stack
-- <DAHDI/1-1> Playing 'dir-intro-oper' (language 'fr')
directory|default|from-did-direct|lo: -- Playing 'dir-instr' (language 'en')

Hmm, that's weird - it says it's playing it in french, but it's playing it in english that first time. Then it goes on to correctly say that it's playing the english soundfile, not the french one. Hm, even weirder. So, maybe it's permissions.

  • Replaced the sound files a couple times, deleting in between
  • Re-did the permissions
  • Symlinked them to various directories
  • Added a hard coding of "fr/" to all soundfiles in the FreePBX AGI - Directory
  • Ensured we have support for en and fr enabled
  • Manually created the Directory with another Language and Misc Destination in FreePBX (complex!)
  • Asked on IRC

Well, if you're reading this, none of that probably worked for you either. So, this is what we did - not sure how "right" it is, but it avoids this issue if you're trying to run your IVR with a company directory in english and french. It's pretty simple too.

First, login to your FreePBX interface.

Go to Custom Destinations, and Create a new one

Custom Destination: from-internal-custom,s,1
Name: French-Directory

Now press the submit button.

Now Flip over to the Setup Tab of FreePBX and go to your French IVR menu with the Directory in it.

Change the destination to go from the default (#) or whatever you have it set to, to instead go to your new Custom Destination (French-Directory)

Now you're done the setup in FreePBX.

SSH to your PBX system, and then edit the custom extensions file

# sudo nano /etc/asterisk/extensions_custom.conf

Now Paste the following in there

[from-internal-custom]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Set(LANGUAGE()=fr)
;exten => s,n,AGI(directory,${DIR-CONTEXT},from-did-direct,${DIRECTORY:0:1}${DIRECTORY_OPTS}o)
exten => s,n,Directory(default|from-did-direct|lo)
exten => s,n,Playback(vm-goodbye)
exten => s,n,Hangup()
exten => o,1,Goto(from-internal,${OPERATOR_XTN},1)

Exit and save the file then reload asterisk.

# sudo asterisk -rx "reload"

Now, you should test the calling into your menu to make sure the proper directory is working. Does for us. Comments are open if anyone has better suggestions, or a way to fix the directory agi that comes with FreePBX to properly support the instructions/intro being played in french (or any other language) instead of only english.

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!

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

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

This update for Asterisk includes a security fix for chan_iax2. Please see the associated security adivisory for more details. Thank you for your continued support of Asterisk. Which will rotate them every minute. Exit and save your crontab.


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.