Im behind a NAT Firewall, so i need a setup that can work in this condition. Here is part of my setup:
sip.conf
externip=200.42.xxx.xxx
nat=yes
register => [EMAIL PROTECTED]:MyPassword1:[EMAIL PROTECTED]
register => [EMAIL PROTECTED]:MyPassword2:[EMAIL PROTECTED]
[301]
type=friend
regexten=301
username=301
secret=xxxxx
callerid="Agent #1" <301>
host=dynamic
nat=yes
canreinvite=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
[sip.broadvoice.com]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=305xxxxx22
secret=MyPassword1
username=305xxxxx22
insecure=very
context=from-broadvoice
authname=305xxxxx22
dtmfmode=inband
dtmf=inband
;Disable canreinvite if you are behind a NAT
canreinvite=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
[sip.broadvoice.com1]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=305xxxxx66
secret=MyPassword2
username=305xxxxx66
insecure=very
context=from-broadvoice
authname=305xxxxx66
dtmfmode=inband
dtmf=inband
;Disable canreinvite if you are behind a NAT
canreinvite=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
[broadvoice-incoming]
context=from-broadvoice
dtmf=inband
dtmfmode=inband
fromdomain=sip.broadvoice.com
host=sip.broadvoice.com
insecure=very
nat=yes
secret=MyPassword1
type=user
user=305xxxxx22
username=305xxxxx22
[broadvoice-incoming2]
context=from-broadvoice
dtmf=inband
dtmfmode=inband
fromdomain=sip.broadvoice.com
host=sip.broadvoice.com
insecure=very
nat=yes
secret=MyPassword1
type=user
user=305xxxxx66
username=305xxxxx66
extensions.conf
[from-broadvoice]
exten => s,1,Answer
exten => s,2,Wait(2) ; Waits 2 Seconds Before Playing the Welcome Msg
exten => s,3,Playback(welcome-message)
exten = > s,4,Dial(SIP/301,25,Tt)
exten => s,5,Hangup
/etc/hosts
147.135.0.128 sip.broadvoice.com
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
