What is Device & User Mode?

For information on what Device & User Mode does, click here:

http://www.freepbx.org/support/documentation/module-documentation/freepb...

Enabling Device and User Mode

If you're using FreePBX 2.9 (or later), you can easily change from Extensions mode to Device and User mode (and back) using the "Advanced Settings" module. Under the System Setup heading, change the "User & Devices Mode" pull-down from "extensions" to "device and user". The click the green check box that appears to the right of that option to confirm your selection. Then click the orange bar at the top of the screen to reload FreePBX.

If you're using FreePBX 2.8 (or earlier) and you'd like to enable Device and User Mode, you'll need to edit one of the FreePBX configuration files. Open a command prompt on your PBX (either by sitting down in front of the machine or by using the Java SSH module that FreePBX provides) and type the following:

cd /etc
nano amportal.conf

Then change AMPEXTENSIONS=extensions

to

AMPEXTENSIONS=deviceanduser

When you're done editing the file, hit Ctrl-O to save, and Ctrl-X to Exit.

If you will be assigning users to devices in the FreePBX Web GUI only, then you're done. This change can be done on the fly, no restart needed. Once you do this, the "Extensions" module will disappear and be replaced by a "Devices" module and a "Users" module.

If you don't like device and user mode, and you're using FreePBX 2.9, just change it back in the "Advanced Settings" module. If you're using FreePBX 2.8, just change AMPEXTENSIONS= back to

AMPEXTENSIONS=extensions

Enabling Message Waiting Indications

If you're using a distribution with Asterisk 1.6 or 1.8, you may find that Message Waiting does not work once you enable Device and User Mode. If that happens, you can correct it by enabling pollmailboxes.

If you're using FreePBX 2.9, log in to the FreePBX GUI using a web browser and select PBX Adminstrator. At the top on the left hand side, select "setup." Then select the "voicemail admin" module. At the top, center of the screen, select "settings." Scroll down until you find the setting called "pollmailboxes" and change it from "undefined" to "yes." Immediately above "pollmailboxes" you'll see "pollfreq." By default, asterisk will update MWI every 30 seconds. If you want updates more frequently, such as every 15 seconds, enter the number of seconds you want MWI updated in the "poll freq" field.

When you're done, scroll to the bottom and hit submit. Now go to the command line on your PBX and type "amportal restart."

If you're using a version of FreePBX prior to 2.9, you'll have to do everything from the command line. Get to the command line on your machine and type the following:

cd /etc/asterisk
nano voicemail.conf

Under the [general] section, create the following new entries:

pollmailboxes=yes
pollfreq=15

Then hit Ctrl-O to save, and Ctrl-X to Exit.

Then issue the following command:

amportal restart

Enabling Dynamic Hints

If you plan to allow users to login and logout of devices on the fly (using a feature code designated in the Feature Codes module), you also need to enable DYNAMICHINTS.

If you're using FreePBX 2.9 or later, you can enable Dynamic Hints from the "Advanced Settings" module, after you set Display ReadOnly Settings = True.

If you're using FreePBX 2.8 or earlier, you have to go to your Linux command prompt and issue the following commands:

cd /etc
nano amportal.conf

Remove the # and leading spaces before the line that reads:

# DYNAMICHINTS=true

so that it reads:

DYNAMICHINTS=true

When you're done editing the file, hit Ctrl-O to save, and Ctrl-X to Exit.

If you enable DYNAMICHINTS in ANY version of FreePBX, you need to make sure that execincludes=yes appears in asterisk.conf:

cd /etc/asterisk
nano asterisk.conf

Add the following line under [options], if it isn't already there:

execincludes=yes

Ctrl-O to save
Ctrl-X to Exit

If the execincludes=yes was already there under [options], you're done. If you had to add execincludes=yes, then you need to restart asterisk:

amportal restart


Related Content