Voicemails

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#1
Hello,

Is Elastix voicemails like Trixbox can support different users to login to listen own voicemails ?

Thank !
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
you can have one voice mail by extension.

depending on your settings these voice mail can be read from any extension with the proper code, and you can direct any inbound call to any voicemail.
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#3
I mean can a user login GUI to read own voicemail, not read any voicemail.

THX !
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#4
from the gui you can read any voice mail you have the account / password for.

If you have only the password for your voicemail, then you can only read your voicemail.

If you want to add more limitations you can also firewall it to let only some IP access the GUI.
You can also add some .htconfig limit if you want to add another layer of security to access the gui.
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#5
How can I set it up?

I want 152 extension to read his own voicemail in GUI.

THX
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#6
then you just set it up normally.

In each extension tab you check the voicemail box and enter the password and that's it.

Each user will be able to access their own recording at the page: https://ipaddress/recordings/index.php
They will have to enter their extension number and their voicemail password.
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#8
Please

Access the server via ssh or local and check for the file main.inc.php inside the folder /var/www/html/recordings you can use the command "find /var/www/html/recordings -name main.inc.php" to locate.

If you can not try to access http://ipaddress/admin and enter user and password (admin), go to "Module Admin" and run the upgrade freepbx, can be problem on the page of the module ARI.


Emerson Inocente
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#9
also it should be a https, not http. But the rewrite should redirect you there anyway.

Can you access the normal admin page: at https://ipaddress?

If not you maybe haven't configure properly the httpd.conf "Order allow,deny" ip list of computer allowed to access the server gui.
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#10
Here's what I see in ipaddress/recordings/index.php

ARI does not appear to have access to the Asterisk Manager. ()
Check the ARI 'main.conf.php' configuration file to set the Asterisk Manager Account.
Check /etc/asterisk/manager.conf for a proper Asterisk Manager Account
make sure [general] enabled = yes and a 'permit=' line for localhost or the webserver.

What I need to setup with this problem ?

P.S. What command I can change all of default password in Elastix ?


Thank !
 

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#11
Copy the attached file to the / var / www / html / recordings / include / main.conf.php

Remember to set the owner of the file to the same User apache service (usually asterisk)

This will run the interface ARI.

Another option is to create users in the management of Elastix, these users must be registered in the "Extensions" so will have access to the voicemail, and other monitoring without access to system administration.


Emerson Inocente
 

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#12
Sorry, the file follows. Remember to register the password for user admin on TAG

$ARI_ADMIN_PASSWORD

------------------------- Cut file start here -------------------------------------------------
<?php

/**
* @file
* site-specific configuration file.
*/

###############################
# AMP or standalone settings
###############################
#
# From AMP. Used for logon to database.
#
$AMP_FUNCTIONS_FILES = "../admin/functions.php;../admin/functions.inc.php";
$AMPORTAL_CONF_FILE = "/etc/amportal.conf";

#
# Host for Asterisk Manager Interface
#
$ASTERISKMGR_DBHOST = "127.0.0.1";

#
# Database options for older legacy AMP installations (pre-FreePBX)
# - $LEGACY_AMP_DBFILE only needs to be set if using a database like sqlite
#
$LEGACY_AMP_DBHOST = "127.0.0.1";
$LEGACY_AMP_DBENGINE = "mysql";
$LEGACY_AMP_DBFILE = "";
$LEGACY_AMP_DBNAME = "asterisk";

#
# Database cdr settings
# - Only need to update these settings if standalone or an older AMP version (pre-FreePBX) is used
# - $ASTERISKCDR_DBFILE only needs to be set if using a database like sqlite
# Options: supported database types (others are supported, but not listed)
# 'mysql' - MySQL
# 'pgsql' - PostgreSQL
# 'oci8' - Oracle
# 'odbc' - ODBC
#
$ASTERISKCDR_DBHOST = "127.0.0.1";
$ASTERISKCDR_DBENGINE = "mysql";
$ASTERISKCDR_DBFILE = "";
$ASTERISKCDR_DBNAME = "asteriskcdrdb";
$ASTERISKCDR_DBTABLE = "cdr";

