Asterisk Print E-mail

SIP Configuration

Notes: You have to enable “SIP Direct inward dialing” in the voipGATE webinterface on www.voipgate.com. After having logged in click on “Settings” --> "Advanced" then on “Voip Settings” and then set “SIP Direct inward dialing” to “yes”. Click “Apply” to save the modifications.

---- START /etc/asterisk/sip.conf ----

[general]
bindport = 5060
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ilbc
allow=alaw
allow=ulaw

register => USERNAME:PASSWORD@sipregister.voipgate.com

[voipgate]
type=friend
disallow=all
allow=ilbc
allow=speex
allow=gsm
allow=alaw
allow=ulaw
username=USERNAME
secret=PASSWORD
host=sipregister.voipgate.com
canreinvite=no
context=FROM-VOIPGATE
insecure=invite

 

---- END /etc/asterisk/sip.conf ----

---- START /etc/asterisk/extensions.conf ----

[TO-VOIPGATE]
exten => _X.,1,DIAL(SIP/to-voipgate/${EXTEN},120)
exten => _X.,2,hangup ; the called party did not answer
exten => _X.,102,Playtones(busy) ; the called party is busy
exten => _X.,103,Busy(10)
exten => _X.,104,Hangup

[FROM-VOIPGATE]
exten => VOIPGATE_PHONE_NUMBER,1,Dial(SIP/your_sip_phone_01)

 

---- END /etc/asterisk/extensions.conf ----

 

Poll of the month

What is for you the most important argument in using VoIP?