• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Changed external IP needs to set in sip.conf in Asterisk

Scheduled Pinned Locked Moved Routing and Multi WAN
3 Posts 2 Posters 896 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    getrav
    last edited by Feb 12, 2014, 11:32 PM

    I have a Dual WAN setup to ensure we always have Internet Access.

    Due to the way Asterisk works, if the external IP address changes, we need to set it in sip.conf.
    If you don't then you will not be able to register with your telephone provider.

    The setting in sip.conf is known as "externip=x.x.x.x"

    What is the best way to get this info from the router?  I know we can use DDNS but this can take up to 10 minutes to update.  Many of the servers have limits to how many times you can poll for an IP update.
    You could be loosing business while your users wait for this info to update.

    1 Reply Last reply Reply Quote 0
    • G
      getrav
      last edited by Feb 13, 2014, 12:02 AM

      I tried a few things but I am not sure if it will help a lot.
      I setup a DynDNS Client and set it to monitor the Gateway instead of a particular gateway.
      I changed the cron job every minute:

      1    *    *    *    *    root    /usr/bin/nice -n20 /etc/rc.dyndns.update
      originally it was 1 hour and 1 minute:
      1    1    *    *    *    root    /usr/bin/nice -n20 /etc/rc.dyndns.update

      Still, I can't get it to update in 1 minute.  What am I missing?

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by Feb 13, 2014, 2:39 AM

        That cron entry starting "1 1" runs at 01:01 each day - only once per day. For every minute you want:
        */1  *  *  *  *  root /usr/bin/nice -n20 /etc/rc.dyndns.update

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received