Limit phone number

Limit phone number SearchSearch
Author Message
dwi amk
New member
Username: Dwi_amk

Post Number: 1
Registered: 10-2006
Posted on Saturday, October 07, 2006 - 04:04 pm:   

I want to ask how to limit sms phone number to minimal 7 digits? because in our country usually 4 digits phone number is premium sms that has price more expensive than ordinary phone number. It is used for quiz etc, for example.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6668
Registered: 10-2002
Posted on Friday, October 13, 2006 - 07:25 pm:   

Hi,

I was about to reply and indicate that this was not possible.

But then I had an idea ... and this seems to work.

Define a dummy SMSC entry in NowSMS. The easiest thing to do is setup an HTTP SMSC, and then just put in your own web server address as the host name. Specify "NowSMS" as the "Server type" to fill in the URL templates automatically. Uncheck "Support any outbound message traffic", and then in the "Preferred SMSC Connection for" list, add "??????", "?????", "????", "???", "??" and "?".

This means that any time there is a message sent to a phone number that is less than 7 digits, it will match one of the "???" templates ... and NowSMS will attempt to route the message via this connection.

Because it is an HTTP SMSC, NowSMS will make a request for the home page of the server that you specify ... and assume that the web server accepted the message for submission. But, of course, since you put in the address of a standard web server, no message will actually be sent.

-bn