This command schedules a job for automatic processing, which is typically an outbound call. It is also used
internally by the notification record subsystem described above. The arguments have the following meanings:
box
The notify will be placed in the specified box. Must have the
NOTIFY ANY BOX
privilege.
template
The template name specifies which notify template (see section 12.2.3) contains the Tcl code to be
executed by this job.
variable
The variable field is a free-form argument which is passed to the notify template as part of its
argument. It is copied from the notify record in the case of a notify; otherwise, it can be any value
which has meaning to the notify template’s code.
successes
This specifies the maximum number of times that the template should be executed successfuly. If
this maximum is reached, the job is deleted. A value of zero means there is no limit.
failures
This specifies the maximum number of times that the template is allowed to fail. If this maximum
is reached, the job is deleted. A value of zero means there is no limit.
days
This value specifies the days of the week, Sunday through Saturday, when the job is allowed to execute.
It can be expressed either as a decimal binary number (127 would mean all days) or as a string of
T
s
and
F
s. The default is
TTTTTTT
.
from
This value specifies the earliest time of each allowed day that the job can be executed. It can be
expressed in one of two forms: an integer number of seconds since midnight or in HH:MM format using
a 24-hour clock.
to
This value specifies, in the same format as
from
, the last time in the day when the job is allowed to
execute each day.
after
This integer value specifies the number of minutes which must pass from the time the job is submitted
before it is first executed.
every
This integer value specifies the number of minutes which separate each successful or failed execution.
That is, the job is repeated every
every
minutes, except for the day of week and time of day restrictions.
If a job would otherwise run but it is restricted from doing so, it is rescheduled automatically for the
next time when it is allowed to run.
msg num
If this job was being submitted automatically by a
normal
or
urgent
notify record, then the number
of the corresponding message will be filled in here. When that message is subsequently marked deleted
or heard, any outstanding notify instances for it will be deleted automatically. For non-notify jobs,
use
-1
so as not to conflict with any actual message number. Note that the
msg num
value is set as a
global variable called
msg num
in the interpreter which is executing the template.
nfr recno
If this job was being submitted automatically by a notify record, then this value will “point back”
to the notify record which was fired. For non-notify jobs, use
-1
.
type
If this job was being submitted automatically by a notify record, then this value will be the type of
notification that was being executed (
normal
,
urgent
, etc.). It is checked when notify instance records
are automatically deleted when messages are picked up/deleted to insure that only the correct records
are deleted. Otherwise, it is unused and it can be given any other value, including the empty string.
port group
This optional parameter specifies the port group which will be used by the notify template. If left
blank, then when the time comes to execute this job, a separate thread of execution is used. Otherwise,
the notify instance subsystem optimizes the number of threads based on the number of ports in each
identified port group.
Return values:
Empty string.
145