Send Mail command $SM and Cancel Mail command $CANM used in AlphaNet (Event Handler)
From Zenitel Wiki
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
|