Timeout of conversation (Event Handler): Difference between revisions
From Zenitel Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{AI}} | {{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. | |||
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: | In [[AlphaPro]], go to [[Exchange_%26_System_%28AlphaPro%29#Events|Exchange and System -> Events]], press Insert and create the following events: | ||
------------ | ------------ | ||
'''Event 1''' | '''Event 1''': Start/stop the timer: | ||
[[File: | [[File:ICX Conv Timeout.JPG|thumb|left|700px|Start the timer when call starts (180 sec), and stop the timer when call ends]] | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
| Line 15: | Line 15: | ||
------------ | ------------ | ||
'''Event 2''' | '''Event 2''': Cancel the call at timeout: | ||
[[File: | [[File:ICX Conv Timeout2.JPG|thumb|left|700px|Cancel the call when timeout]] | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
| Line 23: | Line 23: | ||
}} | }} | ||
If you want to add a the reason for call termination in the system log, you can add the LOG statement: | |||
[[File: | [[File:ICX Conv Timeout3.JPG|thumb|left|500px|Log that the call has been terminated due to timeout]] | ||
<br style="clear:both;" /> | <br style="clear:both;" /> | ||
{{Code2| | {{Code2| | ||
[[ | [[C KEY|$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. | 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. | ||
Revision as of 14:26, 13 October 2025
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:
Action commands:
$ST L%1.dir w%chg(1800,0) L%2.dir
Event 2: Cancel the call at 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:
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.
