User`s guide
204 Dialogic
®
1000 and 2000 Media Gateway Series User’s Guide
Routing Table
Table 11 shows the syntax used for CPID Manipulation.
Table 11. 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