Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: 00 36 52 532 731
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

Bulk SMS to a given phone number range Contents | SearchOzeki Phone Sytem PBX SMS

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
  SMS Pin game
  E-mail to SMS alert
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  SMS 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
  Ozeki Phone Sytem PBX SMS
  Autoreply voucher example
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
  Cookie policy
 


Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

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

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.

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: Ozeki Phone Sytem PBX SMS
Copyright © 2000 - 2017 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