Japanese Patch and Prompts for Asterisk Released | ワークスタイル・働き方変革対応 UCプラットフォーム・サービス FoNEX(フォネックス)をはじめ、コミュニケーションに関わるシステムをトータルサポート | 株式会社クルーグワークスタイル・働き方変革対応 UCプラットフォーム・サービス FoNEX(フォネックス)をはじめ、コミュニケーションに関わるシステムをトータルサポート | 株式会社クルーグ

Japanese Patch and Prompts for Asterisk Released

Digium has officially included patches to the open source Asterisk source code that were written by QLOOG and members of the Japanese Asterisk community in the latest SVN version of Asterisk versions 1.8, 11, 12, and 13. A matching set of voice prompts recorded by QLOOG and featuring “Japan’s Allison,” Ryoko Sonoda, is already available from Digium’s servers.

We’re just a short while away from the next stable release that includes these patches, but those who are eager to try them out can get the latest version from SVN by following the steps below.

Vanilla Asterisk Installation

1) Navigate to /usr/src and checkout the source code by running
svn checkout http://svn.asterisk.org/svn/asterisk/trunk asterisk

2) Change to the “asterisk” directory
cd asterisk

3) Configure the compilation
*You may need to resolve dependency issues here depending on your flavor of Linux.

4) Once everything is configured, run
make menuselect
From here, press the arrow key and move down to “Core Sound Packages” and press enter. On the next screen, you can toggle the sound packages you would like to install by pressing the space bar. We’ll need CORE-SOUNDS-JA in whatever formats you’d like – maybe ulaw, alaw, and gsm are a good place to start. Press ‘x’ when you’re done to return to the command line.

5) Compile the source code by running
make install

The sound files and Asterisk are compiled and installed. Try them out by editing extensions.conf with a test entry as follows:

exten => 9999,1,Set(CHANNEL(language)=ja)
exten => 9999,n,Playback(demo-echotest)
exten => 9999,n,Echo
exten => 9999,n,Playback(demo-echodone)

FreePBX Installation

The patches are already included in Asterisk 11 and 12 bundled with the latest FreePBX Distro. Why not test drive the latest and greatest FreePBX 12 while you’re at it? You can get the ISO from http://schmoozecom.com/distro-download.php  QLOOG also donates bandwidth to the FreePBX project, so if you’re in Asia, you might get better speeds by downloading from our server at http://downloads10.freepbxdistro.org/ISO/

The only remaining thing to do afterward is to get the sound files themselves. Head over to http://downloads.asterisk.org/pub/telephony/sounds/ and choose your preferred format. On your FreePBX machine use the following steps to install the prompts.

1) Navigate to the Asterisk sounds directory
cd /var/lib/asterisk/sounds

2) Make a directory for the Japanese prompts and navigate there
mkdir ja && cd ja

3) Use wget to download the pack of sounds in the format you’d like (ulaw, alaw, gsm recommended)
Ex: wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-core-sounds-ja-ulaw-current.tar.gz

4) Untar the files into the current directory
Ex: tar xvf asterisk-core-sounds-ja-ulaw-current.tar.gz

Temporary measure: FreePBX appears to use an antiquated “goodbye” sound for voicemail instead of the current “vm-goodbye”. We’ll get this fixed up momentarily, but for now, make a symlink to cover the missing file.
Ex: ln -s vm-goodbye.ulaw ./goodbye.ulaw

To test, go to the FreePBX GUI and set the language on the extension you’d like to test from to “ja” under Applications>Extensions. Not all features in FreePBX are functional yet, but common functionality like conferencing and voicemail should be accessible in Japanese.

If you have any questions or comments about the prompts or patches, feel free to Contact Us for more information!