Actions

Difference between revisions of "Send Mail command $SM and Cancel Mail command $CANM used in AlphaNet (Event Handler)"

From Zenitel Wiki

(CancelMail ($CANM) used in AlphaNet)
(CancelMail ($CANM) used in AlphaNet)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
{{AI}}
 
Notes when using [[SEND_MAIL]] ($SM) in an [[AlphaNet]]:
 
Notes when using [[SEND_MAIL]] ($SM) in an [[AlphaNet]]:
  
The $SM command must be sent to the node of the ''queuing'' station, using @<node> as a prefix.
+
The $SM command must be sent to the node of the ''queuing'' station, using @<node> as a prefix, where "node" is hex value of the node. Using @'''U'''<node>,"node" is the decimal value.
 
* The command (@3 $SM….) must be executed in the ''sending'' exchange (were the calling station is located)
 
* The command (@3 $SM….) must be executed in the ''sending'' exchange (were the calling station is located)
 
* The command (@3 $SM….) must be sent to the exchange were the receiving station is located
 
* The command (@3 $SM….) must be sent to the exchange were the receiving station is located
Line 11: Line 12:
  
 
=== Some Examples ===
 
=== Some Examples ===
 +
Station 104 in node 2 will be queued on 107 in node 3:
 +
{{Code|@3 $SM L(2)104 L107 U100 NM18 GV U0 ’Text of 104’ U0}}
  
Station 104 in node 2 will be queued on 107 in node 3:
 
@3 $SM L(2)104 L107 U100 NM18 GV U0 ’Text of 104’ U0
 
<br\>
 
 
More general: Any station in node 2 triggering this event will be queued on 107 in node 3 with the correct text:
 
