[SOLVED] - SMS

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

[SOLVED] - SMS

Post by anjanesh »

Hello
I've read some of the prev topics in the forum regarding SMS and SMS gateway. It seems that when sending an SMS its always sending a mail in the form number@serviceprovider.com.
Want I want to know is : Are ALL SMSs sent like this in the world ? Is this how the mobile industry defined it ? What if its not possible to send a msg from mail ? Also, how can we ever know the service provider by just knowing the number ? We need to provide a huge array or providers.
And what should be in our web host to make the SMS work ?

Thanks
Last edited by anjanesh on Mon Aug 02, 2004 6:47 am, edited 1 time in total.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Well you can send SMS's to anybody in the world...so yes they do use the same protocol. As for knowing which service provider is responisible for each number: each company buys certain blocks of numbers where 123-XXX-XXXX is one service provider so by checking those numbers you can tell that its a certain provider. Im pretty sure this is the same for all countries, but of course the number formats are different - like british providers are like - 07730-XXXXXX .

Heres a few links:

http://www.funsms.net/service_provider_code_list.htm
http://answers.google.com/answers/threadview?id=74683
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Thanks for your answer. It was REALLY informative.
Regarding the email association with numbers :
The link you provided were last updated in 2002. Lets take an example of one such provider : Airtel where the format is number@airtelmail.com. Alright. This mst have worked in 2002. I tried all possible combinations now (+91,91,etc) and did not get the msg. Isn't it possible the service provider would have changed the mail address ? Now how do I know its airtel, airtelmail, airtelmobile or whatever .com ?
Thanks
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Regarding SMS I guess Airtel is not allowing SMS from emails or they've changed the smtp add. But there is this s/w that they are providing to send sms form the computer : http://airtel.chatzone.cc/AirTelMsgr3.0%20Win2K.exe So this defintely will have the way to send it across. Is it possible to get the smtp add from a hex editor or something like that ?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I'm aware of http://www.netsize.com that has a SMS Gateway. here you can find more info on how to talk with the gateway.

I also know about http://www.ringring.be and their gateway only talks through XML posts. But i would not recommend them as a partner.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

did you see this?

http://www.dei.inf.uc3m.es/~assman/old/sms/

As for potentially finding the smtp server in the exe, download a binary loading text editor, like TextPad and flip through the machine code..
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Got the c code feyd. Again it was written in 1999 and the address was airtelmovil.net. Delivery Failure.
Anyway I found out that airtelIndia.com is a relevant one. For example 121@airtelIndia.com is the help line email add. So i tried it my no: and sent using yahoo mail. This is what I got :
Your message

Subject: test

was not delivered to:

919895402239@airtelindia.com

because:

User 919895402239 (919895402239@airtelindia.com) not listed in public
Name & Address Book

Message/delivery-status

Reporting-MTA: dns;airtelhub.airtelindia.com

Final-Recipient: rfc822;919895402239@airtelindia.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Notes; User 919895402239
(919895402235@airtelindia.com) not listed in public Name & Address Book

Can anyone infer anything out of this ?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Just wanted to post this info if others search.
Airtel has sms functionality for different states. For kerala for example its 98xxxxxxxx@airtelkerala.com

What is SMS : http://www.zdnetindia.com/biztech/servi ... 32480.html
Post Reply