Example 8

Top  Previous  Next

This example is designed to work with an SMS Replies system. This script is configured with a list of 'allowed' phone numbers and is also configured to scan the sender value of all replies. If the sender's phone number isn't in the 'allowed' list, the message is filtered as spam.

 

<Filter>

<Comment>

This filter is scanning the sender value for a series of phone numbers. In this example, we're using a simple Regex string to create an 'or' statement. So, we're scanning for the first number or the second number or the third number and so on.

</Comment>

<Search>

        <Section>

                Sender

        </Section>

        <Type>

                Regex

        </Type>

        <Text>

                (phonenumber1|phonenumber2|phonenumber3|phonenumber4|etc)

        </Text>

</Search>

 

<Replace>

<Comment>

If the filter finds any of the specified phone numbers, it assigns the intended delivery group or recipient.

</Comment>

        <Section>

                Recipient

        </Section>

        <Scope>

                Section

        </Scope>

        <Text>

                name of messaging group or recipient

        </Text>

</Replace>

<Continue>

        False

</Continue>

</Filter>