Actions

Timeout of conversation (Event Handler): Difference between revisions

From Zenitel Wiki

No edit summary
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Using the $ST (Set_Timer) message.
{{AI}}
Calls can be automatically terminated after a preset time. In general there is a global [[Exchange_%26_System_(AlphaPro)#Calls_and_Options|Conversation Timeout]], which is applicable to all calls in the system.  


Timeout of incoming calls to one specific station:
If there is a need to have individual call timeout for one (or a few) specific stations, one can use the Event Handler to start an individual timer using the [[SET TIMER|$ST (Set_Timer)]] command, and cancel the call at timeout.


In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events:
------------
'''Event 1''': Start/stop the timer:
[[File:ICX Conv Timeout4.JPG|thumb|left|700px|Start the timer when call starts (180 sec), and stop the timer when call ends]]
<br style="clear:both;" />


'''Start the timer on incoming call (180 sec):'''
{{Code2|
{|  
[[SET TIMER|$ST]] L%1.dir w%chg(1800,0) L%2.dir
|-
}}
|width="100pt"|Event Owner:
|width="100pt"|The station
|-
|Event type: || 07 - Conversation Incoming
|-
|When change to: || ON
|-
|When related to: || All
|-
|Action: || $ST L%1.dir W%2.tag Q10
|-
|}
<br\><br\>
'''Cancel conversation when timeout:'''


{|
------------
|-
'''Event 2''': Cancel the call at timeout:
|width="100pt"|Event Owner:
[[File:ICX Conv Timeout2.JPG|thumb|left|701px|Cancel the call when timeout]]
|width="100pt"|The station
<br style="clear:both;" />
|-
|Event type: || 21 - Event timeout
|-
|When change to: || ON
|-
|When related to: || All
|-
|Action: || $C L%1.dir
|-
|}
<br\><br\>
'''Stop the timer if the conversation cancels before timeout period has expired:'''
<br\><br\>
{|
|-
|width="100pt"|Event Owner:
|width="100pt"|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:
{{Code2|
[[C KEY|$C]] L%1.dir
}}


'''Start the timer (180 sec):'''
<br\><br\>
{|
|-
|width="100pt"|Event Owner:
|width="100pt"|The station
|-
|Event type: || 08 - Conversation Outgoing
|-
|When change to: || ON
|-
|When related to: || All
|-
|Action: || $ST L%1.dir w1800 L%2.dir
|-
|}


'''Stop the timer if the conversation cancels before timeout period has expired:'''
If you want to add a the reason for call termination in the system log, you can add the LOG statement:
[[File:ICX Conv Timeout3.JPG|thumb|left|700px|Log that the call has been terminated due to timeout]]
<br style="clear:both;" />


{|  
{{Code2|
|-
[[C KEY|$C]] L%1.dir
|width="100pt"|Event Owner:
LOG "Cancelled due to Timeout at %1.dir %1.nam"  
|width="100pt"|The station
}}
|-
|Event type: || 08 - Conversation Outgoing
------------
|-
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.
|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 is to assign the stations concerned to an [[UDP group]], and then set the UDP group as Event Owner instead of the 'The station' in the above events.
 
[[Category:Applications]]
 
[[Category:AlphaCom Applications]]
[[Category: ICX-AlphaCom Applications]]
[[Category:Applications using Event Handler]]

Latest revision as of 10:14, 14 October 2025

AI.png

Calls can be automatically terminated after a preset time. In general there is a global Conversation Timeout, which is applicable to all calls in the system.

If there is a need to have individual call timeout for one (or a few) specific stations, one can use the Event Handler to start an individual timer using the $ST (Set_Timer) command, and cancel the call at timeout.

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


Event 1: Start/stop the timer:

Start the timer when call starts (180 sec), and stop the timer when call ends


Action commands:

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



Event 2: Cancel the call at timeout:

Cancel the call when timeout


Action commands:

$C L%1.dir



If you want to add a the reason for call termination in the system log, you can add the LOG statement:

Log that the call has been terminated due to timeout


Action commands:

$C L%1.dir
LOG "Cancelled due to Timeout at %1.dir %1.nam" 



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.

MediaWiki spam blocked by CleanTalk.