[asterisk-users] Two Asterisks behind NAT and need to link them using IAX trunk

Andres Paglayan andres at paglayan.com
Wed Jan 2 18:37:31 CST 2008


On Jan 2, 2008, at 12:33 AM, bilal ghayyad wrote:

> Hi List;
>
> I heared that IAX is good for NATing issues, but I do
> not know if it can help me in that senario:
>
> I have two Asterisks machines in different sites and
> both are behind NAT (both have private IP address), I
> need to link these two asterisks with IAX trunk (if it
> help really in such senario), but I do not know if it
> will work without doing special routing settings on
> the router (like TCP/UDP port mapping or IP
> forwarding)? How that will be it if possible? Or I
> have to do a kind of port mapping?
>
> If I will need to use port mapping, then I have to map
> the TCP and UDP ports that are determined in iax.conf
> and rtp.conf files at site A for asterisk ip address
> at site A? Or I have to map the TCP and UDP ports that
> are in iax.conf and rtp.conf at site B for asterisk ip
> address at site A? In other words, if I am at site B
> then I have to go for router B and do mapping for
> TCP/UDP ports of the asterisk at site B or the
> asterisk at site A?

I believe it is mostly a routing thing between your two points,
you are not providing info about your routers,
and the options are quite endless,

if this were my setup what I'd do budget wise is:

1./ setup two IPCops firewall/routers, one at each location,
2./ bridge the two IPCops as if they were in one network using UDP,
3./ shape traffic so VoIP takes priority

With this you can either use SIP or IAX as the natting issues are  
likely to go away,
you also get some networking bonus between the two places,


>
> Any help.
> Regards
> Bilal
>
>
>        
> ______________________________________________________________________ 
> ______________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/ 
> newsearch/category.php?category=shopping
>
> _______________________________________________
> --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




More information about the asterisk-users mailing list