Category Archives: Howto Tutorials (EN)

Knowledge Network for Tutorials, Howto’s, Workaround, DevOps Code for Professionals.

How to Install Z-Push

How to Install Z-PushZ-Push is an open source application you’ll show how to install Z-Push. It’s for synchronizing ActiveSync compatible devices such as mobile phones, tablets and Outlook 2013 and later. Many years of experience in synchronization based on ActiveSync made Z-Push the leading open source push synchronization for many backends.

The main wireless synchronization platforms are ActiveSync for communication with Exchange Server and Research-in-Motion (RIM) BlackBerry Enterprise Server (BES). Both solutions require proprietary server-side software from the manufacturer, which limits the use of Personal Information Manager (PIMs) to either wired synchronization or third-party synchronization, which requires the installation of client software on the PDA.

This is where open source Z-Push comes in. It is an implementation of Microsoft’s ActiveSync protocol, which uses wirelessly for ActiveSync-enabled devices with multiple platforms, including Apple iPhone and iPad, Android and Blackberry 10 devices. With Open Source Z-Push, any PHP-based groupware package can be fully synchronized with any ActiveSync-compatible device.

How to Install Z-Push on Ubuntu

The distribution used in this guide is Ubuntu Server 20.04 LTS with Apache 2.4 and Kopano. Z-Push is installed from the repository as root:

$ add-apt-repository 'deb https://download.kopano.io/zhub/z-push:/final/Ubuntu_20.04/ /'

$ wget -qO - https://download.kopano.io/zhub/z-push:/final/Ubuntu_20.04/Release.key | sudo apt-key add -

$ apt-get update

$ apt-get install --reinstall z-push-kopano z-push-config-apache

After installation, the main directory can be found under the path /usr/share/z-push. The configuration files are located under /etc/z-push.

 If the Kopano server is on another host, MAPI_SERVER in /etc/z-push/kopano.conf.php must be adapted to the environment.

Z-push logging is not enabled in the default configuration, but can be very useful. For the log file you create a directory with mkdir /var/log/z-push, then activate the logging approx. at line 116, with nano or vi /etc/z-push/z-push.conf.php

Log settings
define('LOGFILEDIR', '/var/log/z-push/');
define('LOGFILE', LOGFILEDIR . 'z-push.log');
define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');

To the Apache web server restarts, apply changes are enable with this Command.

$ systemctl restart apache2.service

Install Z-Push on CentOS 7

On CentOS 7 the repository must be set up in the file /etc/yum.repos.d/z-push.repo as follows.

Insert the following lines in the terminal with Copy & Paste:

cat <<EOF> /etc/yum.repos.d/z-push.repo
[z-push]
name=Z-Push noarch Enterprise Linux 7 - $basearch
baseurl=http://repo.z-hub.io/z-push:/final/RHEL_7
failovermethod=priority
enabled=1
gpgcheck=0
EOF

The Z-Push repository is added and ready for installation.

  If the repository is RHEL_6_PHP_56 or RHEL_7_PHP_56 and communication between processes is cached, make sure the draw repository is enabled.

$ yum update

Here the Apache web server is used as a Kopano backend, perform the following command to install Z-Push:

$ yum install z-push-common z-push-config-apache z-push-backend-kopano z-push-ipc-sharedmemory

On CentOS the Apache web server restarts as follows:

$ systemctl restart httpd.service

Grandstream UCM LDAP Phonebook

This article descries the central phonebook provisioning using LDAP on a UCM IP PBX, allowing users to save, retrieve and make calls from their own contacts.

GRANDSTREAM UCM6202 UCM6208 central phonebook for contacts

The existing Phonebook of the UCM is intended for PBX, these contacts cannot be added or deleted directly. To change contacts, go to “Extensions” in the WebUI of the UCM. The read-only attributes of the corresponding elements can be edited in the extensions. The phone book is automatically updated when changes are made to the extensions. To add external contacts, users can use additional phonebooks. For these phone books, LDAP attributes can be edited and contacts can be added or deleted directly.

For the LDAP Phonebook already pre-installed on the UCM. You create an additional phone book, here in this example it is mycontacts, the X.500 Context looks like this:

ou=mycontacts,dc=pbx,dc=com

The configuration for phone books can be found in the WebUI of the UCM under System Settings – LDAP Server – LDAP Phonebook:

Click on +Add and create a new phonebook:

UCM LDAP add phonebook

After saving, the newly created phonebook appears as follows. The prefix denotes the X.500 Distinguished Name (DN) as an object OU=mycontacts:

UCM phonebook ldap server

On the right you click on the editor icon to add new contacts:

add contact phonebook

With the phone GXP21xx you go to PHONEBOOK and LDAP:

phonebook

In the Server Address field you enter the IP of the UCM. In the Field Base the context, under Phonebook – LDAP: (ou=mycontacts,dc=pbx,dc=com)

UCM LDAP phonebook

For the provisioning of the LDAP Phonebook mycontacts you go to Value-added-Features – Zero Config – Global Policy and open Contact List and activate Directory under LDAP Phonebook. Then you select the previously created Phonebook at Source, here mycontacts:

UCM LDAP phonebook zero config

Now Zero Config will make the change for the phones by clicking update.

On the phone GXP21xx you press the directory button and select LDAP directory, you have to enter a character at min. before pressing the softkey search, e.B. with an A all contacts containing an A are listed.