Aleksandar's computer workshop

Let's see what Aleksandar was fixing today.
My findings, tips & tricks related to computers, internet, programming and other stuff I was working with.

Asterisk@Home VoipBuster dial in account

Trunk name:


voipstunt


Peer details:


allow=alaw&ulaw&gsm
auth=md5
canreinvite=no
context=from-pstn
disallow=all
dtmfmode=inband
fromdomain=voipstunt.com
fromuser=###USER###
host=sip.voipstunt.com
insecure=very
nat=yes
progressinband=yes
realm=voipstunt.com
regseconds=3600
secret=###PASSWORD###
type=peer
username=###USER###


User Context:


###USER###


User Details:


allow=alaw&ulaw&gsm
canreinvite=no
context=from-pstn2
dtmfmode=inband
insecure=very
qualify=yes
secret=###PASSWORD###
type=friend


Register string:


###USER###:###PASSWORD###@sip.voipstunt.com/###DEFAULTEXTENSION###

FreePBX Music on Hold troubleshooting

To add custom MP3 files to Music on Hold folder you can use FTP, SCP 
or any other file transfer method.
Upload the file to this location:
/var/lib/asterisk/mohmp3
After that yo have to "fix" the security rights with:
chown -vR asterisk.asterisk /var/lib/asterisk/mohmp3
chmod -v 775 /var/lib/asterisk/mohmp3
chmod -v 664 /var/lib/asterisk/mohmp3/*
In case you still want to use web interface and plan to upload larger mp3 music on hold files, change the “max filesize” from 2M to 20M in
nano /etc/php.ini
More details related to FreePBX Production Install Guide (CentOS v5.x, Asterisk v1.4.x, FreePBX v2.4.x) visit this URL: