Call Request Transfer roll up Queue
From Zenitel Wiki
When placing a Master Station in Call Request Transfer, it may be required to roll up any waiting Call Requests to the next operator. This article provides a method to achieve this.
Operation
The solution involves triggering the New Current Mail event to copy this mail to the next operator. When the operator presses a DAK Key to place their Master Station in Call Request Transfer, the event sets the CRT, starts a timer and triggers the New Current Mail event by selecting the current mail. The New Current Mail event will copy the mail to the next operator and then delete the mail from the queue, thereby triggering New Current Mail again. This will occur until there are no more mails in the queue, and the timer expires.
Pre-requisites
A UDD attached to each Master Station is required. You may re-address as required
Events
Event 30 - Station input or DAK Key
$SCRT L%1.DIR L102 !Set Call Request Transfer from current station to next station $ST L%1.DIR W100 L9999 !Start a timer. WUDD %1.PHY 1 !Set a flag to say that call rollup is in progress $MAILQ_NAVIG L%1.DIR U1
!Choose the current mail
Event 23 - New Current Mail
IF %udd(%1.PHY) !If rollup is in progress $CPYM L%1.DIR W%2.TAG L102 !Copy the mail to the next station $DELM L%1.DIR W%2.TAG !Delete the mail from the current station, thereby re-triggering this same event ENDIF
Event 21 - Event Timeout
WUDD %1.PHY 0 !Set the flag to off so that future New Current Mails will not trigger the roll-up.
