Actions

Difference between revisions of "Timeout of conversation (Event Handler)"

From Zenitel Wiki

Line 1: Line 1:
Using the $ST (Set_Timer) message.
+
Using the [[SET TIMER|$ST (Set_Timer)]] message.
  
 
Timeout of incoming calls to one specific station:
 
Timeout of incoming calls to one specific station:
  
 
+
In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events:
'''Start the timer on incoming call (180 sec):'''
+
------------
 +
'''Event 1''' - Start the timer on incoming call (180 sec).
 
{|  
 
{|  
 
|-
 
|-
|width="100pt"|Event Owner:
+
|width="100pt"|'''Event Owner''':
|width="100pt"|The station
+
|width="400pt"|The station
 
|-
 
|-
|Event type: || 07 - Conversation Incoming
+
|'''Event type''': || [[Conversation Incoming (Event Type)|07 - Conversation Incoming]]
 
|-
 
|-
|When change to: || ON
+
|'''When change to''': || ON
 
|-
 
|-
|When related to: || All
+
|'''When related to''': || All
 
|-
 
|-
|Action: || $ST L%1.dir W%2.tag Q10
+
|'''Action''': || [[SET TIMER|$ST]] L%1.dir W%2.tag Q10
 
|-
 
|-
 
|}
 
|}
<br\><br\>
 
'''Cancel conversation when timeout:'''
 
  
 +
------------
 +
'''Event 2''' - Cancel conversation when timeout.
 
{|  
 
{|  
 
|-
 
|-
|width="100pt"|Event Owner:
+
|width="100pt"|'''Event Owner''':
|width="100pt"|The station
+
|width="400pt"|The station
 
|-
 
|-
|Event type: || 21 - Event timeout
+
|'''Event type''': || [[Event Timeout (Event Type)|21 - Event timeout]]
 
|-
 
|-
|When change to: || ON
+
|'''When change to''': || ON
 
|-
 
|-
|When related to: || All
+
|'''When related to''': || All
 
|-
 
|-
|Action: || $C L%1.dir
+
|'''Action''': || [[C KEY|$C]] L%1.dir
 
|-
 
|-
 
|}
 
|}
<br\><br\>
+
 
'''Stop the timer if the conversation cancels before timeout period has expired:'''
+
------------
<br\><br\>
+
'''Event 3''' - Stop the timer if the conversation cancels before timeout period has expired.
 
{|  
 
{|  
 
|-
 
|-
|width="100pt"|Event Owner:
+
|width="100pt"|'''Event Owner''':
|width="100pt"|The station
+
|width="400pt"|The station
 
|-
 
|-
|Event type: || 07 - Conversation Incoming
+
|'''Event type''': || [[Conversation Incoming (Event Type)|07 - Conversation Incoming]]
 
|-
 
|-
|When change to: || ON
+
|'''When change to''': || ON
 
|-
 
|-
|When related to: || All
+
|'''When related to''': || All
 
|-
 
|-
|Action: || $ST L%1.dir w0 L%2.dir
+
|'''Action''': || [[SET TIMER|$ST]] L%1.dir w0 L%2.dir
 
|-
 
|-
 
|}
 
|}
  
 +
------------
 
If the conversation timeout should apply for outgoing calls as well, add the following events:
 
If the conversation timeout should apply for outgoing calls as well, add the following events:
  
'''Start the timer (180 sec):'''
+
'''Event 4''' - Start the timer (180 sec).
<br\><br\>
 
 
{|  
 
{|  
 
|-
 
|-
 
|width="100pt"|Event Owner:
 
|width="100pt"|Event Owner:
|width="100pt"|The station
+
|width="400pt"|The station
 
|-
 
|-
|Event type: || 08 - Conversation Outgoing
+
|Event type: || [[Conversation Outgoing (Event Type)|08 - Conversation Outgoing]]
 
|-
 
|-
 
|When change to: || ON
 
|When change to: || ON
Line 69: Line 70:
 
|When related to: || All
 
|When related to: || All
 
|-
 
|-
|Action: || $ST L%1.dir w1800 L%2.dir
+
|Action: || [[SET TIMER|$ST]] L%1.dir w1800 L%2.dir
 
|-
 
|-
 
|}
 
|}
  
'''Stop the timer if the conversation cancels before timeout period has expired:'''
+
------------
 
+
'''Event 5''' - Stop the timer if the conversation cancels before timeout period has expired.
 
{|  
 
{|  
 
|-
 
|-
|width="100pt"|Event Owner:
+
|width="100pt"|'''Event Owner''':
|width="100pt"|The station
+
|width="400pt"|The station
 
|-
 
|-
|Event type: || 08 - Conversation Outgoing
+
|'''Event type''': || [[Conversation Outgoing (Event Type)|08 - Conversation Outgoing]]
 
|-
 
|-
|When change to: || ON
+
|'''When change to''': || ON
 
|-
 
|-
|When related to: || All
+
|'''When related to''': || All
 
|-
 
|-
|Action: || $ST L%1.dir w0 L%2.dir
+
|'''Action''': || [[SET TIMER|$ST]] L%1.dir w0 L%2.dir
 
|-
 
|-
 
|}
 
|}
  
If the timeout should apply to a number of stations the easiest is to assign the stations concerned to a [[UDP group]], and then set the UDP group as Event Owner instead of the 'The station' in the above events.
+
------------
 +
If the timeout should apply to a number of stations the easiest way is to assign the stations concerned to a [[UDP group]], and then set the [[UDP group]] as Event Owner instead of the 'The station' in the above events.
 +
 
 +
 
 
[[Category:Applications]]
 
[[Category:Applications]]

Revision as of 12:53, 19 November 2008

Using the $ST (Set_Timer) message.

Timeout of incoming calls to one specific station:

In AlphaPro, go to Exchange and System -> Events, press Insert and create the following events:


Event 1 - Start the timer on incoming call (180 sec).

Event Owner: The station
Event type: 07 - Conversation Incoming
When change to: ON
When related to: All
Action: $ST L%1.dir W%2.tag Q10

Event 2 - Cancel conversation when timeout.

Event Owner: The station
Event type: 21 - Event timeout
When change to: ON
When related to: All
Action: $C L%1.dir

Event 3 - Stop the timer if the conversation cancels before timeout period has expired.

Event Owner: The station
Event type: 07 - Conversation Incoming
When change to: ON
When related to: All
Action: $ST L%1.dir w0 L%2.dir

If the conversation timeout should apply for outgoing calls as well, add the following events:

Event 4 - Start the timer (180 sec).

Event Owner: The station
Event type: 08 - Conversation Outgoing
When change to: ON
When related to: All
Action: $ST L%1.dir w1800 L%2.dir

Event 5 - Stop the timer if the conversation cancels before timeout period has expired.

Event Owner: The station
Event type: 08 - Conversation Outgoing
When change to: ON
When related to: All
Action: $ST L%1.dir w0 L%2.dir

If the timeout should apply to a number of stations the easiest way is to assign the stations concerned to a UDP group, and then set the UDP group as Event Owner instead of the 'The station' in the above events.