![Obihai Technology OBi1032 Administration Manual Download Page 215](http://html2.mh-extra.com/html/obihai-technology/obi1032/obi1032_administration-manual_3151346215.webp)
Copyright 2010-2017 Obihai Technology, Inc.
215
A rule has the following format:
Notes:
-
A terminal may be a trunk or another endpoint.
-
Abbreviated terminal names are case-insensitive
-
number and number-to-call
are literal strings, such as 14089991234
-
digit-map
is just any proper digit map, such as (1xxx|xx.); make sure to include the enclosing parentheses
-
spoofed-caller-number
is a literal string, such as 14081112233, to be used as the caller number for making a
new call on the specified trunk
-
(M
label
) is a named digit map where
label
is the abbreviated name of any terminal that has a digit map
defined: SP1
–
SP6, BT, PP, PH, or AA
-
$2 is an internal variable containing the called number of this outbound call, after any digit map
transformation in the matched
callee
object
-
Callee-list
can be empty, which implies the single
callee
object @, which means any called number. The
succeeding ‘:’ can be omitted also when
callee-list
is empty
More notes on the
arg
,
cid
,
and
target
objects:
-
The
cid
object inside an
arg
object is optional. If omitted, it implies no caller-ID spoofing when making the call
on the specified trunk. The succeeding ‘>’ can be omitted if
cid
is omitted.
-
The
target
object inside an
arg
object is optional. If omitted, it implies the
target
$2, which means to call the
original called number after applying any necessary digit map transformation implied by the rule. The
preceding ‘>’ cannot be omitted if
target
is omitted but not the cid.
-
arg
object is optional. If omitted, it implies the
arg
with the
target
$2 and no
cid
An outbound call matches a rule if its called number matches one of the
callee
objects of the rule.
Callee
objects are
tested in the order left and right, and the first matched
callee
will win. Rules are also checked in the order left to right,
and the first matched rule will win. Therefore it is important that you place the more specific rules first in the
OutboundCallRoute
if multiple rules can potentially match the same outbound call.
Note that every endpoint also has a digit map defined. The user dialed number is completely processed with the
endpoint’s digit map first before it is passed to the
OutboundCallRoute
for routing decision. Therefore the number
used for matching call routing rules has already incurred the transformations, if any, implied by the digit map.
Remember this fact when crafting your own
OutboundCallRoute
.
OutboundCallRoute
Examples
:
1)
sp1
OR
{SP1}
OR
{:SP1}
OR
{@:Sp1}
(all equivalent)
This rule says: Make all calls using SP1 Service, without any caller-id spoofing or digit transformation