Call Class Rules; Parser Regular Expressions; Rule Syntax - Dialogic DMG1000 User Manual

Dialogic 1000 and 2000 media gateway series
Hide thumbs Also See for DMG1000:
Table of Contents

Advertisement

Media Gateway Parsers
6.2.2

Call Class Rules

On a telephone network, there can be several different string formats for call information.
Integration or display strings which use the same format are said to be in the same "Call Class".
That is, two integration or display strings can be parsed using the same rules if they are in the same
call class. If an integration or display string cannot be parsed using the same rules, then a new call
class must be declared.
Regular Expressions
Call classes will be recognized using user-defined regular expressions. The parser uses standard
regular expression "metacharacters" (special characters which are used to describe sequences of
regular characters) in addition to some specific metacharacters.
Table 5. Parser Regular Expressions
Characters and
Meta-Characters
\d
\D
\w
\s
\b
\nnn
(min,max)

Rule Syntax

A call-class rule starts with the tag "rule". All characters following the tag define the rule.
Following the rule are specifiers that define the location in the integration or display string of the
call party information.
For example, to describe the integration string:
168
.
Any single character.
\
Character to right is literal. (quoted character)
?
0 or 1 of preceding character.
*
0 or more of preceding character.
+
1 or more of preceding character.
~
A reason code or call origin character.
Digit character. (call party number)
Non-digit character.
Word character. (call party name) Must start with alpha,
then can be alpha, digit, -, comma, space, ., or _.
Whitespace character. Space, newline, or tab.
Word boundary. Whitespace, punctuation, beginning or end
of text. Used to specify that strings are bounded at start or
end of string. Not explicitly searched for. Checked on
reasons, digits, and literal strings.
Octal control character.
Braces. Follows other chars. If non-null, length must be
within min/max.
®
Dialogic
1000 and 2000 Media Gateway Series User's Guide — September 2007
Purpose
Analog Parsing
Applicable
Yes
Yes
No
Yes
No
No
Yes
No
No
No
No
No
Yes
Dialogic Corporation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents