Actions

Difference between revisions of "Free Seating"

From Zenitel Wiki

(Error codes)
(Overview)
Line 1: Line 1:
 
= Overview =
 
= Overview =
The '''Free Seating''' system runs on standard AMC SW using the EventHandler and the AlphaPro WACS module for swapping two users.  
+
The '''Free Seating''' system runs on standard [[AMC]] SW using the [[Event Handler]] and the [[AlphaPro]] WACS module for swapping two users.  
This function needs to have [[AlphaPro]] running and connected to the [[AlphaCom]]. It’s not possible to use the function without communication with the PC. The communication module of AlphaPro takes care of the changes and updates the exchange(s).<br\>
+
This function needs to have [[AlphaPro]] running and connected to the AlphaCom. It’s not possible to use the function without communication with the PC. The communication module of [[AlphaPro]] takes care of the changes and updates the exchange(s).<br\>
The [[Event Handler]] is used to activate and send [[AlphaNet Data Protocol|data messages]] to AlphaPro.<br\>
+
The [[Event Handler]] is used to activate and send [[AlphaNet Data Protocol]] data messages]] to [[AlphaPro]].<br\>
 
A station with privilege to perform activation of free seating function must be used. A function code must be dialed and a mail will be sent to this station in order to inform about activation of free seating.  When this is done it will be possible to do the free seating command from any other station.<br\>
 
A station with privilege to perform activation of free seating function must be used. A function code must be dialed and a mail will be sent to this station in order to inform about activation of free seating.  When this is done it will be possible to do the free seating command from any other station.<br\>
 
When dialing another function code from the special station, the free seating function is disabled. The display text will then be removed/updated.<br\>
 
