[asterisk-users] IAX trunk with dynamic IPs

Noah Miller noahisaacmiller at gmail.com
Sat Jun 9 11:35:59 CDT 2007


Hi Ronaldo -

> I have a IAX trunk between two asterisk servers, both with dynamic IP
> and both have a DNS name associated with it.
> In the iax.conf file I configure the "host" parameter with the DNS name
> of the servers. Everything works fine until one of these servers get a
> new IP, so the other can't find its peer (the one that has just gotten a
> new IP). If I manually issue a "iax2 reload" in the CLI, asterisk tries
> to find the IP of the peer (based on its DNS name) and everything starts
> working again.
> This is the section for my trunk in one of my servers:
>
> [sometrunk]
> type=friend
> username=someusername
> secret=somesecret
> auth=plaintext
> host=host.no-ip.org
> context=incoming
> peercontext=incoming
> qualify=yes
> trunk=yes
>
>
> Is there any way to tell asterisk to try to find the peer's IP address
> if that peer is "unreachable" or each 10 minutes?

I don't know if your DDNS provider would support this, but if you set
the TTL value of your DNS hostnames to something very low, like 10
seconds, it would force your OS to keep finding the latest IP.


- Noah


More information about the asterisk-users mailing list