Remote Extension In FreePBX

Overview

Phones / extensions can register with a PBX on a local network because they can see each other it becomes limited if you have follow me or would like to use the phone outside of your network.

Asterisk / FreePBX allows users to register their extension outside of the network but there are few things Asterisk needs to know such as the external IP address and users can be restricted to who can and cannot connect externally from the network.

Please note that I have tried these steps using the dynamic IP address and have not tried it with the static IP but I will list the steps any ways.

IP Configuration

Edit the file /etc/asterisk/sip_nat.conf with super user rights or as the asterisk user:
sudo vi /etc/asterisk/sip_nat.conf
Either change or add the following for a dynamic IP setup:

externhost=dannytsang.co.uk
externrefresh=120
localnet=192.168.1.0/255.255.255.0

Change the externhost to your DNS address e.g danny.no-ip.com. The localnet should be changed to the appropriate IP system in use. In my case the subnet is correct and the IP ranges from 192.168.1.1-192.168.1.254

For Static IP make sure the sip_nat.conf file says the following:

Firewall Setup

By default the following ports needs to be open and port forwarded to the FreePBX box:

  • 5060 (UDP)
  • 10001-20000 (UDP)
  • FreePBX Extensions setup

    Navigate to the FreePBX Administration page and then click on the extensions link on the left hand side. There should be a list of extensions of the right hand side of the page if there are some set up.

    Select the extension to be allowed remote registration and ensure the following options are set:
    nat: yes
    qualify: yes

    It is a good idea to have the extension have a password for registration otherwise the extension can register and make calls freely.

    HOWTO Setup A Remote SIP Extension

    About Danny

    I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in PBX and tagged , , , . Bookmark the permalink.

    One Response to Remote Extension In FreePBX

    1. king says:

      I just wonder are you using virgin media or your own router connecting to Internet.. I’m trying to connect remote extension. It’s keep saying 403

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.