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

mtennant

Guru
Joined
Oct 22, 2007
Messages
293
Reaction score
0
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?
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
In your case, it's likely to be: -

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

mburrows

New Member
Joined
Nov 15, 2007
Messages
5
Reaction score
0
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
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
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
 

mtennant

Guru
Joined
Oct 22, 2007
Messages
293
Reaction score
0
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.
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top