LocalPhone.com Configuration with FreePBX

As of writing this article, LocalPhone.com has the cheapest inbound ($3 setup fee + $0.99/mo) and outbound ($.005/min) trunk rates available. For a basic PBX use, this is really all I was looking for.

LocalPhone Configuration

  1. Sign up for an account at LocalPhone.com.
  2. Add a minimum of $5 credit. This covers one incoming DID and an extra dollar for testing purposes.
  3. Once the credit has been applied (you'll receive an e-mail), go to Services>Incoming Numbers>See Our Incoming Number prices.
  4. Click on your country.
  5. Click on your state/province/territory.
  6. Choose a dialing code.
  7. Click "Get an Incoming Number from <your choice here>".
  8. The incoming number (AKA: DID) should be provisioned quickly after confirming details.
  9. Click My Account>Incoming Numbers to confirm it has been provisioned.
  10. Click Manage Number.
  11. Under "Forward incoming calls", choose forwarding to your Internet Phone service.
  12. Click My Account>Internet Phone.
    1. Take note of your SIP ID and SIP Password as you'll use them later.
    2. Ensure that Call Forwarding is set to Inactive
    3. Change the Caller ID if you'd like from your internet phone number to your DID number.

FreePBX/Asterisk Configuration

Trunk

  1. Create a new SIP Trunk.
    • Name: LocalPhone-<your incoming number>
    • Dialed Number Manipulation Rules (blank prepend, blank prefix):
      • 1NXXNXXXXXX
      • NXXNXXXXXX
    • SIP Settings (Outgoing)
      • Trunk Name: LocalPhone-<your incoming number>
      • PEER Details (copy and paste, then edit your ID and password):
        type=friend
        insecure=very
        nat=no
        canreinvite=no
        authuser=<SIP ID>
        username=<SIP ID>
        fromuser=<SIP ID>
        fromdomain=localphone.com
        secret=<SIP Password>
        host=localphone.com
        dtmfmode=rfc2833
        context=from-trunk
        disallow=all
        allow=ulaw&alaw
    • SIP Settings (Incoming)
      • Register String: <SIP ID>:<SIP Password>@localphone.com/<SIP ID>
  2. Click Submit.


Inbound Route

  1. Create a new Inbound Route.
    1. Description: LocalPhone-<your incoming number>
    2. DID Number: <SIP ID>
    3. Destination: Any destination you'd like. Mine is routed directly to an extension that I've already configured.
  2. Click Submit.


Outbound Route

  1. Create a new Outbound Route
    • Route Name: LocalPhone-<your incoming number>
    • Trunk Sequence: Choose the trunk you previously created from the list.
    • Dial Patterns (blank prepend, blank prefix):
      • 1NXXNXXXXXX
      • NXXNXXXXXX
  2. Click Submit.


Validate the Configuration
  1. Click the red Apply Config button in the top right corner of the admin portal.
  2. Click Reports>Asterisk Info from the top menu bar.
  3. Click Chan_Sip Info on the right-hand pane.
  4. In the Chan_Sip Registry, you should see localphone.com:5060 listed in a "Registered" state.
  5. You should now be able to place calls using your extension's phone as well as receive calls from external callers to the number.

Comments

Popular posts from this blog

Continuously Monitor Folder for New Files with PowerShell as a WindowsService

Unprotect All Excel Sheets for All Workbooks in a Directory

ChromeOS Flow by Hexxeh Install to HDD