More general: Any station in node 2 triggering this event will be queued on 107 in node 3 with the correct text:
@3 $SM L(2''')%1.dir''' L107 U100 NM18 GV U0 '''’%1.nam'''’ U0
+
{{Code|@3 $SM L(2''')%1.dir''' L107 U100 NM18 GV U0 '''’%1.nam'''’ U0}}
<br\>
+
 
 
General expression: Any station in any node triggering this event will be queued on 107 in node 3:
 
General expression: Any station in any node triggering this event will be queued on 107 in node 3:
@3 $SM L(%'''1.nod''')%1.dir L107 U100 NM18 GV U0 ’%1.nam’ U0
+
{{Code|@3 $SM L(%'''1.nod''')%1.dir L107 U100 NM18 GV U0 ’%1.nam’ U0}}
<br\>
+
Or equivalent:
Or eqvivalent:
+
{{Code|@3 $SM '''%1.ref''' L107 U100 NM18 GV U0 ’%1.nam’ U0}}
@3 $SM '''%1.ref''' L107 U100 NM18 GV U0 ’%1.nam’ U0
+
 
<br\>
 
 
Same as above, but the sender will be put in Call Requester mode:
 
Same as above, but the sender will be put in Call Requester mode:
@3 $SM %1.ref L107 U100 NM18 GV U1 ’%1.nam’ U0
+
{{Code|@3 $SM %1.ref L107 U100 NM18 GV U1 ’%1.nam’ U0}}
<br\>
+
 
 
Same as above, but the sender will be queued on all stations in group 15 (dir no 899) in node 3:
 
Same as above, but the sender will be queued on all stations in group 15 (dir no 899) in node 3:
@3 $SM %1.ref '''NG15''' U100 NM18 GV U1 ’%1.nam’ U0
+
{{Code|@3 $SM %1.ref '''NG15''' U100 NM18 GV U1 ’%1.nam’ U0}}
<br\>
+
 
 
Same as above, but when answered from one inside the group the station will be deleted from the others:
 
Same as above, but when answered from one inside the group the station will be deleted from the others:
@3 $SM %1.ref '''L899''' U100 NM18 GV '''U3''' ’%1.nam’ U0
+
{{Code|@3 $SM %1.ref '''L899''' U100 NM18 GV '''U3''' ’%1.nam’ U0}}
  
 
=== The following expressions will NOT work ===
 
=== The following expressions will NOT work ===
  
 
When the last parameters are omitted the mail will be received at 107, but the sender will be without name, only dir. no. in display:
 
When the last parameters are omitted the mail will be received at 107, but the sender will be without name, only dir. no. in display:
@3 $SM %1.ref L107
+
{{Code|@3 $SM %1.ref L107}}
@3 $SM %1.ref L107 U140 NM18 GV U0
+
{{Code|@3 $SM %1.ref L107 U140 NM18 GV U0}}
  
 
These expressions will not work at all:
 
These expressions will not work at all:
$SM L%1.dir L(3)107
+
{{Code|$SM L%1.dir L(3)107}}
  
 
Or if 107 is a global number:
 
Or if 107 is a global number:
$SM L%1.dir L107
+
{{Code|$SM L%1.dir L107}}
  
 
== CancelMail ($CANM) used in AlphaNet ==
 
== CancelMail ($CANM) used in AlphaNet ==
 +
Station 104 in node 2 will be deleted from the queue on 107 in node 3:
 +
{{Code|@3 $CANM L(2)104 L107}}
  
 
Station 104 in node 2 will be deleted from the queue on 107 in node 3:
 
@3 $CANM L(2)104 L107  <br\>
 
 
General expression: The station triggering this event will be deleted from the queue on 107 in node 3:
 
General expression: The station triggering this event will be deleted from the queue on 107 in node 3:
@3 $CANM L('''%1.nod)%1.dir''' L107 <br\>
+
{{Code|@3 $CANM L('''%1.nod)%1.dir''' L107}}
 
or:
 
or:
@3 $CANM '''%1.ref''' L107 <br\>
+
{{Code|@3 $CANM '''%1.ref''' L107}}
Same as above, but the station triggering this event will be deleted from the queue of stations in group 15 (dir no 899) in node 3:
+
 
@3 $CANM %1.ref '''NG15'''
+
Same as above, but the station triggering this event will be deleted from the queue of stations in group 15 (directory no 899) in node 3:
 +
{{Code|@3 $CANM %1.ref '''NG15'''}}
 +
 
 
Same as above, but using dir. No. instead:
 
Same as above, but using dir. No. instead:
@3 $CANM %1.ref '''L899'''
+
{{Code|@3 $CANM %1.ref '''L899'''}}
 +
 
 +
[[Category: Event Handler]]
 +
[[Category: AlphaNet]]

Latest revision as of 10:52, 1 June 2022

AI.png

Notes when using SEND_MAIL ($SM) in an AlphaNet:

The $SM command must be sent to the node of the queuing station, using @<node> as a prefix, where "node" is hex value of the node. Using @U<node>,"node" is the decimal value.

  • The command (@3 $SM….) must be executed in the sending exchange (were the calling station is located)
  • The command (@3 $SM….) must be sent to the exchange were the receiving station is located
  • AlphaCom fills in the parameters (%1, %2) at the sending exchange
  • The expression %1.ref includes the node and directory number, similar to L(%1.nod)%1.dir
  • No need for Global Numbers. The directory numbers involved can be Local numbers
  • The queuing station can answer the call by dialing 70+8 or 7638
  • SendMail to a Global group is not possible

Some Examples

Station 104 in node 2 will be queued on 107 in node 3:

@3 $SM L(2)104 L107 U100 NM18 GV U0 ’Text of 104’ U0


More general: Any station in node 2 triggering this event will be queued on 107 in node 3 with the correct text:

@3 $SM L(2)%1.dir L107 U100 NM18 GV U0 ’%1.nam’ U0


General expression: Any station in any node triggering this event will be queued on 107 in node 3:

@3 $SM L(%1.nod)%1.dir L107 U100 NM18 GV U0 ’%1.nam’ U0


Or equivalent:

@3 $SM %1.ref L107 U100 NM18 GV U0 ’%1.nam’ U0


Same as above, but the sender will be put in Call Requester mode:

@3 $SM %1.ref L107 U100 NM18 GV U1 ’%1.nam’ U0


Same as above, but the sender will be queued on all stations in group 15 (dir no 899) in node 3:

@3 $SM %1.ref NG15 U100 NM18 GV U1 ’%1.nam’ U0


Same as above, but when answered from one inside the group the station will be deleted from the others:

@3 $SM %1.ref L899 U100 NM18 GV U3 ’%1.nam’ U0


The following expressions will NOT work

When the last parameters are omitted the mail will be received at 107, but the sender will be without name, only dir. no. in display:

@3 $SM %1.ref L107


@3 $SM %1.ref L107 U140 NM18 GV U0


These expressions will not work at all:

$SM L%1.dir L(3)107


Or if 107 is a global number:

$SM L%1.dir L107


CancelMail ($CANM) used in AlphaNet

Station 104 in node 2 will be deleted from the queue on 107 in node 3:

@3 $CANM L(2)104 L107


General expression: The station triggering this event will be deleted from the queue on 107 in node 3:

@3 $CANM L(%1.nod)%1.dir L107


or:

@3 $CANM %1.ref L107


Same as above, but the station triggering this event will be deleted from the queue of stations in group 15 (directory no 899) in node 3:

@3 $CANM %1.ref NG15


Same as above, but using dir. No. instead:

@3 $CANM %1.ref L899