Asterisk PBX

Parametri di configurazione

La configurazione allegata sotto è valida per poter utilizzare il servizio VoIP di Messagenet con il centralino VoIP opensource ASTERISK:

nat=no if public IP
nat=yes if natted IP
allow=g729 if you have g729 licences (you can buy it on www.digium.com)
allow=ilbc if you want to use ilbc
=========== /etc/asterisk/sip.conf ===========
[general]
port=5060
bindaddr=0.0.0.0
context=sipin
nat=yes
disallow=all
allow=alaw
; allow=g729
; allow=ilbc
realm=sip.messagenet.it
rtptimeout=60
rtpholdtimeout=300

; incoming calls
register => :@sip.messagenet.it:5061/

[sip.messagenet.it] ; outgoing calls type = peer
auth = md5
username = 5xxxxxx
fromuser = 5xxxxxx
secret = yyyyyyy
host = sip.messagenet.it
port = 5061
qualify = yes
insecure = very

============== /etc/asterisk/extensions.conf ==============
calling with messagenet peer, on outgoing context:

[outgoing_context]
exten => _[0356].,1,Dial(SIP/${EXTEN}@sip.messagenet.it)

[sipin]
exten => _NUMERONELDIALPLAN,1,Dial(somethinglocal)
============================