When dialing another function code from the special station, the free seating function is disabled. The display text will then be removed/updated.<br\>
The code from the privileged station activates the event handler to send out data protocol messages to AlphaCom when the command for free seating is used. The command for free seating and the directory number for the station to be moved, must be dialed from the new location. A data protocol message will be sent to AlphaPro, which does a move and change in own database and sends the changes to the AlphaCom. When the message is handled, a mail (display message) will be sent to the new location informing about transfer completed.<br\>
+
The code from the privileged station activates the event handler to send out data protocol messages to AlphaCom when the command for free seating is used. The command for free seating and the directory number for the station to be moved, must be dialled from the new location. A data protocol message will be sent to [[AlphaPro]], which does a move and change in own database and sends the changes to the AlphaCom. When the message is handled, a mail (display message) will be sent to the new location informing about transfer completed.<br\>
If AlphaPro is set up to communicate with AMC through TCP/IP, it can be useful to enable the [[Release_Notes_AlphaPro_10.xx#Automatic_reconnect:|Automatic reconnect]] function.
+
If AlphaPro is set up to communicate with [[AMC]] through TCP/IP, it can be useful to enable the [[Release_Notes_AlphaPro_10.xx#Automatic_reconnect:|Automatic reconnect]] function.
  
 
==What gets swapped==
 
==What gets swapped==
Line 15: Line 15:
  
 
==Limitations==
 
==Limitations==
* It is necessary to use unique directory numbers (global numbers) if Free Seating should be available over [[AlphaNet]]. If not uniqueness there can be directory number conflicts if an already used number is swapped from another node.
+
* It is necessary to use unique directory numbers (global numbers) if Free Seating should be available over [[AlphaNet]], else there can be directory number conflicts if an already used number is swapped from another node.
 
* Event handler script related to the station will not be swapped.
 
* Event handler script related to the station will not be swapped.
* If swapping between nodes, be aware that group membership for a station might not be meaningful after a swap. If a station is member of a group in one node, the corresponding group in the other node might not be in use.
+
* When swapping between nodes, be aware that group membership(s) for a station might not be meaningful after a swap. If a station is member of a group in one node, the corresponding group in the other node might not be in use.
* All use of physical number relations to swapped station in scripts/DAK will fail.
+
* All use of physical number relations to the swapped station in scripts/DAK will fail.
* DAK and general event handler scripts using directory number relations to the swapped user will work if unique directory numbers used.
+
* DAK and general event handler scripts using directory number relations to the swapped user will work if unique directory numbers are used.
 
* Event triggers to a swapped station will not work.
 
* Event triggers to a swapped station will not work.
* The swapped stations are not tested if they are default member of a conference. Therefore stations that are default member of conference should not be swapped.
+
* The swapped stations are not tested if they are default member of a conference. Therefore stations that are default member of a conference should not be swapped.
 
* It is not possible to execute two free seating operations simultaneously.
 
* It is not possible to execute two free seating operations simultaneously.
 
<br\>
 
<br\>

Revision as of 14:08, 19 November 2008

Overview

The Free Seating system runs on standard AMC SW using the Event Handler and the AlphaPro WACS module for swapping two users. This function needs to have AlphaPro running and connected to the AlphaCom. It’s not possible to use the function without communication with the PC. The communication module of AlphaPro takes care of the changes and updates the exchange(s).<br\> The Event Handler is used to activate and send AlphaNet Data Protocol data messages]] to AlphaPro.<br\> A station with privilege to perform activation of free seating function must be used. A function code must be dialed and a mail will be sent to this station in order to inform about activation of free seating. When this is done it will be possible to do the free seating command from any other station.<br\> When dialing another function code from the special station, the free seating function is disabled. The display text will then be removed/updated.<br\> The code from the privileged station activates the event handler to send out data protocol messages to AlphaCom when the command for free seating is used. The command for free seating and the directory number for the station to be moved, must be dialled from the new location. A data protocol message will be sent to AlphaPro, which does a move and change in own database and sends the changes to the AlphaCom. When the message is handled, a mail (display message) will be sent to the new location informing about transfer completed.<br\> If AlphaPro is set up to communicate with AMC through TCP/IP, it can be useful to enable the Automatic reconnect function.

What gets swapped

  • User and station
  • DAK keys
  • Search strings
  • Group membership

Limitations

  • It is necessary to use unique directory numbers (global numbers) if Free Seating should be available over AlphaNet, else there can be directory number conflicts if an already used number is swapped from another node.
  • Event handler script related to the station will not be swapped.
  • When swapping between nodes, be aware that group membership(s) for a station might not be meaningful after a swap. If a station is member of a group in one node, the corresponding group in the other node might not be in use.
  • All use of physical number relations to the swapped station in scripts/DAK will fail.
  • DAK and general event handler scripts using directory number relations to the swapped user will work if unique directory numbers are used.
  • Event triggers to a swapped station will not work.
  • The swapped stations are not tested if they are default member of a conference. Therefore stations that are default member of a conference should not be swapped.
  • It is not possible to execute two free seating operations simultaneously.

<br\>

AlphaPro Event programming

General

Two examples are described below. Use of toggle feature example is less programming, but not so flexible in synchronization of Free Seating enable/disable between nodes from one privileged station. In UserDefinedData example it is possible to let one privileged station in the system to enable/disable the Free Seating feature on several nodes.


Example 1: Use of Toggle Feature

Event Handling Programming Free Seating Swap

Dir. number 9535	Feature type 95
Code dialed from the user where the Free Seating should be activated. Parameter (%2.ref) is 
directory number for the user to swap with.
Event trigger type 25.

Event setting example:

Owner Type: “Station w.UDP”  id = “UDP group”
Event   Type “25 - Event Trigger w/User Parameter”
Sub-type = “0”
When Change To “On or OFF”
When Related To “All” Id = “   | 0”

Action string:

@01CB M0090 %1.ref %2.ref
 Send message type 90 to node 1 AlphaPro device  (CB/203 = AlphaPro device number)
with info about stations to be swapped.
$DISCON_ST %1.ref 0 Disconnect station without tone

Privileged Station Settings

Use Directory number 7873 (Feature/id 37/0) on privileged station to Enable/Disable Free Seating on node:

Program a DAK key with DAK string I 7873 I 9535

Example 2: Use of UserDefinedData

Index 1 is used for free seating, active = 1, not active = 0

Event Handling Programming Activate Free Seating

Dir. number 7941 Feature 52

Dialing code from privileged station will activate free seating.

Send display text to privileged station.

Script programmed only for privileged station.

Set UserDefinedData 1 = 1.

Feature 52 Dir. number 7941 Event trigger type 15

Event setting example:

Owner Type: “Station id”  id = “1”
Event   Type “15 Event Trigger Feature”
Sub-type = “0”
When Change To “On or OFF”
When Related To “Directory Number” Id = “0  | 7941”

Action string:

wudd 1 1
$DSPL %1.ref  U18  0312  ' Free Se Enabled '
@0241 $DD 4302080001 L7941

Also enable free seating in node 2(superuser on station 1).

Event Handling Programming Deactivate Free Seating

Dir. number 7942 Feature 52

Dialing code from privileged station will deactivate free seating. Set UserDefinedData 1 = 0. Send display text to privileged station Script programmed only for privileged station. Event trigger type 15

Event setting example:

Owner Type: “Station id”  id = “1”
Event   Type “15 Event Trigger Feature”
Sub-type = “0”
When Change To “On or OFF”
When Related To “Directory Number” Id = “0  | 7942”

Action string:

wudd 1 0
$DSPL %1.ref  U18  0312  'Free Se Disabled’
@0241 $DD 4302080001 L7942    

Also enable free seating in node 2 (superuser on station 1).

Event Handling Programming Free Seating Swap

Dir. number 7943 Feature type 95

Code dialed from the user where the Free Seating should be activated. Parameter (%2.ref) is directory number for the user to swap with.

Event trigger type 25.

Event setting example:

Owner Type: “Station w.UDP”  id = “UDP group”
Event   Type “25 Future use”
Sub-type = “0”
When Change To “On or OFF”
When Related To “All” Id = “   | 0”

Action string:

IF %OP(%udd(1),=,1)
@01CB M0090 %1.ref %2.ref
 Send message type 90 to node 1 AlphaPro device  (CB/203 = AlphaPro device number)
with info about stations to be swapped.
$DISCON_ST %1.ref 0 STOP ENDIF $DSPL %1.ref U18 0312 ‘Free Se Disabled' Error message if Free Seating not active

Display messages

The user gets information from the display when the free seating feature is started. If the swap is valid, the user will see “Please wait x” in the display of both stations. When the swap is completed the displays will show “Swap completed x”.

Error codes

If the user feeds the feature with an invalid directory number, there will be shown an “Invalid number/xxx” message, followed with an error code.

0     => Exchange file error
1     => Exchange file error
2     => Exchange file error
3     => NA => is correct !
4     => Directory number are not a station.
5     => User/Station file error
6     => User/Station file error
7     => User/Station file error
8     => User/Station file error
9     => Directory number 1 is not a global member in a remote node
10    => Directory number 2 is not a global member in a local node
11    => Exchange file error
12    => Can't swap same Directory number
13    => Directory number 1 defined with wrong feature.
14    => Directory number 2 defined with wrong feature.
15    => Error in file
16    => Directory number 1 is defined as local (Feature 9) in several nodes
17    => Directory number 2 is defined as local (Feature 9) in several nodes
18    => Directory number 1 and 2 is not defined as local (Feature 9) in several nodes
19    => Directory number 1 is not defined as local (Feature 9) in several nodes
20    => Directory number 2 is not defined as local (Feature 9) in several nodes

If AlphaPro and the communication module (WACS) is not running the user will not receive any display messages.