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

Regular expressions Contents | SearchSQL logging

Home > Product Manual > User Guide > Configuration > Outbound routing > Convert phone numbers into international format

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Quick Start Guide
  User Interface
  Configuration
  Inbound Routing
  Outbound routing
  Least cost routing
  Backup routing
  Multi provider
  Regular expressions
  Convert phone numbers into international format
  SQL logging
  Source routing
  Sender address
  Content manipulation
  Charset handling
  List Management
  Client software
  Administrator's guide
  Developers Guide
  Examples and Solutions
  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 convert local phone numbers into international phone numbers

This article provides information on how to convert local telephone numbers into international ones. You can learn how to configure your SMS gateway to convert phone numbers into international numbers automatically to make mobile messaging easier and convenient. With this solution you can also prevent several problems deriving from the use of phone numbers in not the proper forms. Therefore by applying an outbound route condition you can be sure that your messages will arrive at the mobile devices of recipients.

Outbound route expression:

s/^.*(.{10})$/+3$1 /

First of all you need to apply an outbound route condition that will convert phone numbers automatically. Therefore if you enter s/^.*(.{10})$/+3$1 / into "Condition 2. (Recipient phone number)" field, you can easily achieve this function (Figure 1).


Figure 1 - Outbound route expression

Please note that in Hungary local phone numbers start with "06" while international number form means that "+36" is placed at the beginning of the phone number. In "s/^.*(.{10})$/+3$1 /" expression "10" refers to the fact that it counts back 10 from the end of the phone number and cuts down the numbers. "+3" refers to the fact that it places "+3" at the beginning of the phone number (in this way it becomes an international phone number that starts with "+36" as it cuts down "0" from the beginning of the phone number and replaces it by "+3").
You can freely configure this expression by changing the numbers in it according to the local phone numbers of your country.

To demonstrate this solution I send a test message and I define a local phone number (06301122334) as a recipient phone number (Figure 2).


Figure 2 - Test message with a local phone number

In the Events of "admin" user in Ozeki NG SMS Gateway you can see that the message has been sent out with local phone number (starts with 06) but it arrives at the SMS center with international phone number (starts with +36), due to the regular expression of outbound route (Figure 3).


Figure 3 - Sent message at the events

Figure 4 shows the Events of SMPP service provider connection in Ozeki NG SMS Gateway. You can see that the sent message has been sent in international form.


Figure 4 - Sent message at the SMPP service provider

Dig deeper!
People who read this also read...





Next page: SQL logging
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