Copyright 2010-2012 Obihai Technology, Inc.
179
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, SP2, LI, 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
2)
{(<#:>|911):li},{**0:aa},{***:aa2},{(Mpli):pli},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(
Mpp)):pp}
This is the default OutboundCallRoute for the PHONE port. It says:
Summary of Contents for OBi110
Page 23: ...Copyright 2010 2012 Obihai Technology Inc 23...
Page 52: ...Copyright 2010 2012 Obihai Technology Inc 52...
Page 55: ...Copyright 2010 2012 Obihai Technology Inc 55...
Page 71: ...Copyright 2010 2012 Obihai Technology Inc 71...
Page 92: ...Copyright 2010 2012 Obihai Technology Inc 92...
Page 98: ...Copyright 2010 2012 Obihai Technology Inc 98 SP1 SP2 SP3 and SP4 Services...
Page 114: ...Copyright 2010 2012 Obihai Technology Inc 114...
Page 126: ...Copyright 2010 2012 Obihai Technology Inc 126...
Page 142: ...Copyright 2010 2012 Obihai Technology Inc 142...
Page 143: ...Copyright 2010 2012 Obihai Technology Inc 143...
Page 144: ...Copyright 2010 2012 Obihai Technology Inc 144...
Page 168: ...Copyright 2010 2012 Obihai Technology Inc 168...