7c5b SMS Gateway - Examples and Solutions, Filtering phone numbers

                

Search the manual:

Overview Quick start Download Manual How to buy FAQ Contact Us
OZEKI NG SMS Gateway - Product Guide

Bulk SMS to a given phone number range Contents | SearchAppendix

Home > Product Manual > Examples and Solutions > Filtering phone numbers

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Examples and Solutions
  Telephone networks
  Pin game
  E-mail to SMS Alerts
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  Load Balancing
  Asterisk PBX SMS
  SQL SMS Gateway
  SMS Service Provider
  Service Provider
  SMS PIN code query
  SMS Counter game
  SMS newsgroup
  Distributed SMS
  SMS Menu
  Google maps
  Forwarding
  Birthday greeting - SQL Express
  Birthday greeting - MySQL
  Birthday greeting - Oracle
  Instant brochure - MMS autoreply
  Alphabet letter game
  SMS sport betting service
  E-mail about outgoing SMS messages
  SMS Information Menu
  Email to SMS feature
  Reminder example
  Bulk SMS Client
  Bulk SMS to a given phone number range
  Filtering phone numbers
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
 



Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.


Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create:

Webphone solutions:
- Adobe Flash video phone
- Silverlight video phone
- Web to web calls
- Web to VoIP calls

Custom SIP clients:
- Silverlight SIP VoIP client
- Flash SIP VoIP client
- C# .net SIP VoIP client
- ASP .net SIP VoIP client
- Web based SIP VoIP client

Custom VoIP solutions:
- VoIP SIP softphones
- VoIP call center clients
- VoIP IVR systems
- VoIP predictive dialer systems
- VoIP auto dialer systems
- VoIP call assistant
- VoIP call recording systems
- VoIP intercom solutions

How to filter messages sent from particular telephone numbers and messages sent to particular telephone numbers


There can be cases when you do not want to accept messages from a particular telephone number or cases when you do not want to enable sending messages for a particular telephone number. The following guide explains how to configure Ozeki NG SMS Gateway's inbound and outbound routes to filter telephone numbers.

To have this configured in Ozeki NG SMS Gateway, you need to set an appropriate regular expression in the inbound route or outbound route you want to use for filtering.

You can read about inbound routing here: Inbound routing
You can read about outbound routing here: Outbound routing
You can read about regular expressions here: Regular expressions

Filtering particular telephone numbers for incoming messages

To filter telephone numbers for incoming messages, you need to edit your inbound routes. To do this, click Inbound routing in the Edit menu (Figure 1).


Figure 1 - Inbound routing menu

You inbound routes will be shown. You can edit every route by clicking the edit button in the routes' lines (Figure 2).


Figure 2 - Edit inbound routes

You will see the edit form of the selected route. In this form, you can configure the selected inbound route. Here, you need to enter an appropriate regular expression in the Condition 1. (Sender phone number) field (Figure 3).


Figure 3 - Setting regular expression in the sender phone number field

For example, you do not want to accept messages from the telephone number +0022334455 and +1133445566. You will need the following regular expression to exclude these two telephone numbers:

/^(?!(.*)(0022334455|1133445566)(.*)).*$/

This regular expression matches to everything except +0022334455 and +1133445566, so messages from these two number will not be delivered. Note, that if you set only one incoming route to filter messages, if this route is in copy mode, then the message will be passed to the next inbound route as well. If you do not set the same regular expression on the next route(s), the message will be sent through those routes. You need to set the regular expression in every inbound route you have to completely ban accepting messages from the particular telephone numbers.

When Ozeki NG SMS Gateway recieves a message from these two numbers, you will see the following error in the service provider's log:
 ERROR 1217: Message dropped. No incoming route found for message coming from operator 'SMPP0'.
 

Filtering messages sent to particular telephone numbers

To filter telephone numbers for outgoing messages, you need to edit your outbound routes. To do this, click Outbound routing in the Edit menu (Figure 4).


Figure 4 - Outbound routing menu

Your outbound routes will be shown. You can edit every route by clicking the edit button in the routes' lines (Figure 5).


Figure 5 - Edit outbound routes

You will see the edit form of the selected route. In this form, you can configure the selected inbound route. Here, you need to enter an appropriate regular expression in the Condition 2. (Recipient phone number) field (Figure 6).


Figure 6 - Setting regular expression in the recipient phone number field

For example, you do not want to enable sending messages to +0022334455 and +1133445566. You will need the following regular expression to exclude these two telephone numbers:

/^(?!(.*)(0022334455|1133445566)(.*)).*$/

This regular expression matches to everything except +0022334455 and +1133445566 so messages having these two phone numbers as recipient will not be sent. You need to set the regular expression in every outbound route you have to completely ban sending messages to the particular telephone numbers.

When your users or applications will try to send a message for these two filtered numbers, you will see an error (Figure 7).


Figure 7 - Sending message to filtered telephone numbers

For more information please contact us at info@ozekisms.com.





Next page: Appendix
Copyright © 2000 - 2013 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com


0