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

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jul 19 11:15:05 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13065 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13065
Category:                   Utilities/NewFeature
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-13-2008 01:23 CDT
Last Modified:              07-19-2008 11:15 CDT
====================================================================== 
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

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

---------------------------------------------------------------------- 
 pabelanger - 07-19-08 11:15  
---------------------------------------------------------------------- 
Problems running v5 on FreeBSD.

---
> ./sip_nat_settings
wget: not found
externip =
./sip_nat_settings: arithmetic expression: syntax error: "0xffffff00
0xffffff00
0xffffff00>>24&0xff"
---

wget is not installed by default, fetch it. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-19-08 11:15  pabelanger     Note Added: 0090488                          
======================================================================




More information about the asterisk-bugs mailing list