Actions

Difference between revisions of "Toggle Applications"

From Zenitel Wiki

(Call Request)
(Volume adjustment)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{A}}
+
{{AI}}
 
This article describes different applications where the common scenario is to toggle a feature on/off using just a DAK key (or station input). Some features have options that gives additional opportunities.
 
This article describes different applications where the common scenario is to toggle a feature on/off using just a DAK key (or station input). Some features have options that gives additional opportunities.
  
In the examples below the AlphaCom data commands used are hyperlinked. Common for many of them is:
+
The [[Station Input or Station DAK key (Event Type)|Station Input or Station DAK key]] event is the preferred event for most of the applications.
: [[$WUDD]]
 
:
 
  
The [[Station DAK key as RCI (Event Type)|DAK as RCI]] event is the preferred event for most of the applications.
+
==Conversation==
  
==Conversation==
+
{{note|As from AlphaCom v. 13 a call can be toggled on/off from a DAK key by setting the flag [[Users_%26_Stations_(AlphaPro)#Station_Type_tab|Idle DAK during conv. cancel ongoing call]]. No need to program any events}}
Toggle between Call and Cancel: pressing DAK key 1 sets up a call to station 101. Second press cancels the call. A second event must be created to handle the scenario where 101 initiates the call , or ends the call.
+
 
 +
Toggle between '''Call''' and '''Cancel''': pressing DAK key 1 sets up a call to station 101. Second press cancels the call. A second event must be created to handle the scenario where 101 initiates the call , or ends the call.
  
 
[[File:Toggle Applications 1.PNG|thumb|left|500px|First DAK key press: Call. <br> Second press: Cancel]]
 
[[File:Toggle Applications 1.PNG|thumb|left|500px|First DAK key press: Call. <br> Second press: Cancel]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $C L%1.dir
 
  $C L%1.dir
Line 22: Line 21:
 
  $CALL L%1.dir L101
 
  $CALL L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
[[File:Toggle Applications 8.PNG|thumb|left|500px|Adjust UDD if call initiated or ended from the other station]]
 
[[File:Toggle Applications 8.PNG|thumb|left|500px|Adjust UDD if call initiated or ended from the other station]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action command:
+
{{Code2|
 
  WUDD %1.phy %chg(1,0)
 
  WUDD %1.phy %chg(1,0)
 +
}}
  
The same DAK can also answer an incoming call in private mode. Then the following event must be added:
+
The same DAK can also answer an '''incoming call in private mode'''. Then the following event must be added:
  
 
[[File:Toggle Applications 9.PNG|thumb|left|500px|Adjust UDD if call initiated or ended from the other station]]
 
[[File:Toggle Applications 9.PNG|thumb|left|500px|Adjust UDD if call initiated or ended from the other station]]
Line 35: Line 36:
  
 
Add some commands to the top of the initial DAK as RCI event, making it look like this:
 
Add some commands to the top of the initial DAK as RCI event, making it look like this:
  IF %op(%udd(%1.phy),=,2)
+
{{Code2|
 +
  IF %op(%udd(%1.phy),<nowiki>=</nowiki>,2)
 
  $M L%1.dir
 
  $M L%1.dir
 
  pause
 
  pause
Line 49: Line 51:
 
  $CALL L%1.dir L101
 
  $CALL L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
For more details see [[$CALL]], [[$C]], [[$M]], [[$MREL]] and [[PAUSE|pause]]
 
For more details see [[$CALL]], [[$C]], [[$M]], [[$MREL]] and [[PAUSE|pause]]
  
 
==Call Request==
 
==Call Request==
Toggle between Call Request and Cancel Call Request: Pressing the DAK key the first time sends a Call Request to station 101 in the example. Second press cancels the call request. A second event must be created to handle the scenario where 101 answers the call request, or cancels it.
+
Toggle between '''Call Request''' and '''Cancel Call Request''': Pressing the DAK key the first time sends a Call Request to station 101 in the example. Second press cancels the call request. A second event must be created to handle the scenario where 101 answers the call request, or cancels it.
  
 
[[File:Toggle Applications 2.PNG|thumb|left|500px|First press: Make a Call Request to 101 <br> Second press: Cancel the Call Request]]
 
[[File:Toggle Applications 2.PNG|thumb|left|500px|First press: Make a Call Request to 101 <br> Second press: Cancel the Call Request]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $CANM L%1.dir L101
 
  $CANM L%1.dir L101
Line 66: Line 69:
 
  $SM L%1.dir L101
 
  $SM L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
[[File:Toggle CR 2.PNG|thumb|left|500px|Reset UDD when station is no longer in Call Request mode (i.e. the Call Request is for any reason removed)]]
 
[[File:Toggle CR 2.PNG|thumb|left|500px|Reset UDD when station is no longer in Call Request mode (i.e. the Call Request is for any reason removed)]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
  WUDD %1.phy 0
+
  WUDD %2.phy 0
 +
}}
  
 
To add the possibility to answer incoming calls in private using the same DAK, see the [[Toggle_Applications#Conversation|Conversation]] application example.
 
To add the possibility to answer incoming calls in private using the same DAK, see the [[Toggle_Applications#Conversation|Conversation]] application example.
Line 78: Line 83:
  
 
==Audio Program==
 
==Audio Program==
Toggle between program on and program off. The example shows program 1 (801).
+
Toggle between '''Program ON''' and '''Program OFF'''. The example shows program 1 (801).
  
 
[[File:Toggle Applications 3.PNG|thumb|left|500px|First press: make the station listen to program 1 (801) <br> Second press: Turn listening to program off]]
 
[[File:Toggle Applications 3.PNG|thumb|left|500px|First press: make the station listen to program 1 (801) <br> Second press: Turn listening to program off]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $PROG L%1.dir LV
 
  $PROG L%1.dir LV
Line 91: Line 96:
 
  $PROG L%1.dir L801
 
  $PROG L%1.dir L801
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
Stepping through several programs can be performed by using the step codes 790 and 791 configured in the DAK settings:
 
Stepping through several programs can be performed by using the step codes 790 and 791 configured in the DAK settings:
Line 102: Line 108:
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
  IF %op(%sev,=,4)
+
  IF %op(%sev,<nowiki>=</nowiki>,4)
 
  $DD L%1.dir L790
 
  $DD L%1.dir L790
 
  ENDIF
 
  ENDIF
  IF %op(%sev,=,5)
+
  IF %op(%sev,<nowiki>=</nowiki>,5)
 
  $DD L%1.dir L791
 
  $DD L%1.dir L791
 
  ENDIF
 
  ENDIF
 +
}}
  
 
For more details see [[$PROG]] and [[Audio Program]]
 
For more details see [[$PROG]] and [[Audio Program]]
  
 
==Transfer==
 
==Transfer==
Toggle between Transfer on and Transfer off. The example shows transferring calls to directory number 101.
+
Toggle between '''Transfer ON''' and '''Transfer OFF'''. The example shows transferring calls to directory number 101.
  
 
[[File:Toggle Applications 4.PNG|thumb|left|500px|First press: Activate call transfer to 101 <br> Second press: Deactivate transfer]]
 
[[File:Toggle Applications 4.PNG|thumb|left|500px|First press: Activate call transfer to 101 <br> Second press: Deactivate transfer]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $TRF L%1.dir ""
 
  $TRF L%1.dir ""
Line 126: Line 133:
 
  $TRF L%1.dir L101
 
  $TRF L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
Toggle between Call Request Transfer on and Call Request transfer off. The example shows transferring Call Requests to directory number 101.
+
Toggle between '''Call Request Transfer ON''' and '''Call Request transfer OFF'''. The example shows transferring Call Requests to directory number 101.
  
 
[[File:Toggle Applications 13.PNG|thumb|left|500px|First press: Activate Call Request transfer to 101 <br> Second press: Deactivate Call Request transfer]]
 
[[File:Toggle Applications 13.PNG|thumb|left|500px|First press: Activate Call Request transfer to 101 <br> Second press: Deactivate Call Request transfer]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $SCRT L%1.dir
 
  $SCRT L%1.dir
Line 140: Line 148:
 
  $SCRT L%1.dir L101
 
  $SCRT L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
'''Option:''' If using a station with LED indications on the DAK keys (i.e. CRM-V or ECPIR-3P) the LED can be switched on and off to show status of the transfer. Change the action commands for the transfer event like this: (example shows red LED)
 
'''Option:''' If using a station with LED indications on the DAK keys (i.e. CRM-V or ECPIR-3P) the LED can be switched on and off to show status of the transfer. Change the action commands for the transfer event like this: (example shows red LED)
 +
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $TRF L%1.dir ""
 
  $TRF L%1.dir ""
 
  WUDD %1.phy 0
 
  WUDD %1.phy 0
  ''IND %1.phy %1.dir(i%2.dir) 1 1 OFF''
+
  '''IND %1.phy %1.dir(i%2.dir) 1 1 OFF'''
 
  STOP
 
  STOP
 
  ENDIF
 
  ENDIF
 
  $TRF L%1.dir L101
 
  $TRF L%1.dir L101
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
  ''IND %1.phy %1.dir(i%2.dir) 1 1 ON''
+
  '''IND %1.phy %1.dir(i%2.dir) 1 1 ON'''
 +
}}
  
 
For more details see [[$TRF]], [[$SCRT]] and [[IND]]
 
For more details see [[$TRF]], [[$SCRT]] and [[IND]]
  
 
==Simplex Conference==
 
==Simplex Conference==
Toggle between joining a simplex conference (SX), and leaving it. The example shows joining/leaving SX1 (8201).
+
Toggle between '''joining''' a '''simplex conference (SX)''', and '''leaving''' it. The example shows joining/leaving SX1 (8201).
  
 
[[File:Toggle Applications 5.PNG|thumb|left|500px|First press: Join Simplex Conference 1 (8201) <br> Second press: Leave the Simplex Conference]]
 
[[File:Toggle Applications 5.PNG|thumb|left|500px|First press: Join Simplex Conference 1 (8201) <br> Second press: Leave the Simplex Conference]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
 
  IF %udd(%1.phy)
 
  IF %udd(%1.phy)
 
  $CONF L%1.dir LV
 
  $CONF L%1.dir LV
Line 168: Line 179:
 
  $CONF L%1.dir L8201
 
  $CONF L%1.dir L8201
 
  WUDD %1.phy 1
 
  WUDD %1.phy 1
 +
}}
  
 
For more details see [[$CONF]]
 
For more details see [[$CONF]]
  
 
==Open Duplex Conference==
 
==Open Duplex Conference==
Toggle between joining a open duplex conference (ODC), and leaving it. The example shows joining/leaving ODC1 (8301).
+
Toggle between '''joining''' a '''open duplex conference (ODC)''', and '''leaving''' it. The example shows joining/leaving ODC1 (8301).
  
 
[[File:Toggle Applications 6.PNG|thumb|left|500px|The $ODC command as an inbuilt toggle function, joining or leaving the conference depending on current status]]
 
[[File:Toggle Applications 6.PNG|thumb|left|500px|The $ODC command as an inbuilt toggle function, joining or leaving the conference depending on current status]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action command:
+
{{Code2|
 
  $ODC L%1.dir L8301 U2
 
  $ODC L%1.dir L8301 U2
 +
}}
  
 
For more details see [[$ODC]]
 
For more details see [[$ODC]]
Line 188: Line 201:
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
  IF %op(%vol(%1.phy),=,9)
+
  IF %op(%vol(%1.phy),<nowiki>=</nowiki>,9)
 
  $VOL L%1.dir U0
 
  $VOL L%1.dir U0
 
  STOP
 
  STOP
 
  ENDIF
 
  ENDIF
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,1)
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,1)
 +
}}
  
 
Alternatively the volume stepping can be in double rate, incrementing the volume by two for each button press:
 
Alternatively the volume stepping can be in double rate, incrementing the volume by two for each button press:
  
Action commands:
+
{{Code2|
  IF %op(%vol(%1.phy),=,9)
+
  IF %op(%vol(%1.phy),<nowiki>=</nowiki>,9)
 
  $VOL L%1.dir U1
 
  $VOL L%1.dir U1
 
  STOP
 
  STOP
 
  ENDIF
 
  ENDIF
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,2)
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,2)
 +
}}
  
 
Using a station with two buttons (or two inputs) assigning one for volume up, and one for volume down:
 
Using a station with two buttons (or two inputs) assigning one for volume up, and one for volume down:
Line 209: Line 224:
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
  IF %op(%vol(%1.phy),=,9)
+
  IF %op(%vol(%1.phy),<nowiki>=</nowiki>,9)
 
  STOP
 
  STOP
 
  ENDIF
 
  ENDIF
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,1)
 
  $VOL L%1.dir U%op(%vol(%1.phy),+,1)
 +
}}
  
 
[[File:Toggle Applications 15.PNG|thumb|left|500px|Adjusting volume down when pressing DAK5 (input5)]]
 
[[File:Toggle Applications 15.PNG|thumb|left|500px|Adjusting volume down when pressing DAK5 (input5)]]
 
<br style="clear:both;" />
 
<br style="clear:both;" />
  
Action commands:
+
{{Code2|
  IF %op(%vol(%1.phy),=,0)
+
  IF %op(%vol(%1.phy),<nowiki>=</nowiki>,0)
 
  STOP
 
  STOP
 
  ENDIF
 
  ENDIF
 
  $VOL L%1.dir U%op(%vol(%1.phy),-,1)
 
  $VOL L%1.dir U%op(%vol(%1.phy),-,1)
 +
}}
 +
 +
For more details see [[VOLUME|VOL]]
  
For more details see [[VOL]]
 
  
[[Category:Applications]]
+
[[Category:AlphaCom Applications]]
 +
[[Category: ICX-AlphaCom Applications]]

Latest revision as of 15:16, 31 May 2022

AI.png

This article describes different applications where the common scenario is to toggle a feature on/off using just a DAK key (or station input). Some features have options that gives additional opportunities.

The Station Input or Station DAK key event is the preferred event for most of the applications.

Conversation

Note icon As from AlphaCom v. 13 a call can be toggled on/off from a DAK key by setting the flag Idle DAK during conv. cancel ongoing call. No need to program any events


Toggle between Call and Cancel: pressing DAK key 1 sets up a call to station 101. Second press cancels the call. A second event must be created to handle the scenario where 101 initiates the call , or ends the call.

First DAK key press: Call.
Second press: Cancel


Action commands:

IF %udd(%1.phy)
$C L%1.dir
WUDD %1.phy 0
STOP
ENDIF
$CALL L%1.dir L101
WUDD %1.phy 1


Adjust UDD if call initiated or ended from the other station


Action commands:

WUDD %1.phy %chg(1,0)


The same DAK can also answer an incoming call in private mode. Then the following event must be added:

Adjust UDD if call initiated or ended from the other station


Add some commands to the top of the initial DAK as RCI event, making it look like this: Action commands:

IF %op(%udd(%1.phy),=,2)
$M L%1.dir
pause
$MREL L%1.dir
WUDD %1.phy 1
STOP
ENDIF
IF %udd(%1.phy)
$C L%1.dir
WUDD %1.phy 0
STOP
ENDIF
$CALL L%1.dir L101
WUDD %1.phy 1


For more details see $CALL, $C, $M, $MREL and pause

Call Request

Toggle between Call Request and Cancel Call Request: Pressing the DAK key the first time sends a Call Request to station 101 in the example. Second press cancels the call request. A second event must be created to handle the scenario where 101 answers the call request, or cancels it.

First press: Make a Call Request to 101
Second press: Cancel the Call Request


Action commands:

IF %udd(%1.phy)
$CANM L%1.dir L101
WUDD %1.phy 0
STOP
ENDIF
$SM L%1.dir L101
WUDD %1.phy 1


Reset UDD when station is no longer in Call Request mode (i.e. the Call Request is for any reason removed)


Action commands:

WUDD %2.phy 0


To add the possibility to answer incoming calls in private using the same DAK, see the Conversation application example.

For more details see $CANM, $SM and Call Request

Audio Program

Toggle between Program ON and Program OFF. The example shows program 1 (801).

First press: make the station listen to program 1 (801)
Second press: Turn listening to program off


Action commands:

IF %udd(%1.phy)
$PROG L%1.dir LV
WUDD %1.phy 0
STOP
ENDIF
$PROG L%1.dir L801
WUDD %1.phy 1


Stepping through several programs can be performed by using the step codes 790 and 791 configured in the DAK settings:

790: Step to next program
791: Step to previous program


An event can also be created to do this. The example below uses DAK 4 for stepping to next program, and DAK 5 for stepping to previous program.

DAK4 (or input 4) activated: Step to next program
DAK5 (or input 5) activated: Step to previous program


Action commands:

IF %op(%sev,=,4)
$DD L%1.dir L790
ENDIF
IF %op(%sev,=,5)
$DD L%1.dir L791
ENDIF


For more details see $PROG and Audio Program

Transfer

Toggle between Transfer ON and Transfer OFF. The example shows transferring calls to directory number 101.

First press: Activate call transfer to 101
Second press: Deactivate transfer


Action commands:

IF %udd(%1.phy)
$TRF L%1.dir ""
WUDD %1.phy 0
STOP
ENDIF
$TRF L%1.dir L101
WUDD %1.phy 1


Toggle between Call Request Transfer ON and Call Request transfer OFF. The example shows transferring Call Requests to directory number 101.

First press: Activate Call Request transfer to 101
Second press: Deactivate Call Request transfer


Action commands:

IF %udd(%1.phy)
$SCRT L%1.dir
WUDD %1.phy 0
STOP
ENDIF
$SCRT L%1.dir L101
WUDD %1.phy 1


Option: If using a station with LED indications on the DAK keys (i.e. CRM-V or ECPIR-3P) the LED can be switched on and off to show status of the transfer. Change the action commands for the transfer event like this: (example shows red LED) Action commands:

IF %udd(%1.phy)
$TRF L%1.dir ""
WUDD %1.phy 0
IND %1.phy %1.dir(i%2.dir) 1 1 OFF
STOP
ENDIF
$TRF L%1.dir L101
WUDD %1.phy 1
IND %1.phy %1.dir(i%2.dir) 1 1 ON


For more details see $TRF, $SCRT and IND

Simplex Conference

Toggle between joining a simplex conference (SX), and leaving it. The example shows joining/leaving SX1 (8201).

First press: Join Simplex Conference 1 (8201)
Second press: Leave the Simplex Conference


Action commands:

IF %udd(%1.phy)
$CONF L%1.dir LV
WUDD %1.phy 0
STOP
ENDIF
$CONF L%1.dir L8201
WUDD %1.phy 1


For more details see $CONF

Open Duplex Conference

Toggle between joining a open duplex conference (ODC), and leaving it. The example shows joining/leaving ODC1 (8301).

The $ODC command as an inbuilt toggle function, joining or leaving the conference depending on current status


Action commands:

$ODC L%1.dir L8301 U2


For more details see $ODC

Volume adjustment

Stepping the volume in a circle using just one button. After max volume, the next step is minimum volume.

Activating the DAK (or an input) increments the volume by 1


Action commands:

IF %op(%vol(%1.phy),=,9)
$VOL L%1.dir U0
STOP
ENDIF
$VOL L%1.dir U%op(%vol(%1.phy),+,1)


Alternatively the volume stepping can be in double rate, incrementing the volume by two for each button press:

Action commands:

IF %op(%vol(%1.phy),=,9)
$VOL L%1.dir U1
STOP
ENDIF
$VOL L%1.dir U%op(%vol(%1.phy),+,2)


Using a station with two buttons (or two inputs) assigning one for volume up, and one for volume down:

Adjusting volume up when pressing DAK4 (input4)


Action commands:

IF %op(%vol(%1.phy),=,9)
STOP
ENDIF
$VOL L%1.dir U%op(%vol(%1.phy),+,1)


Adjusting volume down when pressing DAK5 (input5)


Action commands:

IF %op(%vol(%1.phy),=,0)
STOP
ENDIF
$VOL L%1.dir U%op(%vol(%1.phy),-,1)


For more details see VOL