IAX trunking and dynamic IPs

Alex728

Guru
Joined
Dec 22, 2007
Messages
416
Reaction score
1
I've got 3 PBX's (two PIAF + 1 Elastix) all working on IAX2 trunking, thanks to the advice on here.. two of these are at work (two different sites) and one is at home

the two work ones are on static IPs and work fine. My home one has a dynamic IP and but my router is set up to use dyndns... I set the dyndns hostname in the trunks on the other two boxes.

however I find whenever my main IP changes the other boxes lose connection to it (they show UNREACHABLE in IAX2 show peers) until asterisk is restarted..

what the best way round this?
 
Same Problem...

I have the same issue, multiplied... My ISP is using round-robin IPs.

In other posts, people have replied with suggestions, but I've not got it to work yet.

A hack, but works fine for me, was to purchase a public VPN account with a fixed IP (<$50/year unlimited traffic). I then tunnel through that, and all is well in the world. I put the VPN management in my DD-WRT router, and I don't have to manage anything. (I did the public VPN for other reasons)

I'd love to understand how to link two PIAFs with one having a dynamic IP... cannot get this working either.

Gerry
 
You should be able to do the same thing using Hamachi VPN at no cost.
 
Yes, this is true. Except my PIAF is hosted, and the vendor does not support Hamachi!
 
does not support or does not allow....

my hosting vendor does not support - but does allow hamachi - that is how I have 5 boxes all IAX'd together and dont have to worry about dynamic ips
 
Both. It's synapseglobal.com; they are running XEN. I guess it takes a kernel mod to allow hamachi ... they do not want to do it, as they have a public VPN service they want to sell...

(However, for $35/month, it's been ROCK solid for almost a year, and that's much more than my server power cost running out of the house.)
 
if you can get tuncfg working - then you are 90% of the way there.....

my vps had to upgrade me to the newer centos vps image, and then everything was fine

Code:
root@vps [~]# ifconfig
ham0      Link encap:Ethernet  HWaddr 6A:47:24:FD:5F:FE  
          inet addr:5.36.157.196  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:37295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:6511537 (6.2 MiB)  TX bytes:90 (90.0 b)
this required nothing on my hosts part except for the upgrade to the centos vps image - which I had been putting off for over a year - it was a redhat image before....

i think the main reason i had to switch to the newer image was hamachi requires the newer gcc libs

try it, you cant hurt anything.....
 
I meant to say NOT much more than the cost of power a server in my home office...
 
Look at the end of the info post..

Code:
[URL]http://www.voip-info.org/wiki/view/Asterisk+config+iax.conf[/URL]

There was an "enhancement" to iax2 early in 2009 and you sometimes need to add the requirecalltoken value to the IAX definition. I ran into this when I upgraded a box and not the others in the colllection. Apparenmtly you don't see it on this distribution till you go past the zaptel freeze.

JMS..

I've got 3 PBX's (two PIAF + 1 Elastix) all working on IAX2 trunking, thanks to the advice on here.. two of these are at work (two different sites) and one is at home
 

Members online

Forum statistics

Threads
26,686
Messages
174,406
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top