OmniPCX Office OHL API Developer Guide Ed2.1 PDF
OmniPCX Office OHL API Developer Guide Ed2.1 PDF
OmniPCX Office OHL API Developer Guide Ed2.1 PDF
Interface OHL
Version R2.3.8
Edition 2.0 - December 12 Adding the support for 6 digits password from OmniPCX Office
R8.2
Edition 2.1 -November 13 Corrections (OLDriver 2.3.8)
References
Both the Hotel application and the OmniPCX Office can perform some identical functions. The hotel
application has to manage the consistency of this data. This is out of the scope of this
specification. The OmniPCX Office Hospitality Link allows the synchronization between the
operations made on both application and OmniPCX Office sides.
PC Windows
Note: This message frame contains no CRC field by default. However, to allow compatibility
with some applications the CRC field is an option : with or without CRC field (without is the
implicit as shown).If CRC is enabled, a two character field preceding the "ETX" field is created
and reserved for "CRC".
Note: This message frame contains no CRC field by default. However, to allow compatibility
with some applications the CRC field is an option : with or without CRC field (without is the
implicit as shown).If CRC is enabled, a two character field preceding the "ETX" field is created
and reserved for "CRC".
The keep alive messages are not acknowledged with ACK or NACK messages.
3.8 Management
A guest is identified through his "ROOM" (extension) number.
Using this extension number does accounting and management.
If guests want to receive directly their incoming calls, a "DDI” number (direct dial inward) can be
associated to that extension on the OmniPCX Office system.
The new message types are used for either four or six digits password.
The new message types are described under section 7.
The old (current) message types are not modified to support existing hotel application.
Hotel application can use the existing message format with four digits password without any
modification.
From the hotel application, for four digits password either new or existing message types can be
used.
For six digits password, new message types has to be used. OLD Driver selects the message type
(new or old message) to be sent to application based on the password length configured in OXO.
If OXO has software version 8.1 or earlier then only “4 digit password” can be used.
Configuration done in OXO and Partner Application software with “4 digit password” ->
OLD version should be 2.3.5 or higher, and we use the currents frames (A, M, …).
Configuration done in OXO and Partner Application software with “6 digit password” ->
OLD version should be at least 2.3.6, and we use the new frames (B, N, …).
Note: to use the new message with 4/ 6 digit password, necessary adaptation has to be done
in the existing hotel application(s).
5.1.2 Notes
Field 3: “room extension” is right justified. The room extension may include “*”and
“#”characters. By default the system will give the last 4 digits of calling or called
subscriber, In case of numbering plan base on more than 4 digits, please select “User8”
under PM5 metering fields parameter. In case of unanswered incoming calls it is possible
to have a hunt group number instead of a room extension number.
Field 5: the "call type" has the following values if available (other values may be added
later):
0 for public network "outgoing call"
1 for "transfer" of public network outgoing call followed by the transferring extension
number in the acting extension field if available
3 reserved
4 for public network "incoming call"
5 for MTR charge assignment call arising from Booth phone call ; initiator extension
no. is in the acting extension field ( see Note1 )
Note 1: If the PBX hotel feature 'Charge Assignment' is used which results from a Booth phone MTR
call( meter total recall ), then two SMDR frames are generated. One SMDR for the Booth phone call
and the second for the room which has been assigned the charge. To associate these two SMDR’s, it
is necessary to use the date / time and duration fields of the two SMDR frames, as the dialled number
field of the 'Charge assignment' SMDR is empty. The Acting extension field is only completed on the
'Charge Assignment' SMDR and contains the extension no. of the initiator of the MTR call ( i.e.:-
initiator is the extension which allocates the trunk using the MTR feature:
- normally the operator).
5.5 Modification
The Hotel Driver sends this message when a modification is done by the integrated application. (E.g.:
Reception set)
Between the message “re-init request” and the last message “guest data-base reinit” (sub-type “E”)
the application has to wait: no other message can be sent.
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 U re-initialization answer message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
4 sub-type 1 P Partial re-initialization on going
O End of re-initialization (last message, or only message)
5 DDI number 8 bbbbbbbb to 99999999 DDI number (bbbbbbbb = no DDI number)
6 password 4 0000 to 9999 room set password
7 CRC 2 XOR fields 2 to 6 control characters
8 ETX 1 '0x03' end of text
Total length msg 26
If there are no guests checked-in, the room number is set to blanks and the sub-type to ‘O’.
sub-type ‘O’:
If you have 3 guests checked-in: you will received 2 messages with sub-type “P” and the last
message with sub-type “O”;
If you have only one guest checked-in: you will received only message with sub-type “O”;
If you have no guest checked-in: you will received only message with sub-type “O”;
Between the message “re-init request” and the last message “guest data-base reinit” (sub-type “O”)
the application has to wait: no other message can be sent.
5.17 Reply
This message is sent from the Hotel Driver to the Hotel Application as a layer 3 acknowledge:
To accept a command with a restrictive warning
To refuse a command with the reason
If a previous computer command was handled correctly, and if information or warnings are not
necessary, the Hotel Driver does not send any "reply".
Deposit, on OmniPCX Office only fixed deposit available. If a floating-point deposit is transmitting,
the floating part will not be taking into account.
Possible cause of ‘Check-in’ reject, the check-in message will be refused by a ‘reply’ in case of:
Possible cause of ‘Phone Allocation’ reject, the ‘Phone Allocation’ message will be refused by a
‘reply’ in case of:
Possible cause of ‘Modification’ reject, the modification message will be refused by a ‘reply’ in case
of:
If the room extension is busy with an external outgoing call, when the Hotel Driver resets the pre-
payment value, depending on the PBX configuration the call will be immediately cut or not. No
indication is given to the Hotel Application: Reply message (parameters = “Ob”).
On checkout the following elements are set:
Room State: Free
Room clean status: Unclean
Voice Mailbox: Content erased
Personal code: Reset
Wakeup call request: Disabled
Do Not Disturb: Disabled
Guest Name: set to “RoomNumber”
Allocated DDI: Free
Possible cause of ‘Check-out’ reject, the checked-out message will be refused by a ‘reply’ in case of:
6.6 Interrogation
The hotel Application uses this command to request guest telephone accounts.
The Hotel Application can ask the PABX to send all the data it has on a specific guest or on every
checked-in guests/extensions.
The Re-initialization request is mandatory, otherwise de-synchronization between the
computer and the PABX occurs, the Hotel Application must use this command to retrieve the PABX
guest room database information, then modify the de-synchronized information. It must avoid
sending a succession of "Check-out" then "Check-in" commands.
The computer must wait up to the end of the database re-initialization (reception of a re-initialization
message with a sub-type value ‘E’ (End) for full data, and ‘O’ for partial data), before sending any
new command.
Possible cause of ‘Check-out’ reject, the checked-out message will be refused by a ‘reply’ in case of:
- Invalid room extension number (out of range) (in case of specific room state re-
initialization request)
- A PBX doesn’t answer response due to bad hostname, unreachable system,
wrong password or OmniPCX Office PCMan connection busy (PM5, MMC,
4760…).
Fiel Length
Value Comments
d (bytes)
1 STX 1 '0x02' start of text
2 type 1 B guest Arrival (Check-In) message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
bbbbbbbbb no pre-payment
13 message 1 b no change
waiting 1 message(s) waiting at the front desk
0 no message waiting at the front desk
14 wake-up time 4 00 00 to 23 59 wake-up time hour (2 char.) and minutes(2 char.)
bbbb no wake-up programmed
15 wake-up action 1 b not used
16 do not disturb 1 0 clear DND and forwarding
2 set room extension in DND
1 forward room extension to voice mail
17 CRC 2 XOR fields 2 to 16 control characters
18 ETX 1 '0x03' end of text
Total length msg 63
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 N Modification message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
bbbbbbbbb no pre-payment
13 message 1 b 'no change'
waiting 1 message(s) waiting at the front desk
0 no message waiting at the front desk
14 wake-up time 4 00 00 to 23 59 wake-up time hour (2 char.) and minutes(2 char.)
bbbb 'no change'
15 wake-up action 1 b program wake-up or 'no change'
0 cancel wake-up
16 do not disturb 1 0 clear DND and forwarding
2 set room extension in DND
1 forward room extension to voice mail
b 'no change'
17 CRC 2 XOR fields 2 to 16 control characters
18 ETX 1 '0x03' end of text
Total length msg 63
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 V re-initialization answer message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
bbbbbbbbb no pre-payment
15 message 1 0 no message waiting at the front desk
waiting 1 message(s) waiting at the front desk
16 wake-up time 4 00 00 to 23 59 wake-up time hour (2 char.) and minutes(2 char.)
bbbb no wake-up programmed
17 wake-up action 1 b unused
18 do not disturb 1 0 no DND and forwarding programmed
2 set room extension in DND
1 forward room extension to voice mail
17 unused 1 b for compatibility reason.
18 unused 1 b for compatibility reason.
19 unused 4 bbbb for compatibility reason.
20 unused 5 bbbbb for compatibility reason.
21 status 1 1 or 2 1 the room has been cleaned and is ready
2 the room must be cleaned
22 problem code 3 000 to 999 The problem code of the room : the PBX transmits
the digits dialed by the maid without any
interpretation.
(000 means no problem).
23 unused 11 bbbbbbbbbbb for compatibility reason.
23 CRC 2 XOR fields 2 to 23 control characters
24 ETX 1 '0x03' end of text
Total length msg 98
If you have no guest checked-in: you will received only message with sub-type “E”;
7.1.4 Partial re-initialization message format with six bytes password length
The new message introduced is similar to the existing Partial re-initialization message except, change
in ‘type’ value and change in length of password field.
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 V re-initialization answer message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
If there are no guests checked-in, the room number is set to blanks and the sub-type to ‘O’.
sub-type ‘O’:
If you have 3 guests checked-in: you will received 2 messages with sub-type “P” and the last
message with sub-type “O”;
If you have only one guest checked-in: you will received only message with sub-type “O”;
If you have no guest checked-in: you will received only message with sub-type “O”;
Between the message “re-init request” and the last message “guest data-base reinit” (sub-type “O”)
the application has to wait: no other message can be sent.
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 S Reply (message type)
3 room extension bbbbbbb0 to 99999999 room set extension
8
4 password bb0000 to bb9999 room set with four digit password
6 000000 to 999999 room set with six digit password
5 action 1 I Check In accepted
J Check In refused
O Check Out accepted
P Check Out refused
M Modification accepted
N Modification refused
A Phone Allocation accepted
B Phone Allocation refused
Q Interrogation accepted
R Interrogation refused
T Re-initialisation refused
6 reason 1 A Room already allocated or Room not allocated
G Invalid number
O Room set out of service
R Invalid room extension number (not used)
U Unavailable room extension
M Not consulted message (in mailbox or at message
desk): Non available feature, messages are deleted
on Check Out
J Non available feature
K Wrong message
Q Unreachable database (the PBX doesn’t answer)
T Other
7 CRC 2 XOR fields 2 to 6 control characters
8 ETX 1 '0x03' end of text
Total length msg 21
Fiel Length
Value Comments
d (bytes)
1 STX 1 '0x02' start of text
2 type 1 B guest Arrival (Check-In) message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
bbbbbbbbb no pre-payment
13 message 1 b no change
waiting 1 message(s) waiting at the front desk
0 no message waiting at the front desk
14 wake-up time 4 00 00 to 23 59 wake-up time hour (2 char.) and minutes(2 char.)
bbbb no wake-up programmed
15 wake-up action 1 b not used
16 do not disturb 1 0 clear DND and forwarding
2 set room extension in DND
1 forward room extension to voice mail
17 CRC 2 XOR fields 2 to 16 control characters
18 ETX 1 '0x03' end of text
Total length msg 63
Deposit, on OmniPCX Office only fixed deposit available. If a floating-point deposit is transmitting,
the floating part will not be taking into account.
Possible cause of ‘Check-in’ reject, the check-in message will be refused by a ‘reply’ in case of:
Length
Field Value Comments
(bytes)
1 STX 1 '0x02' start of text
2 type 1 N Modification message
3 room extension 8 bbbbbbb0 to 99999999 room set extension
bbbbbbbbb no pre-payment
13 message 1 b 'no change'
waiting 1 message(s) waiting at the front desk
0 no message waiting at the front desk
14 wake-up time 4 00 00 to 23 59 wake-up time hour (2 char.) and minutes(2 char.)
bbbb 'no change'
15 wake-up action 1 b program wake-up or 'no change'
0 cancel wake-up
16 do not disturb 1 0 clear DND and forwarding
2 set room extension in DND
1 forward room extension to voice mail
b 'no change'
17 CRC 2 XOR fields 2 to 16 control characters
18 ETX 1 '0x03' end of text
Total length msg 63
Possible cause of ‘Modification’ reject, the modification message will be refused by a ‘reply’ in case
of:
- Invalid room extension number (out of range)
- Room not checked-in
- Invalid or unavailable guest password
- A PBX doesn’t answer response due to bad hostname, unreachable system,
wrong password or OmniPCX Office PCMan connection busy (PM5, MMC,
4760…).
6Dh is the result of XOR calculation on the following bytes: 44h(D), 20h(b), 33h, 39h, 35h, 36h.
0100 0100 XOR 0010 0000 = 0110 0100 (44h XOR 20h = 64h)
0110 0100 XOR 0011 0011 = 0101 0111 (64h XOR 33h = 57h)
0101 0111 XOR 0011 1001 = 0110 1110 (57h XOR 39h = 6Eh)
0110 1110 XOR 0011 0101 = 0101 1011 (6Eh XOR 35h = 5Bh)
0101 1011 XOR 0011 0110 = 0110 1101 (5Bh XOR 36h = 6Dh)
This result is then split into the 2 two ASCII characters 6 (36h) and D (44h).
2 ! ” # $ %& ´ ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < => ?
4 @A B C D E F GH I J K L MNO
5 P Q R S T U VWX Y Z [ \ ] ^_
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~
8
A ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ - ® ¯
B ° ± ² ³ ´ µ ¶ . ¸ ¹ º » ¼½¾ ¿
C À Á Â Ã Ä ÅÆ Ç È É Ê Ë Ì Í Î Ï
D ÐÑÒÓÔÕÖ×ØÙ Ú Û Ü Ý Þ ß
E à á â ã ä åæ ç è é ê ë ì í î ï
F ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
End Of Document