Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Documentation:Dialplan Applications - Admin Guide.

7. Configure auto-reconnect (Retail helper service)

The configuration is required for x-hoppers headsets to automatically rejoin the broadcast after charging or in case they unexpectedly drop out of the broadcast for any reason. For this, you need to enable the wair-retail-helper service. It also allows to:

  • Automatically add headset to the broadcast when it’s registered to the base and assigned to a user
  • After a specified timeout, return device from hold
    If a user has a call with another user, and it is put on hold, the PBX returns this call from hold automatically, if there are no other calls for the headset except for the broadcast.

By default, the wair-retail-helper service is disabled. To enable it, follow the below instructions to configure the service:

...

11 (means Shell, type it in Enter an option line)
su
wildix (Password line)

...

Run the command nano-tiny /etc/wair-retail-helper/service.conf

Add the following lines to the file:

USER_AGENT="Wildix W-AIR-SP/HS"
CONF_EXTEN="*wair*"
TIMEOUT="10"

Where: 

  • USER_AGENT is the SIP user agent of the headset. It consists of two parts, one referring to the base station (Wildix W-AIR-SP), and the other stands for the headset (HS). 
Note

Note: Make sure the base station part corresponds to the base station you’re actually using. For example, for a headset registered to SBR2 base station, the user agent should be "W-AIR-SBR2/HS"

...

Also, configure the service to be started automatically after reboot of the PBX:

...

Other commands to manage the service

  • To stop the service: 
systemctl stop wair-retail-helper
  • To check the service status:
systemctl status wair-retail-helper

...

Note: You can configure Retail helper to be automatically disabled during out of working hours, so that the headsets get a full charge without being permanently in the broadcast.

Create a cronjob from shell (11 / su / wildix):

...

30 06 * * * systemctl start wair-retail-helper
30 18 * * * systemctl stop wair-retail-helper
31 18 * * * /usr/sbin/callweaver -rx "channel request hangup all"

In the example above the headsets come out of the broadcast at 18:31 and join at 6:30.

The start and finish times can be adjusted according to when the store clerks are going to use the headsets.


Joining the Broadcast from Other Devices

...