#
# Standalone, for use without AMP
# set use = true;
# set asterisk_mgruser to Asterisk Call Manager username
# set asterisk_mgrpass to Asterisk Call Manager password
#
$STANDALONE['use'] = false;
$STANDALONE['asterisk_mgruser'] = "";
$STANDALONE['asterisk_mgrpass'] = "";
$STANDALONE['asteriskcdr_dbuser'] = "";
$STANDALONE['asteriskcdr_dbpass'] = "";

###############################
# authentication settings
###############################
#
# For using the Call Monitor only
# option: 0 - use Authentication, Voicemail, and Call Monitor
# 1 - use only the Call Monitor
#
$ARI_NO_LOGIN = 0;

#
# Admin only account
#
$ARI_ADMIN_USERNAME = "admin";
$ARI_ADMIN_PASSWORD = "***********"; // admin password change here
#
# Admin extensions
# option: Comma delimited list of extensions
#
$ARI_ADMIN_EXTENSIONS = "";

#
# Authentication password to unlock cookie password
# This must be all continuous and only letters and numbers
#
$ARI_CRYPT_PASSWORD = "z1Mc6KRxA7Nw90dGjY5qLXhtrPgJOfeCaUmHvQT3yW8nDsI2VkEpiS4blFoBuZ";

###############################
# modules settings
###############################
#
# modules with admin only status (they will not be displayed for regular users)
# option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
#
$ARI_ADMIN_MODULES = "";

#
# disable modules (you can also just delete them from /recordings/modules without problems)
# option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
#
$ARI_DISABLED_MODULES = "";

#
# sets the default admin page
# option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
#
$ARI_DEFAULT_ADMIN_PAGE = "callmonitor";

#
# sets the default user page
# option: Comma delimited list of module names (ie voicemail,callmonitor,help,settings)
#
$ARI_DEFAULT_USER_PAGE = "voicemail";

#
# enables ajax page refresh
# option: 0 - disable ajax page refresh
# 1 - enable ajax page refresh
#
$AJAX_PAGE_REFRESH_ENABLE = 1;

#
# sets the default user page
# option: refresh time in 'minutes:seconds' (0 to inifinity) : (0 to 59)
#
$AJAX_PAGE_REFRESH_TIME ="01:00";
###############################
# voicemail settings
###############################
#
# voicemail config.
#
$ASTERISK_VOICEMAIL_CONF = "/etc/asterisk/voicemail.conf";

#
# To set to a specific context.
# If using default or more than one context then leave blank
#
$ASTERISK_VOICEMAIL_CONTEXT = "";

#
# Location of asterisk voicemail recordings on server
# Use semi-colon for multiple paths
#
$ASTERISK_VOICEMAIL_PATH = "/var/spool/asterisk/voicemail";

#
# valid mailbox folders
#
$ASTERISK_VOICEMAIL_FOLDERS = array();
$ASTERISK_VOICEMAIL_FOLDERS[0]['folder'] = "INBOX";
$ASTERISK_VOICEMAIL_FOLDERS[0]['name'] = _("INBOX");
$ASTERISK_VOICEMAIL_FOLDERS[1]['folder'] = "Family";
$ASTERISK_VOICEMAIL_FOLDERS[1]['name'] = _("Family");
$ASTERISK_VOICEMAIL_FOLDERS[2]['folder'] = "Friends";
$ASTERISK_VOICEMAIL_FOLDERS[2]['name'] = _("Friends");
$ASTERISK_VOICEMAIL_FOLDERS[3]['folder'] = "Old";
$ASTERISK_VOICEMAIL_FOLDERS[3]['name'] = _("Old");
$ASTERISK_VOICEMAIL_FOLDERS[4]['folder'] = "Work";
$ASTERISK_VOICEMAIL_FOLDERS[4]['name'] = _("Work");

###############################
# call monitor settings
###############################
#
# Location of asterisk call monitor recordings on server
#
$ASTERISK_CALLMONITOR_PATH = "/var/spool/asterisk/monitor";

#
# Extensions with access to all call monitor recordings
# option: Comma delimited list of extensions or "all"
#
$CALLMONITOR_ADMIN_EXTENSIONS ="";
#
# Allow call monitor users to delete monitored calls
# option: 0 - do not show controls
# 1 - show controls
#
$CALLMONITOR_ALLOW_DELETE = 1;

