Routing GSM modems to different SMS Center respectively

Routing GSM modems to different SMS Center respectively SearchSearch
Author Message
lee vitez
New member
Username: Leevitez

Post Number: 22
Registered: 03-2011
Posted on Tuesday, June 21, 2011 - 10:19 am:   

Hi Des,

It's me again. I am wondering if nowsms can make this happen:

We have various SMSC networks here in my country, actually there are 3. I just need to take control the routing of the sms specifically to a specified SMSC number.

So, if i want to accomodate the subscribers of any of these 3 mobile networks, i need to connect 3 GSM modems to NOWSMS in order to send respectively to the defined SMSC numbers.

I need to define GSM modem #1 to SMSC1(+63910000101), GSM modem #2 to SMSC2 (+639170000020), and GSM modem #3 to SMSC3 (+639220001501). So if EmailUserA wants to send a message (using email-to-sms/mms) to MobileuserA
which is a subscriber of SMSC1 (SMSC1= +63910000101), then NOWSMS routes the SMS message using GSM modem#1 respectively.

While emailUserA sends out to MobileUserB which is a subscriber of SMSC2, NOWSMS routes the SMS outbound via GSM modem #2 to SMSC2 (+639170000020).

And when emailUserA sends out to MobileUserC using SMSC3, NOWSMS routes the SMS outbound via GSM modem #2 to SMSC3 (+639170000020).

Is this really possible? I was searching here a thread that discussess with this kind of provisioning, but i just could'nt. So, i need your help, pls...

--
Lee
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3289
Registered: 08-2008
Posted on Tuesday, June 21, 2011 - 09:12 pm:   

Hi Lee,

The question is ... how do you know which subscriber belongs to which operator.

If your country does NOT have MNP (mobile number portability = the ability to keep your number and switch operators), then each operator has defined number prefixes for their subscribers.

In this case, you use the "Preferred SMSC Connection for" list to define which number prefixes are supported by which modem/route. For example, one might have +63910* which means that all phone numbers that start with +63910 should be sent via this modem/route.

If your country has MNP, then it is considerably more complex, because you have to perform a database lookup to determine which operator a destination number belongs to.

Each country with MNP has its own database with a company contracted to maintain it. (And different commercial access rules.)

If you cannot get access to your country's MNP database, there is also a more generic type of service that can be used. This is called an HLR lookup. HLR lookups are paid services which typically cost 1/2 cent to 1 cent per lookup.

For situations where you need to use an HLR or MNP lookup, NowSMS provides a routing callback interface where we pass the destination phone number to a script that you provide. Your script interfaces with an MNP or HLR provider, and then returns to tell NowSMS which route to use for the message.

--
Des
NowSMS Support
lee vitez
New member
Username: Leevitez

Post Number: 23
Registered: 03-2011
Posted on Wednesday, June 22, 2011 - 03:37 pm:   

Hi Des,

Thanks for the additional info, although it's really very complicated to me.

Anyway, in your question, "how do you know which subscriber belongs to which operator" i can answer that basically.

There are only 3 mobile networks here, and i can tell which is which thru their first 5 digits number.

SMART Cellular = +63910... and +63919...
Globe Telecom = +63917... and +63915...
Sun Cellular = +63922... and +63923...

With this basic knowledge, is it possible then to configure this in what you said defining number prefixes in "Preferred SMSC Connection for" list?

Thank you again.

--

Lee
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3300
Registered: 08-2008
Posted on Wednesday, June 22, 2011 - 06:19 pm:   

Hi Lee,

Ok ... I'm guessing that maybe a picture would help.

Modem Properties

Each modem that you define to NowSMS has routing properties associated with it ... similar to what is shown in the above screen capture.

The "Routing" box in the bottom half has the properties that I am referring to.

If "Support any outbound message traffic" is NOT checked, then this means that NowSMS will only send messages out via this modem if the destination/recipient address matches an address mask in the "Preferred SMSC Connection for" list.

In my example above, I added +63910* and +63919* to this preferred list. This means that this modem will only be used to deliver messages to phone numbers that start with +63910 or +63919. The * is a wildcard that matches 0 or more digits, so by having that at the end of the address mask this means that any phone numbers that start with the digits before the * will be sent via this connection.

Does that make more sense?

--
Des
NowSMS Support
lee vitez
New member
Username: Leevitez

Post Number: 24
Registered: 03-2011
Posted on Thursday, June 23, 2011 - 09:12 am:   

Hi Des,

You are really great, my friend! This really make sense! I also find your hunch of using a picture is much more appealing and helpful for me.

Thank you for your time.

--

Lee