Actions

Difference between revisions of "%1.udp"

From Zenitel Wiki

 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
%1.udp
+
{{AI}}
 +
* Returns the [[UDP group]] memberships for station, as a decimal number.
 +
* Interpret the number as a bitmap, bit#0 is UDP group 1, bit#7 is UDP group 8.
  
  
Return the [[UDP group]] memberships for station, as a decimal number.  
+
'''Example:''' If a station is member of UDP group 1, 4 and 8, %1.udp will return value 137.
 +
* '''%2.udp''' can also be used if related-to is in local exchange
  
* Interpret the number as a bitmap, bit#0 is UDP group 1, bit#7 is UDP group 8
 
* %2.udp can also be used if related-to is in local exchange
 
  
 +
UDP group:  8  7  6  5  4  3  2  1
  
  UDP group1 2  3 4   5 6 7 8
+
  Bit:       7 6 5 3 2 1 0
  Bit:        0 1  2  3  4  5  6  7
+
 
  Value:     1 2 8 16 32 64 128
+
  Value:   128 64 32 16 8 2 1
 +
 
 +
 
 +
Example: If calling station is member of UDP group 3, then cancel the call.
 +
[[File:EventHandlerMacro UDP.PNG|thumb|left|500px]]
 +
<br style="clear:both;" />
  
Example: If a station is member of UDP group 1, 4 and 8, %1.udp will return value 137.
 
  
 
Back to [[Event_Handler#List_of_context_parameters]].
 
Back to [[Event_Handler#List_of_context_parameters]].

Latest revision as of 09:46, 4 October 2019

AI.png
  • Returns the UDP group memberships for station, as a decimal number.
  • Interpret the number as a bitmap, bit#0 is UDP group 1, bit#7 is UDP group 8.


Example: If a station is member of UDP group 1, 4 and 8, %1.udp will return value 137.

  • %2.udp can also be used if related-to is in local exchange


UDP group:  8  7  6  5  4  3  2  1
Bit:        7  6  5  4  3  2  1  0
Value:    128 64 32 16  8  4  2  1


Example: If calling station is member of UDP group 3, then cancel the call.

EventHandlerMacro UDP.PNG



Back to Event_Handler#List_of_context_parameters.