Hi Noah,
First of all, thanks for your help. I just want to check if I understood.
If a set the TTL for 10 seconds for host.no-ip.org and configure the
parameter host as "host=host.no-ip.org", Asterisk will try to find the
IP address of host.no-ip.org each 10 seconds? That is it?
Thanks again.
Ronaldo.
Noah Miller wrote:
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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users