Networking - what is sms gateway and how does it works?

Asked By prasad vjp on 28-Nov-11 05:51 AM
hai friends ,

what is sms gateway,and how does it works and what is the flow of sms web to mobile.

tel me briflf the info
Jitendra Faye replied to prasad vjp on 28-Nov-11 05:54 AM
Using Ozeki NG-SMS gateway you can send sms using c# code-

follow this link-
http://www.ozekisms.com/index.php?ow_page_number=230

try this code-


protected



void buttonSendOnClick(object sender, EventArgs e)

{



try

{



//Create the request and send data to Ozeki NG SMS Gateway Server by

HTTP connection

HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(createdURL);



//Get response from Ozeki NG SMS Gateway Server and read the answer

HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();

System.IO.


StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());


string responseString = respStreamReader.ReadToEnd();

respStreamReader.Close();

myResp.Close();



//inform the user

textboxError.Text = responseString;

textboxError.Visible =


true;

}



catch (Exception)

{



//if sending request or getting response is not successful, Ozeki NG - SMS Gateway Server may not be running

textboxError.Text =

"Ozeki NG SMS Gateway Server is not running!";

textboxError.Visible =

true;

}

}



TRy this and let me know.
Riley K replied to prasad vjp on 28-Nov-11 05:59 AM

The figure below shows a typical organization of network elements in a GSM network supporting SMS.

The SMSC (Short Message Service Center) is the entity which does the job of store and forward of messages to and from the mobile station. The SME (Short Message Entity), which is typically a mobile phone or a GSM modem, can be located in the fixed network or a mobile station, receives and sends short messages.

The SMS GMSC (SMS gateway MSC) is a gateway MSC that can also receive short messages. The gateway MSC is a mobile network’s point of contact with other networks. On receiving the short message from the short message center, GMSC uses the SS7 network to interrogate the current position of the mobile station form the HLR, the home location register.

HLR is the main database in a mobile network. It holds information of the subscription profile of the mobile and also about the routing information for the subscriber, i.e. the area (covered by a MSC) where the mobile is currently situated. The GMSC is thus able to pass on the message to the correct MSC.

MSC (Mobile Switching Center) is the entity in a GSM network which does the job of switching connections between mobile stations or between mobile stations and the fixed network.

A VLR (Visitor Location Register) corresponds to each MSC and contains temporary information about the mobile, information like mobile identification and the cell (or a group of cells) where the mobile is currently situated.


Regards
Jitendra Faye replied to prasad vjp on 28-Nov-11 05:59 AM
An SMS gateway is a Web site that allow users to send SMS messages from a Web browser to people within the cell served by that gateway. An SMS gateway can also serve as an international gateway for users with roaming capability, allowing SMS communication away from the home network.

foe detail about SMS gateway follow this link-

http://searchmobilecomputing.techtarget.com/definition/SMS-gateway
Reena Jain replied to prasad vjp on 28-Nov-11 06:14 AM
HI,

to send SMS either u have to buy any SMS gate way or u have to setup a GSM modem.

Using GM modem : http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx


API Integration (Application Programming Interface) of gateway4sms.com
u have to create a account in that site

The API works on GET and POST METHOD, and the url to be used is
http://bulksms.gateway4sms.com/pushsms.php

The variables to be used are:
username : your_username
passwordyour_password
senderAlphanumeric/Number SenderID for GSM Recipients
cdmasenderNumber SenderID for CDMA Recipients
toRecipient Number (one at a time)
messageActual Message to be sent

A sample HTTP API Call for Single Recipient would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello

A sample HTTP API Call for Single Recipient with Scheduling (4th January 2009 at 3:30 PM) would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello&shtime=04-01-2009-15-30

A sample HTTP API Call for Multiple Recipients would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=Hello

The reply will be a message id, seperated by comma.

A sample HTTP API Call for Sending UNICODE message would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=unicode message&unicode=1

The reply will be a message id, seperated by comma.

A sample HTTP API Call for Sending FLASH message would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=message&flash=1

The reply will be a message id, seperated by comma.

A sample HTTP API Call for Picture Messagese:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient&message=message&picture=1

Message would the hexcode of otb file (You should convert normal image file to otb file).

To fetch DLR use (Only one recipient DLR at a time):
http://bulksms.gateway4sms.com/fetchdlr.php?msgid=message_id

Messages with spaces/special characters like &, %, * etc. are to be url encoded.

A sample HTTP API Call for Balance Check:
http://bulksms.gateway4sms.com/balancecheck.php?username=your_username&password=your_password

A sample HTTP API Call to Request Sender id:
http://bulksms.gateway4sms.com/addsender.php?username=''&password=your_password&sender=your_sender&type=(gsm or cdma)
Example: http://bulksms.gateway4sms.com/addsender.php?username=''&password=your_password&sender=mysender&type=gsm

A sample HTTP API Call to delete scheduled messages:
http://bulksms.gateway4sms.com/deleteshedule.php?username=''&password=your_password&msgid=MyId1,MyId2,MyId3
*MyId1,MyId2,MyId3.... are the message id's.

A sample HTTP API Call to get your Senderids:
http://bulksms.gateway4sms.com/getsenderids.php?username=''&password=your_password