6 XMS Content Feature Nodes

This chapter describes the Oracle Communications Convergent Charging Controller Messaging Manager XMS Content feature nodes.

This chapter contains the following topics.

Extract Content

Extract Number

Format Text

Keyword Search and Replace

Message Data Branching

Text Content Branching

Extract Content

The Extract Content feature node extracts a part of a profile field, or incoming SMS message, and stores it in a specified profile field.

Note: The part extracted is a string (that can represent a number or text) delimited by a white space character. For the various white space characters used by the supported alphabets see www.unicode.org.

Node exits

This node has one entry and two exits. The number of exits cannot be changed.

Exit Cause Description
1 Success The required section of the SMS was extracted and stored.
2 Error

The section of SMS could not be extracted, for the following reasons:

  • The input type expected was numeric but the extracted section contained non numeric digits for the alphabet in use.

  • The input type expected was numeric but "+" found after the start of the extracted section.

  • The content did not match the expected content type.

  • There are not enough words in the source to match the word number extraction criteria.

Configuring the node

Follow these steps to edit the node configuration.

  1. For the source, you can select either a profile, or the SMS buffer. To select:

    • A profile, select the Source Location and Source Field

    • SMS buffer content, select the Use SMS Payload check box

  2. In the Word number field, enter the number of the word, or range of words, to extract from the source.

    Note: The Word number can be positive, zero or negative.

    Suppose the message reads "It was the best of times".

    • A positive number means that you count from the left-hand side, or start, of the message.

      Example: 3 would extract "the".

    • 0 or 1 means select the first word on the left-hand side, or start, of the message.

      Example: 1 would extract "It".

    • A negative number means count back from the right-hand side, or end, of the message.

      Example: -2 would extract "of".

    • a number followed by a colon means from that numbered word to the end.

      Example: 3: would extract "the best of times".

    • A colon followed by a number means from the beginning (word 1) to the number word specified.

      Example: :4 would extract "It was the best"

    • A negative followed by a colon means count back from the right then all to the end.

      Example: -3: would extract "best of times".

    • Two numbers separated by a colon means a range of first specified word to the last specified.

      Example: 3:5 would extract "the best of".

    • Two negative numbers separated by a colon mean first number from the right to the second number from the right.

      Example: -4:-2 would extract "the best of"

    • Just a colon (that is, ":") means the entire string.

    Note: Some ranges, such as 3:-7 for this example will just produce a blank string in the target field and will exit from the Error branch because there are not enough words.

  3. If the extracted word needs to be validated as a number, select the Numeric check box. The node will exit from the Error branch if the selection is not numeric.

  4. Select the extracted content store location from the Location drop down list.

  5. Select the store location field from the Field drop down list.

  6. Click Save.

Example

Here is an example of the process, using the Extract Content node to extract the email forwarding address.

  1. Users can enable forwarding by sending an SMS, for example:

    Fwd on joe.bloggs@telco.com

  2. The control plan would use the Format Text node to check if it was a valid message.

  3. The Extract Content node is configured as shown below.

    Description of mmxconfigureextractcontent_ex_email_3-3.jpg follows
    Description of the illustration mmxconfigureextractcontent_ex_email_3-3.jpg

    Result: This node would store the third word (that is, 'joe.bloggs@telco.com') in the user's profile under the 'Email Address' tag.

Extract Number

The Extract Number feature node extracts the MSISDN from business card data held in either the SMS TEXT context or configured profile field, and then stores the MSISDN in a profile field.

The node will process the provided text to extract a valid MSISDN. Non-numeric numbers will be ignored unless they constitute part of the number.

The following examples demonstrate valid formats:

  • "(012) 345 6789"

  • "0123,456,789"

  • "+44-123-456"

  • "+44 123 456789"

  • "(+44)123-456789"

Note: The business card data must contain only one MSISDN. The MSISDN will be extracted without normalization.

Node exits

This node has one entry and three exits. The number of exits cannot be changed.

Exit Cause Description
1 Success MSISDN successfully extracted and stored in the specified profile field
2 Too Many Numbers

Unable to extract the MSISDN as there was more:

  • Than one number in the SMS context/profile field

  • Digits than the maximum allowed

3 Error

Either of the following:

  • An error occurred reading the business card data, for example. The business card did not contain an MSISDN or it was an invalid number.

  • Less than the minimum expected digits

Configuring the node

Follow these steps to configure the node.

  1. Select the Business Card Source:

    • From Profile to locate the card in a profile

    • From SMS to locate the card in a message (the Source Profile section will be grayed out)

  2. For a profile location, select the Source Profile from the Source Data Type, Location and Field drop down lists.

  3. select the Destination Profile where the extracted MSISDN will be stored from the Destination Data Type, Location and Field drop down lists.

    Warning: Unexpected behavior encountered if the source and destination profiles are the same.

  4. In the Minimum field, type the minimum length allowed for the MSISDN.

    Note: The error branch will be followed if the length of the extracted MSISDN is less than the defined minimum length.

  5. In the Maximum field, type the maximum length allowed for the MSISDN.

    Note: The too many numbers branch will be followed if the length of the extracted MSISDN is greater than the defined maximum length.

  6. Click Save.

