Actions

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

From Zenitel Wiki

 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{A}}
+
{{AI}}
 
Using the [[SET TIMER|$ST (Set_Timer)]] message.
 
Using the [[SET TIMER|$ST (Set_Timer)]] message.
  
Line 6: Line 6:
 
In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events:
 
In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events:
 
------------
 
------------
'''Event 1''' - Start the timer on incoming call (180 sec).
+
'''Event 1'''  
{|
+
[[File:Application23A.png|thumb|left|500px|Start the timer on incoming call (180 sec)]]
|-
+
<br style="clear:both;" />
|width="150pt"|'''Event Owner''':
+
 
|width="400pt"|The station
+
{{Code2|
|-
+
[[SET TIMER|$ST]] L%1.dir w%chg(1800,0) L%2.dir
|'''Event type''': || [[Conversation Incoming (Event Type)|07 - Conversation Incoming]]
+
}}
|-
 
|'''When change to''': || ON
 
|-
 
|'''When related to''': || All
 
|-
 
|'''Action''': || [[SET TIMER|$ST]] L%1.dir w1800 L%2.dir
 
|-
 
|}
 
  
 
------------
 
------------
'''Event 2''' - Cancel conversation when timeout.
+
'''Event 2'''
{|
+
[[File:Application23A.png|thumb|left|500px|Cancel conversation when timeout]]
|-
+
<br style="clear:both;" />
|width="150pt"|'''Event Owner''':
 
|width="400pt"|The station
 
|-
 
|'''Event type''': || [[Event Timeout (Event Type)|21 - Event timeout]]
 
|-
 
|'''When change to''': || ON
 
|-
 
|'''When related to''': || All
 
|-
 
|'''Action''': || [[C KEY|$C]] L%1.dir
 
|-
 
|}
 
  
------------
+
{{Code2|
'''Event 3''' - Stop the timer if the conversation cancels before timeout period has expired.
+
[[C KEY|$C]] L%1.dir
{|  
+
}}
|-
 
|width="150pt"|'''Event Owner''':
 
|width="400pt"|The station
 
|-
 
|'''Event type''': || [[Conversation Incoming (Event Type)|07 - Conversation Incoming]]
 
|-
 
|'''When change to''': || OFF
 
|-
 
|'''When related to''': || All
 
|-
 
|'''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:
  
'''Event 4''' - Start the timer (180 sec).
+
'''Event 3'''
{|
+
[[File:Application23A.png|thumb|left|500px|Start the timer (180 sec)]]
|-
+
<br style="clear:both;" />
|width="150pt"|Event Owner:
 
|width="400pt"|The station
 
|-
 
|Event type: || [[Conversation Outgoing (Event Type)|08 - Conversation Outgoing]]
 
|-
 
|When change to: || ON
 
|-
 
|When related to: || All
 
|-
 
|Action: || [[SET TIMER|$ST]] L%1.dir w1800 L%2.dir
 
|-
 
|}
 
  
------------
+
{{Code2|
'''Event 5''' - Stop the timer if the conversation cancels before timeout period has expired.
+
[[SET TIMER|$ST]] L%1.dir w%chg(1800,0) L%2.dir
{|  
+
}}
|-
 
|width="150pt"|'''Event Owner''':
 
|width="400pt"|The station
 
|-
 
|'''Event type''': || [[Conversation Outgoing (Event Type)|08 - Conversation Outgoing]]
 
|-
 
|'''When change to''': || OFF
 
|-
 
|'''When related to''': || All
 
|-
 
|'''Action''': || [[SET TIMER|$ST]] L%1.dir w0 L%2.dir
 
|-
 
|}
 
  
 
------------
 
------------
Line 96: Line 38:
  
  
[[Category:Applications]]
+
 
 +
[[Category:AlphaCom Applications]]
 +
[[Category: ICX-AlphaCom Applications]]
 +
[[Category:Applications using Event Handler]]

Latest revision as of 10:32, 8 July 2022

AI.png

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)


Action commands:

$ST L%1.dir w%chg(1800,0) L%2.dir



Event 2

Cancel conversation when timeout


Action commands:

$C L%1.dir



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

Event 3

Start the timer (180 sec)


Action commands:

$ST L%1.dir w%chg(1800,0) 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.