User Tools

Site Tools


voice:pbx:freepbx:freepbx_provisioning

FreePBX Phone Provisioning

See also: Other FreePBX pages in this wiki

:!: For small systems with less than 10 extensions, it's probably not worth installing and configuring the End Point Manager. If you have lots of extensions, read on.

DHCP

http://www.3cx.com/sip-phones/dhcp-option-66/

:!: You will need to enable option 66 on your dhcp server so phones get their configuration on boot.

:!: You will need to open the firewall for UDP ports 67-69 for DHCP, BOOTP and TFTP.

Commercial EndPoint Manager

https://www.freepbx.org/endpoint-manager/

Admin Guide: http://wiki.freepbx.org/display/FPG/EPM-Admin+User+Guide

Port Management: http://wiki.freepbx.org/display/FPG/System+Admin+-+Port+Management

Supported Devices: http://wiki.freepbx.org/display/FCM/EPM-Supported+Devices

As of 12/13/14, the Yealink firmware downloaded by EPM does NOT support RPS. You can replace the .rom files for the models you are using with RPS-compatible versions. I replaced the .rom files in /tftpboot/yealink/2/ with files from here: ftp://ftp.yealink.com/RPS/T4X/ This becomes particularly important if you are using config files to switch your phone to another VLAN.

Adding New Extensions

:!: Provisioning must already be working.

  1. Add the MAC address to RPS and assign to a provisioning server
  2. Add the extension to FreePBX
  3. Use the FreePBX EPM to rebuild the phone config file
  4. Reset the phone to factory defaults, then reboot it
  5. If you use a VLAN, you may need to enter Setup and adjust the VLAN ID
    • Yealink RPS and DHCP Option 66 can do this for you

https://rps.yealink.com

Applications → Extensions → Add an Extension

Settings → EndPoint Manager → Extension Mapping → Select Extension → Rebuild Configs

Configuration of Commercial EPM

  1. Go to Settings → Endpoint Manager → Firmware Management (scroll down)
    1. Install firmware for the brands/models of phones you have
      • It takes a while for the firmware to download and install so do this first
      • Drag and drop the latest firmware into slot 1
      • For Polycom, select Use Upgrader Bootrom for looping phones
  2. Go to Settings → Endpoint Manager → Global Settings
    1. Internal IP Address
    2. External IP Address
    3. Enable XML-API (RestAPI) Default Login
    4. Enable IP Addresses in Extension Mapping
    5. Enable Phone Status in Extension Mapping
  3. Go to Settings → Endpoint Manager → your brand → New Template
    1. Name it something like polycom-internal-companyname
    2. Configure as needed
      • Lots of settings
        • Time Server → Router IP (gateway IP)
      • Per phone model
  4. Go to Settings → Endpoint Manager → Extension Mapping
    1. Map the extension
    2. Select (checkmark) and Rebuild Configs
  5. Reset the phone to factory defaults
    1. Reboot the phone

Multiple Accounts

To provision multiple accounts to a phone (shared phone) in Endpoint Manager:

  1. Configure the first extension normally
  2. Edit the first extension just created
  3. Select Account 2
  4. Choose the second extension
  5. Use the same template, model and MAC address

Endpoint Manager → Extension Mapping → <extension> → Edit

FreePBX Provision Second Extension

HTTP

http://<pbx-ip>:84

Free OSS EndPoint Manager

FIXME Unfinished because we usually purchase the commercial EPM to support FreePBX development.

Just install the OSS End Point Manager FreePBX module.

http://www.the159.com/endpointman/tut.html

Basic Steps

  1. Go to the configuration page and install firmware for the brand/model of phones you have
    • It takes a while for the firmware to download and install
    • Drag and drop the latest firmware into slot 1
  2. Go to the advanced settings and enter the server ip address and set it to HTTP
    • Update globals
  3. Go to device list and scan for your phones
  4. Add the phones and configure the extensions (lines) they will be using
  5. You will also need to enable option66 on your dhcp server so the phones get the config on boot

TFTP

Verbose Logging: http://wiki.freepbx.org/display/L1/Enable+TFTP+verbose+logging

See also dnsmasq

Enable the TFTP server function of DNSMasq:

vi /etc/dnsmasq.conf

# Enable dnsmasq's built-in TFTP server
enable-tftp

# Set the root directory for files availble via FTP.
tftp-root=/tftpboot

mkdir /tftpboot
chown -hR root:asterisk /tftpboot/
chmod g+w /tftpboot/

service dnsmasq restart

Connectivity → OSS End Point Manager Advanced Settings

FreePBX OSS End Point Manager TFTP Setup

Basefile Edits

EndPoint Manager → Basefile Edit → Your Polycom Template → Legacy

:!: Once saved, the customized setting will now be listed at the bottom of the list.

:!: Regenerate the template, rebuild all your configs and reboot your phones when done making changes.

Legacy Polycom

For some reason, the old IP301 and IP501 phones don't respect the DST settings in the template.

Scroll down to the setting for sntp.daylightSavings.enable and set it to 0, then click Submit Query to save.

legacy_sip.cfg

   <sntp tcpIpApp.sntp.daylightSavings.enable="0"/>
   <user_preferences up.oneTouchVoiceMail="1"/>

Grandstream DST

There is no place in the template to set the proper time zone for Arizona or to turn off the observation of Daylight Savings Time.

Scroll down to the setting for P64 and set it to MST (for Arizona with no DST), then click Submit Query to save.

voice/pbx/freepbx/freepbx_provisioning.txt · Last modified: 2017/10/04 14:13 by gcooper