[asterisk-users] Asterisk registers with private IP

Joao Gomes Pereira gomespereira at startel.pt
Tue Dec 1 09:32:31 CST 2009


Hello
I'm trying to register an Asterisk working behind Nat.
Here is the trunk:

register=username:password at sip.startel.pt

[startel]
type=peer
host=sip.startel.pt
username=username
fromuser=username
secret=password
qualify=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
insecure=very                  
port=5060
nat=yes
canreinvite=yes


The problem is: Asterisk is registering with its internal IP 
(192.168.1.25), as you can see here:
sip:s at 192.168.1.25 Q=
Expires:: 81
Callid:: 480b40aa13ddd8707787b21a69656535 at 127.0.0.1
Cseq:: 103
User-agent:: Asterisk PBX
                  

How can I force Asterisk to register with its public IP?
Is it possible to configure STUN in an Asterisk trunk?
Thanks
Regards
Joao Pereira

-- 
StarTel - A Rede Livre
Joao Gomes Pereira
www.startel.pt
+351 304500650
sip: gomespereira at startel.pt




More information about the asterisk-users mailing list