Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Nurse Call Systems Integration with Wildix W-AIR - Admin Guide
There are 5 different message types that can be used between a Message server and W-AIR base station:
XML tag
Description
Direction
XML tag
Description
Direction
Systeminfo
Messages that handle synchronization between W-AIR base station (BS) and a Message server (MS)
MS -> BS
BS -> MS
Login
Messages that inform a Message server about location of W-AIR handset on a specific W-AIR base station
BS -> MS
Job
Alarms sent from a Message server to W-AIR base station and displayed on W-AIR handset under an alarm icon
MS -> BS
SMS sent from a Message server to W-AIR base station and displayed under an SMS icon
MS -> BS
SMS sent from W-AIR base station/ handset to another W-AIR base station/ handset via a Message server
BS -> MS
alarm
Alarms sent from W-AIR base station/ handset to a Message server
BS -> MS
beacon
Beacon information sent from W-AIR base station/ handset to a Message server
BS -> MS
Systeminfo and Login are only used when a Message server needs to send alarms/ SMS to W-AIR base station/ handset.For those Message servers that only receive beacons/ alarms from W-AIR base station/ handset, Systeminfo and Login procedures can be skipped.
Below there is a description of message formats between a Message server and W-AIR base station, followed by different message types.
XML interface: total length of XML packet is 4096 bytes. The interface follows the XML standards. Here are some basic rules:
All XML packets need to start with this XML header:
<?xml version="1.0" encoding="UTF-8"?>
No spaces in the < > elements, except for separating attributes. Examples:
<element> is valid
< element > is not valid (spaces before and after “element”)
<element > is not valid (space after “element”)
<element attribute=”attribute1”> is valid
<element attribute = “attribute1” > is not valid (spaces before and after = and after the second “)
<element /> is not valid (space before /)
All elements have to be properly closed
UTF-8 is not supported, only the below extended ASCII table is supported:
XML schema description
This is XML schema description for the generic outgoing XML-based interface from a Message server. W-AIR base station should ignore unknown fields and packages received from a Message server.
System name, e.g., base name or messages server system name
XML child "datetime" (SystemDataDef)
"2014-03-04T10:16:20" is local date and time for log-reason and can be individual formatted between the systems. Note: this timestamp is not used when presenting the alarm on W-AIR handset
XML child "timestamp" (SystemDataDef)
UTC time in HEX format
XML child "status", "statusinfo" (SystemDataDef)
"status" is the decimal value the following values
"statusinfo" is the string values the following values
Sometimes, an address is not a SIP account, and in that case, the address will have a type "attribute" describing the nature of the address. This can be:
"IPEI" - This is used when the addressed device has no SIP account
"ALARM", "BEACON" and "CONFIG" - These can be used to distinguish if the message is addressed to a specific server, i.e. alarm server or beacon server
If no type "attribute" is present, the address should be interpreted as SIP account
XML child "name" (PersonDataDef)
Called party display name (W-AIR handset SIP account display name)
XML child "location" (PersonDataDef)
Can be W-AIR handset's current location if available (Base name). This is the name of W-AIR base station where W-AIR handset was registered first time after startup (SIP registration), so the location cannot be used, located where W-AIR handset actually has the DECT connection, when walking around between different base stations
Setup between W-AIR base station and a Message server
To configure Text messaging feature:
Access the Base Station's web interface and navigate to Management menu
Enable Text Messaging settings and specify the following parameters:
Text Messaging & Alarm Server: IP or domain name of a Message server W-AIR base station is connected to
Text Messaging Port: port used by a Message server and W-AIR base station
Text Messaging Keep Alive: minutes between W-AIR base station sends a keep alive signal to a Message server
Text messaging Response: if W-AIR base station does not receive a response from a Message server within 30 seconds, W-AIR base station informs W-AIR handset that the messages are not delivered after sending an SMS to a Message server
Click Save and Reboot to apply the changes
When W-AIR base station is configured, sync messages are sent followed by a sync message for each W-AIR handset registered on W-AIR base station.
W-AIR base station and a Message server has now informed each other that they exist. Now they both can send a “keep alive” signal to each other, you can decide how often to send it in Management menu -> Text Messaging. “keep Alive” messages contain information about all registered W-AIR handsets. In case a Message server gets restarted, it can always request this information from W-AIR base station.
Examples of “keep alive” signals
The response signal always use the same external Id as the request
Sending alarms to W-AIR base station/ handset from a Message server
A Message server can send a UDP packet to W-AIR base station with XML information about the alarm. W-AIR base station sends the alarm to W-AIR handset and a response is sent back to a Message server.
Priority
It is possible to set an alarm with different priority, below are the different colors that are used on W-AIR handset depending on the priority.
1: red
2: red
3: red
4: Yellow
5: Yellow
6: Yellow
7: Green
8: Green
9: Green
All other values: Green
Confirmation type
XML child "confirmationtype" (JobDataDef):
0: No User confirmation needed
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR base station
1: User Received Job confirmation needed
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR base station
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR handset
2: User Confirm/ Reject Job confirmation needed
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR base station
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR handset
W-AIR base station sends back a confirmation to a Message server if the user confirms /rejects the message
Reference number
Substituting an alarm
The reference number is unique number per alarm. When sending an alarm, the reference number always needs to be present, otherwise the message is interpreted as an SMS.
If an alarm is sent with the same referencenumber as a previous alarm that is NOT yet confirmed/ rejected (confirmationtype2), the first alarm is deleted and only the new one is saved and displayed on W-AIR handset
If an alarm is sent with the same referencenumber as a previous alarm that is confirmed/ rejected, then both alarms are displayed
If an alarm is sent with the same referencenumber as a previous alarm that has confirmationtype0 or 1, then both alarms are on W-AIR handset
Deleting an alarm
It is possible to delete an alarm that is NOT yet confirmed/ rejected on W-AIR handset.
Deletion is available for an alarm with confirmationtype1 and 2
For deleting an existing alarm, the same reference number should be used and the status should be set to 10
Response handling
For confirmationtype1 and 2, there is always a response sent to a Message server that W-AIR base station/ handset receives the messages:
A Message server needs both responses to be sure that the messages are received on W-AIR handset.
A Message server should not send a new message to the same W-AIR handset before both responses are received
In case a Message server does not receive the response from W-AIR handset, it should wait a minimum of 10 sec before trying to send a message again to the same W-AIR handset. This is needed so W-AIR base station has enough time to timeout the first messages
When using confirmationtype 0, a Message server doesn't know if the SMS/ alarm is lost from W-AIR base station to W-AIR handset. Here a Message server should always wait 10 sec between each message to the same W-AIR handset
Alarm with Callback number
When an alarm is sent from the Message Server to the W-AIR base station, it is treated as an alarm if the reference number is set.
If a callback number is also set:
The W-AIR base station replaces the address field with this number
The receiving extension sees the callback as the sender and can call it directly
In Settings → Alarms, you can turn on/off the automatic confirmation for the Callback option. There are two options:
Alarm in call
Callback confirm
Callback confirm
Enabled:
When an alarm is answered using the callback option, an alarm confirmation message will be transmitted to the BS once the call has been connected with the extension specified in the callback number field.
Disabled:
No alarm confirmation message will be sent when using the callback option for a received alarm message.
Note: This confirmation functionality is currently not compatible with voicemail options from the PBX, as this actually connects the call and there currently is no way to distinguish this from actually reaching the remote end on the handset. This results in alarms always being accepted if voicemail or other features that enable a connection are enabled.
The setting can be changed both on the PP, and by config file on the FP. The config file overrules the local setting. The config file has three options:
global on (the setting is hidden from the user)
global off (the setting is hidden from the user)
local on (the user can see and change the setting)
The Callback confirm setting is by default enabled (local on).
Examples
Below are examples of an alarm sent from a Message server with confirmationtype 2:
Sending alarms from W-AIR base station/ handset to a Message server
W-AIR handset can be configured so it sends an alarm to a Message server for the following cases:
0: Man Down
1: No Movement
2: Running
3: Pull Cord
4: Red Key
5-9 Reserved
Furthermore, the latest available beacon data is added to the alarm messages. If no beacon UUID is available, the field is empty.
beacontype can be:
0: Unknown
1: iBeacon
2: AltBeacon
3: Eddystone
Data payload can be:
broadcastdata: HEX encoded raw beacon BLE broadcast payload. Maximum 64 characters (32 bytes).
bdaddr; HEX encoded permanent Bluetooth address for the received beacon. Maximum 12 characters (6 bytes)
Note: When an alarm is triggered on W-AIR handset, an ongoing call is terminated . This is done for all types, even though it is not necessary for “message types”.
Examples
Below are examples of XML messages when W-AIR handset sends an alarm for “Man Down”:
<?xml version="1.0" encoding="UTF-8"?>
<response version="v.3.4.7.1047" type="alarm">
<externalid>0623295349</externalid>
<status>1</status>
<statusinfo>Accepted by New Voice XML outgoing interface</statusinfo>
<systemdata>
<name>Mobicall</name>
<datetime>2017-06-20T12:55:55</datetime> <timestamp>5948ff3b</timestamp>
<status>1</status>
<statusinfo>System running</statusinfo>
</systemdata>
</response>
SMS
Sending SMS to W-AIR base station/ handset from a Message server
When sending an SMS from a Message server, the reference number string should be removed from the XML message. After this is done, messages are interpreted as an SMS instead of an alarm.
Note that:
It is not possible to send a delete request from a Message server to W-AIR base station/ handset for an SMS
It is not possible to substitute an SMS with a new SMS
Priority
An SMS can be sent to W-AIR handset with 2 priorities:
0: Normal
1: Urgent
Confirmation type
There are 2 confirmations types for SMS:
0: No User confirmation needed
W-AIR base station sends back a confirmation to a Message server that the message is received on its side
W-AIR base station sends back a confirmation to MS that the message is received on W-AIR handset side
1: User Confirm/Reject Job confirmation needed
W-AIR base station sends back a confirmation to a Message server that the message is received on its side
W-AIR base station sends back a confirmation to a Message server that the message is received on W-AIR handset side
W-AIR base station send s back a confirmation to a Message server if user confirms/ rejects the message
Sending SMS from W-AIR base station/ handset to another W-AIR base station/ handset via a Message server
It is possible to send an SMS from one W-AIR handset to another W-AIR handset via a Message server that supports such functionality.
Priority
An SMS can be sent from W-AIR handset with 2 priorities:
0: Normal
1: Urgent
Examples
Below are examples of messages sent between W-AIR base station and a Message server.