TRANSLATIONS: there is an ongoing translation to pt-br here: [http://wiki.ubuntu-br.org/VoipNoUbuntu/Servidor]

Here I'll try to put my efforts on installing Asterisk+Dahdi+Freepbx and other confs. A Tutorial and also a script for easy installation.

That already have some improvements i found on the available script here, I am right now working on adapting this script to Karmic.

Script

IMPORTANT! THIS IS THE FIRST VERSION OF THE KARMIC SCRIPT CHECK OUT THE CURRENT SCRIPT (for 10.04) THANKS!

LATEST INSTALLATION SCRIPT FOR KARMIC(Asterisk 1.6.2.2, FreePBX 2.6.0 and Dahdi 2.2.1): http://dudanogueira.com.br/ubuntu/AsteriskOnUbuntuLatest.sh

Here you can get a updated script for Ubuntu 9.10 and german voiceprompts: http://www.power-on.at/VOIP/AsteriskOnUbuntuCurrent_mod_1.5.sh

You can find a modified version of this script for Ubuntu 10.04 and spanish voiceprompts: http://masterline-logistics.com/~alex/AsteriskOnUbuntu.sh

Steps to take after script

After running the above script, you can setup channels and fine tune your install with the steps below. Be Aware that the steps above may change. Feel free to report issues on the bottom of this page.

Configure Dahdi (Using here a X100P)

I assume that your card has been successfully dected on lspci output, and you will run this commands with root privileges.

[channels]
language=pt_BR
context=from-trunk
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1

The asterisk CLI mode, shows you what happens when your digital PBX place or receives a call. Now is the time you call the line number attached to the line that should be connected to the card. You should see something like:

-- Starting simple switch on 'DAHDI/1-1'
  == Starting DAHDI/1-1 at from-pstn,s,1 failed so falling back to exten 's'
  == Starting DAHDI/1-1 at from-pstn,s,1 still failed so falling back to context 'default'
    -- Hungup 'DAHDI/1-1'

Good! Now let's set up the PBX, keep following this amazing tutorial!

Update FreePBX modules

You should have everything almost ready to go! Now let's fine tune FreePBX and add some some local sounds!

Teach asterisk/freepbx your language

This steps are pt_BR specific (Thanks to Disc-os Team! released under CC!!), but you can find other language sounds on Internet and some asterisk official sounds here: http://downloads.asterisk.org/pub/telephony/sounds/ [en, es, fr only] * NOTE: If you are going to use Disc-os sounds, be aware that you need to set the structure of asterisk directory to the old layout. To do that, change languageprefix = no on /etc/asterisk/asterisk.conf as root, run:

mkdir /usr/src/disc-os
cd /usr/src/disc-os
wget -c http://downloads.sourceforge.net/project/disc-os/Disc-OS%20Sounds/1.0-RELEASE/Disc-OS-Sounds-1.0-pt_BR.tar.gz
tar -xzvf Disc-OS-Sounds-1.0-pt_BR.tar.gz
cp -rf sounds/* /var/lib/asterisk/sounds/
echo "language=pt_BR" >> /etc/asterisk/sip_general_custom.conf

# NOT WORKING!!! RESEARCH SOLUTION
emailsubject=[PBX] ${VM_MAILBOX} MSG ${VM_MSGNUM}
emailbody=${VM_NAME}\n\n Nova mensagem! ${VM_DUR} DE: ${VM_CALLERID} na sua caixa de mensagens  ${VM_DATE} \n\n

Enable mail delivering of voicemail

defaults
account asterisk
host smtp.gmail.com
from youruser@gmail.com
tls on
tls_certcheck off
port 587
auth login
user youruser
password yourpasswd
logfile ~/.msmtp.log
account default : asterisk

Test your environment

On the admin page (http://server.ip/admin), let's create two extensions, 1000 and 1001

Now, you can register over you sip server using a software like Ekiga or Twinkle (just to name a few, any sip software should work. You can also create IAX extensions), and make calls between the extensions!

Point the channel to a specific extension

SECURITY! locking up your pbx

  • When you get to the FreePBX you will see some alert messages. They say to change the default password of things. Smart advice, right? Let's do it!

FreePBX Password

Mysql Database Password

Changing Asterisk Manager Password

Setting up a Backup strategy

You can use the Backup/Restore module to backup all files (VoiceMail, System Confs, System Records, CDR, etc) It's as easy as install the module on the admin, the go on Tools, then backup and restore. Once you setup a backup routine, it will be available under /var/lib/asterisk/backups [6]

KNOWN ISSUES / NEED FEATURE

REFERENCES

AsteriskOnUbuntu/Jaunty (last edited 2010-07-24 23:31:37 by 187)