Remote Extension In FreePBX

Overview

Phones / extensions can register with a 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.

/ 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 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

    Related posts:

    1. FreePBX – Common Voicemail Box
    2. FreePBX Symlink From Modules Failed
    3. Linksys SPA3102 And FreePBX On Ubuntu 10.04
    4. Siemens Gigaset 685IP Mini Review
    5. Adding Outgoing Skype For SIP To FreePBX

    About Danny

    Young I.T software professional always studying and applying the knowledge gained and one way to do this is blogging. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny is now in the industry that he has aimed since leaving school. View all posts by Danny → This entry was posted in PBX and tagged , , , . Bookmark the permalink.

    Leave a Reply

    Your email address will not be published. Required fields are marked *.

    *

    All comments must go through an approval and anti-spam process before appearing on the website. Please be patience and do not re-submit your comment if it does not appear.