login | register
Sat 05 of Jul, 2008 [23:06 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Samuel, Thu 03 of Jul, 2008 [13:41 UTC]: ok thank you
  • Mats Karlsson, Thu 03 of Jul, 2008 [13:37 UTC]: Nice Samuel, will look forward to rad it.
  • bwl_fernstudent, Thu 03 of Jul, 2008 [09:08 UTC]: Your blog shows some usefull code
  • Samuel, Thu 03 of Jul, 2008 [08:04 UTC]: I'll translate it, for sure
  • Mats Karlsson, Wed 02 of Jul, 2008 [20:46 UTC]: LOL, in french! Translate it to English and I will read it.
  • Samuel, Wed 02 of Jul, 2008 [08:07 UTC]: Hello, i wrote a blog about Asterisk, speaking about installation,programming and more http://sambranche.blogspot.com/
  • Nick Barnes, Tue 01 of Jul, 2008 [17:46 UTC]: Steve - Asterisk doesn't 'fit into linux' - it's an application which runs on top of Linux.
  • Steve, Mon 30 of Jun, 2008 [18:07 UTC]: anyone know where I can find a block diagram of how asterisk fits into linux. my f'ing bosses want me to draw something up.. ugh.
  • akbar, Fri 27 of Jun, 2008 [10:37 UTC]: marley_boyz@yahoo.com how to configure call forward, call back, call pick up using TDM and asterisk 1.2.13... please help me.. thx...
  • Matthew Williams, Tue 24 of Jun, 2008 [22:37 UTC]: We are looking for Tier II VoIP Support Technicians in St Louis. Send resumes to mwilliams AT voxitas DOT com.
Server Stats
  • Execution time: 0.20s
  • Memory usage: 2.59MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 1.28

Asterisk Avoid SIP NAT Traversal

Using Asterisk as a SIP/IAX Gateway

The Asterisk open source telephony server can be used as a gateway in order to avoid SIP NAT Traversal. All VoIP devices on the LAN are configured to connect to an Asterisk server on the same LAN. The Asterisk server then connects to VoIP services on the Internet using the NAT friendly IAX protocol. The same technique can be applied to any other conventional VoIP protocol which has trouble traversing NAT.

The diagram below shows how to use Asterisk to avoid SIP NAT Traversal when connecting to Jeff Pulver's Free World Dialup service. However, the same arrangement can be used for other VoIP services that support the IAX protocol.

Image

On MacOSX, the SIP/IAX gateway setup for FWD as shown in the above diagram can be very easily configured using the Asterisk Assistants for MacOSX. It takes only a couple of minutes including installation and it requires no prior knowledge of Asterisk or VoIP.

Using the IAXy Analog Telephone Adapter

Alternatively, the IAXy Analog Telephone Adapter from Digium can be used in combination with any analog telephone to avoid SIP NAT Traversal. The analog telephone is connected to the IAXy using ordinary telephone wiring. The IAXy then connects to VoIP services on the Internet using the NAT friendly IAX protocol.

The diagram below shows how to use an IAXy to connect to Jeff Pulver's Free World Dialup service. However, the same arrangement can be used for other VoIP services that support the IAX protocol.

Image

Configuration of IAXy for a FWD account behind a router.

Image
  • Register a Free World Dialup account.
  • Put the new (or reseted) IAXy in the network.
  • Verify the IP which the IAXy got from the DHCP server (looking on the DHCP section of the router, or logs of the DHCP server, or just by ping -b 192.168.1.255 and listening to udp port 9999 which the IAXy broadcast to as a response for ping).
  • Forward the udp port 4569 (iax2) to the right IP (or else the firmware from the asterisk server will never get to the IAXy, and no voice will come in).
  • Build the iaxyprov utility to remote upload configuration to the IAXy (that's the only way ...)
$ cd /usr/src
$ export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
$ cvs login (the password is anoncvs)
$ cvs co iaxyprov
$ cd iaxyprov
  • Upload configuration:
$ ./iaxyprov 192.168.1.156 iaxy.conf.fwd-sample

iaxy.conf.fwd-sample:

ip: 192.168.1.156
netmask: 255.255.255.0
gateway: 192.168.1.1
codec: ulaw
server: 65.39.205.121
user: 654321
pass: password
register

Remarks:
  • Run the iaxyprov only ~20 seconds after power on of the IAXy, to enable a connection to the server.
  • To get the server IP, just ping iax2.fwdnet.net
  • This setup is a good solution for using IAXy if one's asterisk is on a dynamic IP (e.g. with Dynamic DNS). IAXy takes no DNS (the asterisk server configuration must have a fixed IP), and using FWD asterisk IP, and connecting the asterisk to the FWD network just bypasses the problem.
  • The only codec supported by FWD is ulaw (a little expensive codec. The adpcm is supported by IAXy, and could have been bandwith wise cheaper. Maybe such a support appears on the FWD service.
  • The setup works probably also with DHCP configuration (just take care to update the port forward if the IP changes).
  • The IAXy used in this setup is version S101I (and uses also 6v power supply), but it should work with any other IAXy version.
  • For more information, contact LivneX

Potential problems

  • You will not be able to dial by SIP url with this configuration, i.e. dial sip:username@domain.tld - you will only be able to dial by FWD number.


Created by oej, Last modification by livne on Sun 28 of Aug, 2005 [08:38 UTC]

Comments Filter

Good idea but a bit unpratical

by lenz on Tuesday 11 of October, 2005 [08:41:34 UTC]
It's not a good idea to use ulaw for external calls because it uses too much bandwidth. It would be better to use GSM, but AFAIK FWD does not support it.

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver