1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. Guest: We think the problem with locked threads from long message subjects has been resolved. Post a link here if you still see a problem.

Setting up Dynamic DNS (DDNS) in /etc/asterisk/sip_custom.conf

Discussion in 'Help' started by mtennant, Nov 14, 2007.

  1. mtennant Guru

    I've got a router that supports DDNS. I'm registered with no-ip.com. Seems to be working fine.

    Just installed PBXiaF (Ward, is this the right abbreviation?)

    I'm trying to confirm the directions on the NerdVittles page for the entry in /etc/asterisk/sip_custom.conf:

    Quote: "If you have a public address that changes and you're using DDNS, then the settings would look something like the following:

    externhost=myserver.dyndns.org
    localnet=192.168.0.0/255.255.255.0"

    Assuming my DDNS host name is marty.no-ip.com, would I use:
    externhost=marty.no-ip.com
    localnet=192.168.0.0/255.255.255.0

    even though my router uses 192.168.1.1 as the gateway address on the LAN side?
  2. jroper Guru

    In your case, it's likely to be: -

    externhost=marty.no-ip.com
    localnet=192.168.1.0/255.255.255.0
  3. mtennant Guru

    That is what I was thinking too. I'll try it.
  4. mburrows New Member

    I'm brand new to all this and have installed PBX in a Flash and am up to the same step. Could someone tell me how I go about editing the actual files mentioned? (i.e. /etc/asterisk/sip_custom.conf and nano - w /etc/asterisk/sip_custom.conf)

    Do I do this from the server (which currently has the root@pbx:~ $ prompt or do I do it from a browser and type in the local ip address of the server.

    Thanks in advance.


    Mark
  5. wardmundy Nerd Uno

    Log in as root. Then
    nano - w /etc/asterisk/sip_custom.conf
    Plug in the code
    Ctrl-X, then Y, then press Enter to save your changes. Check it...
    cat /etc/asterisk/sip_custom.conf
    restart Asterisk: amportal restart
  6. mtennant Guru

    I tried editing sip_custom.conf using Putty and then nano.

    It didn't work and I got an error.

    I then went into the FreePBX interface and did it using Config Edit under Maintenance.

    That worked.

Share This Page