● Peering-list is optional in InboundCallRoute. If the peering-list is empty, the succeeding ‘:'
can be omitted also. An empty peering-list implies a single peering object whose caller object list
matches any caller number. That is, the following InboundCallRoutes are all equivalent:
– ph
– {ph}
– {:ph}
– {?|@>@:ph}
● Callee-list in a peering object can be empty. It implies the callee object @, meaning any
called number. The preceding ‘>' can be omitted if callee-list is empty.
● Caller-list in a peering object can be empty. It implies the caller-list @|?, meaning any caller
number including anonymous. The succeeding ‘>' can't be omitted if caller-list is empty but
not the callee-list.
● The cid object inside an arg object is optional. If omitted, it implies no caller-ID spoofing when
calling 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 ‘>' can't be omitted if target is omitted but cid is not.
● arg object is optional. If omitted, it implies the arg with the target $2 and no cid. If arg is
omitted, the succeeding parentheses () can be omitted also.
An inbound call matches a rule if its caller-number/callee-number matches one of the peering objects
of the rule. Peering objects are tested in the order left and right, and the first matched peering object
wins. Rules are also checked in the order left to right, and the first matched rule wins. Therefore it’s
important that you place the more specific rules first in the InboundCallRoute if multiple rules can
potentially match the same inbound call.
InboundCallRoute Examples
This section provides examples of routing rules for handling inbound calls.
ph OR {ph} OR {:ph} OR {@|?>@:ph} (all equivalent)
It says: Ring the PHONE port for all incoming calls. This is the default InboundCallRoute for all trunks.
{(14081223330|15103313456):aa},{(1800xx.|1888xx.):},{ph}
It says: Ring both PHONE port and AA for calls coming from 1 408 122 3330 or 1 510 331
3456, block all 800, 888, and anonymous calls, and ring the PHONE port for all other calls.
{(x.4081113333|x.4152224444):aa},{ph}
It says: Ring the AA for calls coming from any number that ends with 408 111 3333 or 415 222
4444, and ring the PHONE port for all other calls. Be sure to include the enclosing parentheses in this
example, since “x.” is a digit map-specific syntax.
{200123456:aa},{sp1(14083335678)}
It says: Ring the AA for calls coming from 200123456. For all any other call, bridge it by calling 1
408 333 5678 using SP1 Service.
60
Chapter 11Call Routing