Here I'll try to put my efforts on installing Asterisk+Dahdi+Freepbx and other confs. A Recipe and Tips for the Configuration of Asterisk + FreePBX on Ubuntu 10.04

Script/Recipe

IMPORTANT! THIS IS EXPERIMENTAL AND FOR STUDY PURPOSE. THANKS!

Since 10.04 Version we'll be using Ubuntu packages of the Asterisk stack.

Problems found so far:

first, update and upgrade

apt-get update
apt-get upgrade

then install the core:

apt-get install asterisk sox asterisk-mysql asterisk-mp3 

Steps to take after script to configure ASTERISK

After running the above script/recipe, 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!

Install FreePBX Asterisk Manager

This part is obscure right I (DudaNogueira) was able to install, but after heavy hacks (permissions, and other wierd stuff). Still in progress

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/* /usr/share/asterisk/sounds/
echo "language=pt_BR" >> /etc/asterisk/sip_general_custom.conf

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

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 suggest to change the default password of things. Smart advice, right? Let's do it!

FreePBX Admin Password

Locking FreePBX on Apache

Check out here some adivices: [https://wiki.ubuntu.com/installingFreepbx]

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/Current (last edited 2010-07-31 21:44:44 by 187)