#

#
# Allow for aggressive matching of recording files to database records
# will match recordings that are marked several seconds off
# option: 0 - do not aggressively match
# 1 - aggressively match
#
$CALLMONITOR_AGGRESSIVE_MATCHING = 1;

#
# Limits log/recording file matching to exact matching
# will not try to look through all the recordings and make a best match
# even if there is not uniqueid
# requires that the MYSQL_UNIQUEID flag be compiled in asterisk-addons
# (in the asterisk-addon Makefile add the following "CFLAGS+=-DMYSQL_LOGUNIQUEID")
#
# * use if there are or will be more than 2500 recording files
#
# option: 0 - do not exact match
# 1 - only exact match
#
$CALLMONITOR_ONLY_EXACT_MATCHING = 0;

###############################
# conference page settings
###############################
#
# Meetme extension prefix
# for this module to function, the user has to have
# a meetme conference room {prefix}{extension}
#
$CONFERENCE_WEBMEETME_PREFIX = "";

#
# url to web meetme conference room
# example: "http://example.mycompany.com/webmeetme"
#
$CONFERENCE_WEBMEETME_URL = "";

###############################
# help page settings
###############################
#
# help feature codes
# list of handset options and their function
#
$ARI_HELP_FEATURE_CODES = array();
//$ARI_HELP_FEATURE_CODES['*411'] = _("Directory");
//$ARI_HELP_FEATURE_CODES['*43'] = _("Echo Test");
//$ARI_HELP_FEATURE_CODES['*60'] = _("Time");
//$ARI_HELP_FEATURE_CODES['*61'] = _("Weather");
//$ARI_HELP_FEATURE_CODES['*62'] = _("Schedule wakeup call");
//$ARI_HELP_FEATURE_CODES['*65'] = _("festival test (your extension is XXX)");
//$ARI_HELP_FEATURE_CODES['*77'] = _("IVR Recording");
//$ARI_HELP_FEATURE_CODES['*99'] = _("Playback IVR Recording");
//$ARI_HELP_FEATURE_CODES['666'] = _("Test Fax");
//$ARI_HELP_FEATURE_CODES['7777'] = _("Simulate incoming call");

$ARI_HELP_FEATURE_CODES['*72'] = _("Call Forward All Activate");
$ARI_HELP_FEATURE_CODES['*73'] = _("Call Forward All Deactivate");
$ARI_HELP_FEATURE_CODES['*74'] = _("Call Forward All Prompting Deactivate");
$ARI_HELP_FEATURE_CODES['*90'] = _("Call Forward Busy Activate");
$ARI_HELP_FEATURE_CODES['*91'] = _("Call Forward Busy Deactivate");
$ARI_HELP_FEATURE_CODES['*92'] = _("Call Forward Busy Prompting Deactivate");
$ARI_HELP_FEATURE_CODES['*52'] = _("Call Forward No Answer/Unavailable Activate");
$ARI_HELP_FEATURE_CODES['*53'] = _("Call Forward No Answer/Unavailable Deactivate");
$ARI_HELP_FEATURE_CODES['*70'] = _("Call Waiting - Activate");
$ARI_HELP_FEATURE_CODES['*71'] = _("Call Waiting - Deactivate");
$ARI_HELP_FEATURE_CODES['*78'] = _("Do-Not-Disturb Activate");
$ARI_HELP_FEATURE_CODES['*79'] = _("Do-Not-Disturb Deactivate");
$ARI_HELP_FEATURE_CODES['*97'] = _("My Voicemail");
$ARI_HELP_FEATURE_CODES['*98'] = _("Dial Voicemail");

###############################
# settings page settings
###############################
#
# protocol config.
# config_file options: semi-colon delimited list of extensions
#
$ASTERISK_PROTOCOLS = array();
$ASTERISK_PROTOCOLS['iax']['table'] = "iax";
$ASTERISK_PROTOCOLS['iax']['config_files'] = "/etc/asterisk/iax.conf;/etc/asterisk/iax_additional.conf";
$ASTERISK_PROTOCOLS['sip']['table'] = "sip";
$ASTERISK_PROTOCOLS['sip']['config_files'] = "/etc/asterisk/sip.conf;/etc/asterisk/sip_additional.conf";
$ASTERISK_PROTOCOLS['zap']['table'] = "zap";
$ASTERISK_PROTOCOLS['zap']['config_files'] = "/etc/asterisk/zapata.conf;/etc/asterisk/zapata_additional.conf";

