Joao Gomes Pereira
2009-Dec-01 15:32 UTC
[asterisk-users] Asterisk registers with private IP
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 QExpires:: 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
externip=123.123.123.123 On Tue, Dec 1, 2009 at 4:32 PM, Joao Gomes Pereira <gomespereira at startel.pt> wrote:> 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 > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >-- France: 01 70 61 22 21 USA: (415) 727-0927
On Tue, 2009-12-01 at 15:32 +0000, Joao Gomes Pereira wrote:> 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 >Asterisk 1.6 can use STUN to determine the external IP address. -- Telecomunicaciones Abiertas de M?xico S.A. de C.V. Carlos Ch?vez Prats Director de Tecnolog?a +52-55-91169161 ext 2001 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091201/661b6e8b/attachment.pgp