[asterisk-users] NAT and externip problem or bug
Robert Jenkins
raj at jrw.co.uk
Sat Jul 22 12:54:06 MST 2006
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> Martin Joseph
> Sent: 22 July 2006 19:21
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] NAT and externip problem or bug
>
>
> On Jul 22, 2006, at 11:13 AM, Robert Jenkins wrote:
>
> > Oh well..
> >
> > I already had localnet set:
> >
> > localnet = 192.168.0.0 ; Internal NETWORK address
> > localmask = 255.255.255.0 ; Internal netmask
> >
> > All the involved PCs & Sipura boxes are using 192.168.0.x addresses.
> >
> > The Sipura boxes work, but the fact that asterisk is sending the
> > external IP to any device on the local network seems to me to be a
> > bug..
>
>
> You didn't mention whether you were also forwarding ports
> 10000-20000 to the SIP Proxy (ie asterisk). Thats where the
> actual RTP (voice
> data) is passing. Also you need to be sure that there aren't
> multiple clients on your lan all trying to use the same ports
> for signaling (ie 5060), as this will fail.
>
> Hope this helps.
> Marty
>
The simple thing is that if I have 'externip' set, I can see on a soft phone
(running on a PC on the same local subnet as asterisk) that it's seeing a
call from another local device as coming from 2001 at 212.xx.xx.xx - which is
the external IP and as everything is inside the firewall there is no audio
from the soft phone when the call answered.
If I comment out the 'externip' line & restart asterisk, the soft phone then
correctly sees the local call as being from 2001 at 192.168.0.xx and I get
two-way speech.
Re. multiple clients using port 5060, I have seen comments both ways..
This is how I have it at present and it works (without externip, which
appears to be down to asterisk sending the wrong info & nothing to do with
ports).
As has been said elsewhere, if online VoIP services with thousands of
connections work with a single port, why should there be a problem smaller
numbers of clients?
Robert Jenkins.
More information about the asterisk-users
mailing list