Format Text

The Format Text feature node enables a buffer to be populated with a formatted string based on a static string that may include place holders for the contents of other selectable buffers.

Node exits

This node has one entry and two exits. The number of exits cannot be changed.

Exit Cause Description
1 Success The formatting was successful.
2 Error There is something wrong with the format string and it cannot be formatted. The output buffer will be unchanged.

Configuring the node

Follow these steps to configure the node.

  1. In the Target Buffer area, select the buffer to store the formatted string. You can:

    • Select a Target Location and Target Field

    • Select the Use SMS Payload check box to populate the SMS buffer

  2. If you wish to add the text created in this node to the end of the existing contents of the target buffer, select the Append to target check box.

  3. The Format field is where you supply the format of the string. This is free-form and allows any text. The variables starting with $ will be substituted at run time by the text in the source buffer specified by the number, for example $1 is the 1st Source, $2 the 2nd Source.

    Note: The only valid characters to follow the $ are 1, 2, 3, 4, 5, and $. Anything other than these values will result in the node exiting the Error exit.

    If you wish to use the dollar sign in the string, you must prefix it with $, that is, $$.

  4. There are 5 source areas available. In each of the required source areas, select the Source Location and Source Field. These buffers can be strings, integers, prefix trees, or dates.

    Note: If the source buffer is a date, then a date format can be supplied. This is in the format field followed by {} containing the formatting values, for example, $4{%d/%m/%y}. If no format is specified then the system locale date format will be used.

Example

Here is an example of the process, using the Format Text node to store the blacklist contents of a user's profile to send to them.

The user's blacklist contains the following numbers:

1230001

1230015

1230004

You can use the Format Text node to create a string containing the blacklist by configuring the node as shown below.

Description of mmxconfigureformattext_ex_blacklist_3-3.jpg follows
Description of the illustration mmxconfigureformattext_ex_blacklist_3-3.jpg

Result: The formatted string is:

"Your blacklist contains 1230001 1230015 1230004"

This is stored in the SMS payload target buffer. It can then be sent using another node in the control plan.

Keyword Search and Replace

The Keyword Search and Replace node branches, depending on whether or not a particular word was matched in the message.

The node allows up to five different keywords to be searched for in the short message and will branch according to the word that was matched. It is also possible to replace the word that was matched in the message with something else.

Node exits

This node has one entry and seven exits. The number of exits cannot be changed.

Exit Cause Description
1 Matched 1 The keyword specified as Pattern 1 was matched in the message.
2 Matched 2 The keyword specified as Pattern 2 was matched in the message.
3 Matched 3 The keyword specified as Pattern 3 was matched in the message.
4 Matched 4 The keyword specified as Pattern 4 was matched in the message.
5 Matched 5 The keyword specified as Pattern 5 was matched in the message.
6 Not Matched None of the patterns specified in the node were matched
7 Bypass NA

Configuring the node

Follow these steps to edit the Keyword Search and Replace node.

  1. Enter the patterns that are to be searched for in the message.

  2. Enter the replacement values for each searchable pattern.

  3. Select the Case Sensitive check box to make search patterns case sensitive.

  4. Select the Bypass Concatenated check box to not check for the patterns in concatenated messages.

  5. Click Save.

    Note: The node will search the message for the patterns to be matched in order, and once a match is made will not search any further.

Message Data Branching

The Message Data Branching node branches depending on whether the current message contains text or data, according to the data coding scheme.

Node exits

This node has one entry and two exits. The number of exits cannot be changed.

Exit Cause Description
1 Text Message The message is text encoded.
2 Data Message The message is data encoded.

Configuring the node

This node requires no configuration data. You may change the Node name, if required.

Text Content Branching

The Text Content Branching node branches depending on the content of the short message.

It takes the regular expressions entered into the node and tries to match these expressions to the content of the short message. Matches are done in the order that they appear in the node, as soon as a match is made the branch corresponding to that expression will be taken. The node does not do a "best match", but looks for and takes the first match found.

When a match is found, it branches accordingly; if no match is found the node exits the "Not Matched" exit.

Node exits

This node has one entry and seven exits. The number of exits cannot be changed.

Exit Cause Description
1 Match 1 Short message received matches regular expression 1.
2 Match 2 Short message received matches regular expression 2.
3 Match 3 Short message received matches regular expression 3.
4 Match 4 Short message received matches regular expression 4.
5 Match 5 Short message received matches regular expression 5.
6 Not Matched None of the regular expressions matched the short message.
7 Exception Exceptions thrown while matching the expressions from content of short message.

Configuring the node

Follow these steps to edit the Text Content Branching node.

  1. Determine whether the regular expressions that are to matched against the short messages are to be case sensitive; if so, select the check box.

  2. Enter up to five regular expressions that the short message is to be matched against.

  3. Click Save.