Utile h+ is a middleware that aims to integrate IP-PBX platforms with Property Management Systems (PMS). This guide describes the configurations needed on the PBXact server for the integration to be established.
...
That is why, the SAMBA Server need to be installed:
|
Once installed, place the following minimum settings in its configuration file ( /etc/samba/smb.conf ):
|
Once the SAMBA configuration has been set, it is necessary to create the following directory structure inside the /opt/CHAR path:
...
/opt/CHAR/codigos.txt → Employees codes so that they can get validated when calling to register the room as clean and also for registering in the log files which employee cleaned the room
|
NOTE: remember to assign the correct owner and give appropriate permissions, just execute the following:
|
You will also have to copy the default agi:
|
Restart the SAMBA service to apply the changes made before on its configuration file:
|
Enable it to autorun every time the server boot, as well:
|
The following minimum contexts can be defined within the asterisk file: /etc/asterisk/extensions_custom.conf where we specify certain configuration parameters for the room extensions:
...
As indicated, the last two lines (context and setvar) are the ones allowing the integration of PBXact with utile h+ . For these lines to be properly added to the room extensions, the /etc/asterisk/pjsip.endpoint_custom_post.conf (or /etc/asterisk/sip_custom_post.conf if the hotel room extensions rather use the CHAN_SIP channel driver) file should be edited as follows (example):
|
NOTE: for CHAN_SIP extensions, the correct nomenclature is setvar (and not set_var which is for PJSIP extensions)
...
The [habitaciones] context, point in asterisk's dialplan from where the room extensions will start at for each placed call, should be as follows (place these lines in the /etc/asterisk/extensions_custom.conf file):
|
Once configured, room extensions will be able to call hotel services or any number, depending on the result of the executed AGI script executed, as it will set a call with the context [hab-ocupada] or with the context [hab-libre], which may be configured as follows:
...
/etc/asterisk/extensions_custom.conf file):
|
[hab-ocupada] → It should allow to make any call, configured as follows (place these lines in the
/etc/asterisk/extensions_custom.conf file):
|
To be able to dial to other rooms and to place external calls, the contexts [extensiones] and [internacionales] have to be added to the /etc/asterisk/extensions_custom.conf file as well respectively:
|
NOTE 1: ZXX will allow for the dialing of any extension from 100 to 999 (see DIAL PATTERN INFO), if the hotel room extensions follow rather a different pattern (perhaps four digits numbers), this has to be adjusted accordingly.
NOTE 2: PJSIP/${EXTEN} may need to be changed to SIP/${EXTEN} if the hotel room extensions were rather created using the CHAN_SIP channel driver.
|
NOTE: AGIs are generated by utile h+ directly.
...
To access the service, it is necessary to add a code in the service context, as follows (place these lines in the /etc/asterisk/extensions_custom.conf file):
|
With this configuration, we will be able to access the roomservice context, where the service calls will be configured. To configure this, at least 1 audio file is recommended to be generated (see System Recordings Module User Guide):
room-cleaning-service.gsm → “Room Cleaning Service. Press 0 if the room is clean, or press 1 if it is not clean”.
...
The file “/opt/CHAR/codigos.txt” will be used to validate the code entered by the employee and be able to log it for the PMS (date, time, employee cleaning which room). The following context can be used (place these lines in the /etc/asterisk/extensions_custom.conf file):
|
NOTE: the format for each one of the lines that will get stored in the log to be transferred to the PMS (roomservice.log) is the following:
...
The following context can be used (place these lines in the /etc/asterisk/extensions_custom.conf file):
|
Alarm Clock Service (Wake-up calls)
...
The context for the wake up service is the “despertador” context and it can be as follows (place these lines in the /etc/asterisk/extensions_custom.conf file):
|
NOTE: it may be necessary to modify the template file for generating the wake-up calls according to the SIP channel driver the hotel room extensions were created with (CHAN_SIP or PJSIP). This is done by editing the reminder_template.call file inside the Windows computer running the utile h+ software, specifically located at: C:\CHARWIN\asterisk\hlink\reminder_template.call Simply change in the first line from PJSIP to SIP if the hotel room extensions use the CHAN_SIP channel driver and not the PJSIP driver:
...
Add the following lines at the end of the /etc/asterisk/extensions_custom.conf file
|
Billing
Every external call placed from a room extension is accounted and transferred accordingly to utile h+ which in turn sends the information to the PMS. For this integration, the following has to be included in the /etc/asterisk/cdr.conf file:
|
The final step is to make sure the Asterisk changes get applied, just execute:
|
APPENDIX A
Optional bash Scripts for batch automations
...
For automatically populating the /etc/asterisk/pjsip.endpoint_custom_post.conf (or /etc/asterisk/sip_custom_post.conf if the hotel room extensions rather use the CHAN_SIP channel driver and not PJSIP) file, the optional bash script
View file | ||
---|---|---|
|
Simply run it from any Linux PC or Server (it could be run from the PBXact itself) as follows:
...
The first time a Room's status is set as either Checked-In or Checked-Out via utile h+ (or via the PMS itself), utile h+ generates a corresponding checkinout###.php file and places it inside the PBX under /opt/CHAR/checking/ as mentioned before; if considered, the optional bash script
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
...
To automatically delete every voicemail file of all the Rooms that have changed to checked-out status, the optional bash script
View file | ||
---|---|---|
|
Place the script on the PBX, under: /opt/
Make it executable:
chmod +x /opt/delete_vm_files.shEdit the crontab (crontab -e) and add the cronjob line that will make the script run periodically. Examples:
a) If wanting for the script to run every day at 13h30: 30 13 * * * /usr/bin/sh /opt/delete_vm_files.sh
b) If wanting for the script to run every 10 minutes: */10 * * * * /usr/bin/sh /opt/delete_vm_files.sh
Warning | ||||
---|---|---|---|---|
The script will also delete any possible customized voicemail greetings files reproduced to callers before they can leave a voicemail message, if such customized voicemail greetings files are to be used in the Hotel, rather use the bash script
Note that if no customized voicemail greetings files exist, the PBX will simply just reproduce to callers, before they can leave a voicemail message, the voicemail announcement that comes already predetermined with the system. |
...
(root 644) /etc/samba/ :
View file | ||
---|---|---|
|
(asterisk 777) /opt/CHAR/ :
View file | ||
---|---|---|
|
(asterisk 664) /etc/asterisk/ :
View file | ||
---|---|---|
|
View file | ||
---|---|---|
|
(asterisk 664) /etc/asterisk/ :
View file | ||
---|---|---|
|
(asterisk 664) /etc/asterisk/ :
View file | ||
---|---|---|
|
Sangoma Professional Services are able to provide PBXact configuration support and it is limited to the PBXact configuration. utile h+ is without any warranty from Sangoma as this is a third party integration. End users are responsible for obtaining their own utile h+ support.