Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




420 posts

Ultimate Geek
+1 received by user: 2


# 18946 30-Jan-2008 17:14
Send private message

Hi

I have two Asterisk (Trixbox) PC's located in two seperate locations that are connected so that I can call extensions on Box B from Box A just by dialling the extension number on Box B.  Box B extensions are formatted 2nn and Box A extensions are formatted 5nn.  This works just fine until one or other of the ADSL routers needs to be restarted - then the system fails because the IP address has changed even though the dynamic DNS provider has been updated.

Whenever either ADSL router is rebooted, the new IP address is updated in the DDNS without any problems, but Asterisk (well Trixbox really) looses connection with the other device even though the "other" box is identified with the dynamic DNS name in the trunk definition.

The impression I get, is that Trixbox resolves the actual IP address for a trunk at Config Load time rather than when a connection is made.

Has anyone any experience joining two Asterisk boxes together in locations that use dynamic IP addressing and if so, how did you resolve this?

PS I connect the two boxes by creating an extension on Box A and a trunk on Box B that connects to the extension on Box A. I then duplicate that for the reverse connection.  Sounds worse that it is but it works just fine.

Cheers Mike

Create new topic
Awesome
4843 posts

Uber Geek
+1 received by user: 1099

Trusted
Subscriber

  # 107767 31-Jan-2008 13:23
Send private message

Why dont you get a Static IP for each connection? Who is the ISP?

836 posts

Ultimate Geek

Trusted

  # 107780 31-Jan-2008 14:38
Send private message

Your OS and the DNS servers you are using for lookups will cache the domain record when doing a lookup, it may be that its (trixbox OS) default cache period is overwriting the TTL if the TTL with your dynamic DNS provider is set appropriately low.

 
 
 
 




420 posts

Ultimate Geek
+1 received by user: 2


  # 107796 31-Jan-2008 15:18
Send private message

Adamj:  I use WorldxChange as my ISP and Telecom for the other site, but I cannot justify the cost for fixed IP addresses and its probably a waste of their resources as well. It seemed to me that a dynamic DNS was a good solution and so far it has been - other than the caching of the ip address that Fraktul alludes to.

Fraktul: Thanks, your comment has given me something else to look into i.e. DNS caching on the linux box. I had not thought of trying to reduce the cache interval (nor do I know how to do that), but there's bound to be something to be found using our old mate Google.

Appreciate the help guys, thanks.

Cheers Mike

890 posts

Ultimate Geek
+1 received by user: 64

Subscriber

  # 108176 2-Feb-2008 16:31
Send private message

Since WXC nolonger offer free static ips to those that dont already havem.  You could look at inspire.net.nz last time I had anything to do with them the helpdesk bods would happily give a static ip for free dont think thats changed (at least the person who I got a stic ip still has it free of charge)?

Ring them up and ask if they would do it, explain your not "hosting" just want it for voip stuff.



420 posts

Ultimate Geek
+1 received by user: 2


  # 108456 4-Feb-2008 12:28
Send private message

Hi rphenix

To be honest, it would take a hell of a big crowbar to leverage me away from WXC, the ADSL (allbeit using Telecom infrastructure) and VFX service they provide are just too good to leave, even though some other provider could offer a fixed IP address. I can get around the problem (I think) by getting Asterisk to reload its configs on a regular basis.

Thanks for the feedback though.

Cheers Mike

890 posts

Ultimate Geek
+1 received by user: 64

Subscriber

  # 108489 4-Feb-2008 14:10
Send private message

Yep I understand completely :) There is another way:

You can get a dynamic dns clients that polls your router web interface (ie a cron job hits the web interface every minute) if it notices a change in the ip address it can then be told to do something (like update the dynamic dns ip address) ontop of this you could get it to reload the asterisk configuration file.

The good thing with hitting your router web interface instead of using a website to check if your ip is changed is you can check for updates a lot more often than is allowed by most dynamic DNS client providers without vioating any terms and conditions of the service.

I havent used dynamic DNS for ages now but http://ddclient.wiki.sourceforge.net/ was a good client back when I did. It's a perl script so easy to modify if it doesnt quite suit your needs it wouldnt take much to make it execute a bash script to reload both the local configuration and remote asterisk configuration (if needed?).



420 posts

Ultimate Geek
+1 received by user: 2


  # 108570 4-Feb-2008 22:14
Send private message

Thanks for the link and the idea. That is worth pursing. I think that reloading the config files seems to be the easiest way to force Asterisk to redefine the DNS's IP address but only when it needs to. I will review the link you mentioned and see what I can find.

Really appreciate the suggestion.

Cheers Mike

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Xero announces new smarter tools, push into the North American market
Posted 19-Jun-2019 17:20


New report by Unisys shows New Zealanders want action by social platform companies and police to monitor social media sites
Posted 19-Jun-2019 17:09


ASB adds Google Pay option to contactless payments
Posted 19-Jun-2019 17:05


New Zealand PC Market declines on the back of high channel inventory, IDC reports
Posted 18-Jun-2019 17:35


Air New Zealand uses drones to inspect aircraft
Posted 17-Jun-2019 15:39


TCL Electronics launches its first-ever 8K TV
Posted 17-Jun-2019 15:18


E-scooter share scheme launches in Wellington
Posted 17-Jun-2019 12:34


Anyone can broadcast with Kordia Pop Up TV
Posted 13-Jun-2019 10:51


Volvo and Uber present production vehicle ready for self-driving
Posted 13-Jun-2019 10:47


100,000 customers connected to fibre broadband network through Enable
Posted 13-Jun-2019 10:35


5G uptake even faster than expected
Posted 12-Jun-2019 10:01


Xbox showcases 60 anticipated games
Posted 10-Jun-2019 20:24


Trend Micro Turns Public Hotspots into Secure Networks with WiFi Protection for Mobile Devices
Posted 5-Jun-2019 13:24


Bold UK spinoff for beauty software company Flossie
Posted 2-Jun-2019 14:10


Amazon Introduces Echo Show 5
Posted 1-Jun-2019 15:32



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.