Sip softphone registering to public ip address

Hi,

I just put an asterisk box up on a public ip address and intend to be able to register sip softphones (xtens) to this box and make calls. I previously had the box running on a LAN ie both the box and peers were all using local addresses. The machine had previously a very basic setup and all I thought I had to do was to change where the sip softphone pointed to register - I was wrong

sip.conf
[2615]
type=friend
context=xiptel
username=2615
callerid=Robert
host=dynamic
;defaultip=192.168.1.107
secret=123456
nat=no
canreinvite=yes
;dtmfmode=info
outgoinglimit=1
incominglimit=2
mailbox=1000
disallow=all
allow=ulaw
amaflags=default

extensions.conf
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no
priorityjumping=yes
;userscontext=default

[xiptel]
exten => 2615,1,Dial(SIP/2615|20)
exten => 2615,2,Voicemail(2615@xiptel)
exten => 2615,102,Voicemail(b2615@xiptel)

When I look at the console in the asterisk box and watch - it does not even see the softphone trying to register and the registration just times out - I am pointing the xten with the following settings:

display name 2615
username 2615
password 123456
authorization username 2615
domain (public ip address)

Can anyone help me?

Thanks

Robert

Firewalled???

this will “watch” your ports…

ngrep -d any -Wbyline -t port 5060

well if the sets are inside and asterisk outside, you need to change the phones to nat=yes proberly canreinvite =no also the externip and localnet will need setting.

Get those right and it should work

Ian