User`s guide
Dialogic
®
1000 and 2000 Media Gateway Series User’s Guide 211
Routing Table
CPID Manipulation
CPID Manipulation defines rules for how Calling Number, Calling Name, Called Number, Called
Name, Redirect Number, and Redirect Name appear in the destination call. Typically, the calling
and called numbers from the incoming call are simply passed through to the outgoing call.
However, there are cases where it is desirable to alter either or both of these numbers. A “CPID
Manipulation” rule is applied to all calls routed via the Routing Table. Each of the rules applies a
formula using the incoming CPID information as inputs to determine the outgoing call's CPID.
Table 14 shows the syntax used for CPID Manipulation.
Table 14. Syntax Used for CPID Manipulation
Number Manipulation
Rule Syntax Description Example Example Result
S Source (calling) number S 7168675309
D Destination (called) number D 5551212
R Redirection number R 4815162342
S# Source (calling) number S# 7168675309
D# Destination (called) number D# 5551212
R# Redirection number R# 4815162342
S@ Source (calling) name S@ Amanda
D@ Destination (called) name D@ Sydney
R@ Redirection name R@ Dave
“ ” Takes what’s in quotes as
literal
“353” 353
+ Concatenate “800” + D 8005551212
lext(str, n) Extract n characters from left
of str
lext(S, 3) 716
rext(str, n) Extract n characters from right
of str
rext(S, 4) 5309
lrem(str, n) Remove n characters from left
of str
lrem(S@, 3) nda
rrem(str, n) Remove n characters from
right of str
rrem(D, 4) 555
mext(str, pos, n) Extract n characters from str
starting pos digits from left
mext(S, 5, 2) 53
repl(str, old, new) Find 1st occurrence of old in
str and replace with new
repl(D, “12”, “46”) 5554612
Mix multiple rules S@ + “-at-” + rext(S,3) Amanda-at-309