Limit phone number | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through January 23, 2007 ⬆ |
◄ ► |
Author | Message | |||
dwi amk New member Username: Dwi_amk Post Number: 1 Registered: 10-2006 |
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 |
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 |