# Settings for Follow-Me Select Boxes in seconds
#

$SETTINGS_PRERING_LOW = 4;
$SETTINGS_PRERING_HIGH = 30;
$SETTINGS_LISTRING_LOW = 6;
$SETTINGS_LISTRING_HIGH = 60;

$SETTINGS_FOLLOW_ME_LIST_MAX = 5;
$SETTINGS_ALLOW_VMX_SETTINGS = true;
#
# For setting
# option: 0 - do not show controls
# 1 - show controls
#
$SETTINGS_ALLOW_CALLFORWARD_SETTINGS = 1;
$SETTINGS_ALLOW_VOICEMAIL_SETTINGS = 1;
$SETTINGS_ALLOW_VOICEMAIL_PASSWORD_SET = 1;

#
# password length
# setting: number of characters required for changing voicemail password
#
$SETTINGS_VOICEMAIL_PASSWORD_LENGTH = 3;

#
# password exact length
# option: 0 - do not require exact length when setting the password
# 1 - require exact length when setting the password
#
$SETTINGS_VOICEMAIL_PASSWORD_EXACT = 0;

#
# voicemail email option descriptions
#
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS = array();
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['attach'] = _("Email voicemail as attachment");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['saycid'] = _("Say caller id in recording emailed");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['envelope'] = _("Say envelop (date/time) in recording emailed");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['delete'] = _("Delete voicemail when emailed");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['nextaftercmd'] = _("Play next message after deleting current message");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['review'] = _("Ask caller to review their voicemail before sending");
$SETTINGS_VOICEMAIL_EMAIL_OPTION_DESCRIPTIONS['maxmessage'] = _("Maximum time in seconds a voicemail will record");

#
# Default
# option: ".wav" - wav format
# ".gsm" - gsm format
#
$ARI_VOICEMAIL_AUDIO_FORMAT_DEFAULT = ".wav";

#
# For setting
# option: 0 - do not show controls
# 1 - show controls
#
$SETTINGS_ALLOW_CALL_RECORDING_SET = 1;

$SETTINGS_ALLOW_PHONE_SETTINGS = 1;

?>
------------------------------- end of file ------------------------------------------------
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#13
OK, how can I reset all of default admin password ?

Thank
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#14
the voicemail password are in /etc/asterisk/voicemail.conf
but better to change them from the gui.


For the Elastix admin password, you can change it in System/User Management/Users
For the freepbx password, setup/administrator/admin
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#15
Could you tell me which password I must need to reset like freepbx ? I don't want hack by people !

Thank !
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#16
hack by who? People on your LAN or on the internet?

You should not expose your server to the internet without a firewall. You should not expose the gui from outside without proper security (i.e. vpn).


To protect from the LAN, change the admin password in elastix gui and freepbx (read my previous post to know where to change them)

for more security issue, search on this forum in the security section, you will see a lot of good advices regarding extension password, network firewall and port forwarding, etc...
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#17

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#18
<<<< Remember to register the password for user admin on TAG

Where to enter register ???
 

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#19
leiw3248

Password for admin to ARI.

#
# Admin only account
#
$ARI_ADMIN_USERNAME = "admin";
$ARI_ADMIN_PASSWORD = "***********"; // admin password change here


Emerson Inocente
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#20
Hello,

I don't have "includes" directory in /var/www/html/recordings, so I created one.

and created main.conf.php in "includes" directory with following permission:

drwxr-xr-x 2 root root 4096 Sep 11 12:56 .
drwxr-xr-x 3 asterisk asterisk 4096 Sep 11 07:39 ..
-rw-r--r-- 1 asterisk asterisk 10145 Sep 11 12:53 main.conf.php

Also edited the Password for admin to ARI in main.conf.php, this password same as GUI admin login.

When I browers http://172.16.1.214/recordings/index.php it's a blank page !

Please help !
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top