[asterisk-bugs] [Asterisk 0013065]: [patch] sip_nat_settings - script to generate externip and localnet

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 9 17:24:06 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13065 
====================================================================== 
Reported By:                tzafrir
Assigned To:                mvanbaak
====================================================================== 
Project:                    Asterisk
Issue ID:                   13065
Category:                   Utilities/NewFeature
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.21 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-07-13 01:23 CDT
Last Modified:              2009-01-09 17:24 CST
====================================================================== 
Summary:                    [patch] sip_nat_settings - script to generate
externip and localnet
Description: 
If an Asterisk system is behind NAT, SIP calls outside will usually have no
audio unless externip and localnet are set.

In most cases (a single network interface) it is possible to give a sane
value for localnet. figuring out externip cannot be done locally. I simply
ended up asking http://whatismyip.org/ (and big thanks to whoever set it
up). 

Naturally those are sane defaults only if I know in advance that the
system is behind NAT.

I used it with asterisk 1.4 on several occasions. AFAIK it is still needed
(and with the same ocnfiguration directives) in trunk.

Example output:

externip = 62.90.10.53
localnet = 192.168.0.255/255.255.255.0

====================================================================== 

---------------------------------------------------------------------- 
 (0097398) svnbot (reporter) - 2009-01-09 17:24
 http://bugs.digium.com/view.php?id=13065#c97398 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 168288

_U  branches/1.6.1/

------------------------------------------------------------------------
r168288 | mmichelson | 2009-01-09 17:24:04 -0600 (Fri, 09 Jan 2009) | 16
lines

Blocked revisions 168265 via svnmerge

........
r168265 | mvanbaak | 2009-01-09 17:04:46 -0600 (Fri, 09 Jan 2009) | 9
lines

Add a script to find out the correct settings for Asterisk behind NAT

(closes issue http://bugs.digium.com/view.php?id=13065)
Reported by: tzafrir
Patches:
      sip_nat_settings uploaded by tzafrir (license 46)
      sip_nat_settings_6 uploaded by mvanbaak (license 7)
Tested by: tzafrir, pabelanger, Dovid and moi

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=168288 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-09 17:24 svnbot         Checkin                                      
2009-01-09 17:24 svnbot         Note Added: 0097398                          
======================================================================




More information about the asterisk-bugs mailing list