Generic SMS Gateway
description
Transcript of Generic SMS Gateway
1
CSCI 6838 Capstone Projects, Spring 2007, Team 6CSCI 6838 Capstone Projects, Spring 2007, Team 6Dang Nguyen – Huy Do – Tan Nguyen – Thang NguyenDang Nguyen – Huy Do – Tan Nguyen – Thang Nguyen
Instructor: Dr. K. Yue, UH Clear LakeInstructor: Dr. K. Yue, UH Clear LakeMentor: Dilhar De Silva, AtLink Communication Inc.Mentor: Dilhar De Silva, AtLink Communication Inc.
2
Table of Contents
About AtLink Communication Inc. Introduction on SMS system Project Information Application Design Specification Conclusion Project Demo References Questions and Answers
3
About AtLink Communication Inc.
AtLink Communications is the leading provider of Voice Process Automation technology in Houston, Texas.
AtLink product: EVI – Enterprise Voice Integration Is a voice oriented Process Management Environment Combines classic Process Management with VOIP, IVR
and IP-PBX functions to manage and optimize communication processes
Handles all voice and data connections for all mediums: Web, email, phone, SMS, IM
Support the definition and use of automated rules in communication and business activities
Provides most of the basic Process Management functionalities: Grouped Organization modelling, Roles & Custom Behavior
Provided as Web Services Website: http://www.atlinkcom.com
4
The benefit for AtLink from the Project The modern user uses many different modes of
communications (phone, email. SMS, IM...) AtLink's EVI that automates communication process
has the need to support all these communication modes and give the power to the user to choose the preferred communication medium depending on personal needs.
AtLink's EVI currently has no support for SMS. Building and SMS module will add tremendous value to it's current offering to unostentatiously communicate between it's users.
The SMS module architectured as Web Services will allow AtLink to easily integrate the module into EVI. In addition the SMS module built to support any SMS gateway will provide AtLink the flexibility to pick the best SMS provider that make best business sense.
5
Project Goals
Support the latest protocols in SMS and adhere to best software development processes/practices when developing the
module Create a SMS application that will provide
productive services that are based on SMS to AtLink's EVI.
Architecture the application to be able to integrate into AtLink's EVI easily.
6
Project Scope & Requirements
This project requires building a prototype SMS client that can integrate with EVI Communication profile and a number of hosted SMS gateway.
The prototype is built in form of Web Services. The project also require developing a Web application that use the prototype. Those Web services will later be used for EVI SMS integration.
The prototype SMS client must meet the following requirements: Support the capability to bind with any open SMS gateway
by customizing required parameters. Be able to connect to any SMTP, HTTP and SMPP SMS
gateways Be able to dynamically change the binding to any gateway
during run-time Support Two-Way SMS capabilities. Cover all SMS network in US and EU Be able to integrate with EVI Communication profiles
7
Project team members
8
Project Schedule
9
How SMS system works
SMS CenterSMS Center
SMS ApplicationSMS Application
Gateway
Gateway
(SMSC) is responsible for handling the SMS operations of a wireless network
SMS gateway can be set up to handle the connections to the SMSCs with different protocols
Provide SMS applications that can send SMS messages to cell phones from different carriers using HTTP, SMTP or SMPP protocols
Send SMS messages
10
Underlying Protocols
SMS
HTTP
SMTP
SMPP
• Is a telecommunications industry protocol for exchanging SMS messages between SMS peer entities• Based on pairs of request/response PDUs (protocol data units, or packets) exchanged over OSI layer 4 • SMPP PDU format
•More Detail: http://opensmpp.logica.com/CommonPart/Documentation/Documentation.htm
SCA Service Centre Address
PDU
Type
Protocol Data Unit Type
MR Message Reference
DA Destination Address
PID Protocol Identifier
DCS Data Coding Scheme
VP Validity Period
UDL User Data Length
UD User Data
MTI Message Type Indicator
•SMS is a telecommunications protocolthat allows the sending of short text message•SMS protocol uses the following PDU •types
- SMS-DELIVER - SMS-DELIVER-REPORT - SMS-SUBMIT - SMS-SUBMIT-REPORT - SMS-STATUS-REPORT - SMS-COMMAND
•More detail: •http://www.activexperts.com/activsms/sms/technical/
11
How we chose SMS gateway providers?
Cost for sending SMS messages Network coverage Protocols or interfaces supported API documents Number of free SMS messages or credits 2-way SMS messaging Support service
12
Chosen SMS gateway providers
Clickatell (http://www.clickatell.com)Clickatell is the world's leading provider of bulk SMS messaging services and SMS Gateway connectivity with reliable coverage to 578 networks in 192 countries worldwide.
SMS2Email (http://www.sms2email.com)Offer services include bulk messaging through a number of routes offering high reliability along with different pricing options.
MXTelecom (http://www.mxtelecom.com)MX Telecom offers an easily accessed Gateway to voice and data messaging services, including 2-Way SMS and Premium SMS, Services and Internet and TV related solutions.
Logica (http://opensmpp.logica.com) The Simulator is an application for near-to-live testing of your
SMPP applications without need of access to real SMSC. The application behaves as a real SMSC with SMPP interface, your application can bind to it, send messages, unbind etc., however nothing will get delivered anywhere as all the responses are only made-up by the Simulator.
13
Web Service
+
My SQL DatabaseEVI
Profile
Mail Server
SMS Center SMS Center SMS Center SMS Center
SMSCProtocol 1
SMSCProtocol 2
SMSCProtocol 3
SMSCProtocol 4
HTTP/HTTPS
SMSWeb Application
SMS gateway
SMS gateway
Development Part SMPP
Profile
Sessions
SMTP
Integrate to
Application ArchitectureProvide the service for gateway and SMS application to send and receive SMS messages under JAXWS
Running in the server-side, it handles requests from SMS users for sending and receiving SMS message
Contain the information of customers
Provide SMTP service to send SMS messages to the mail system
14
Use Case
User
Register
Send SMS Message
Reply SMS Message
Administrator
Create User
Manage User
Configure System
Manage SMS GatewayAccount
Send back SMSMessage
Mobile
Login
Reply SMS Message
Create Profile
SMS Application
15
Database Design
tbl_Contact
PK ContactID
UserName Password FirstName LastName Address Company
tbl_ContactPhone
FK1 ContactID PhoneNumber Description ServProvider IsPrimary IsExpose
tbl_ContactMail
FK1 ContactID MailID Description IsPrimary IsExpose
tbl_Group
PK GroupID
FK1 ContactID GroupName Description
tbl_GroupDetail
PK GroupDetailID
FK1 GroupID Name Phone Description
tbl_Message
PK MessageID
MessageType Subject Content Date SenderFK1 ContactID
16
Source Code Functions
Store the connection parameters
Get the connection parameters
Call the connection methods with these parameters
17
User Interfaces
Login pageHome page Registration page
Reading page
Inbox page Group page Sending page
Help pageGroup detail page
18
Project Demo
Test Case 1: User registration User authentication
Test Case 2: Personal profile creation Personal profile management
Test Case 3: SMS services (sending or receiving SMS) Protocol switching demo
19
Conclusions
The application meets all the requirements required by AtLink Communication Inc. The SMS Spot application has been developed to
allow users to send and receive SMS messages. The application uses two SMS gateways which
are Clickatell SMS Gateway for SMTP and HTTP/HTTPS protocols and Logica simulation gateway for SMPP protocol. It has successfully sent and received the messages to and from mobile phone.
However, to deploy application, AtLink Communication Inc. needs to buy enough credit to use SMPP protocol so that the application can run with real SMPP gateway providers.
20
References
http://www.developershome.com/sms/ http://www.clickatell.com http://www.sms2email.com http://www.mxtelecom.com http://www.smsforum.net http://www.wikipedia.org http://www.atlinkcom.com http://www.protocols.com/pbook/tcpip9.htm http://opensmpp.logica.com/CommonPart/
Documentation/Documentation.htm http://emctone.tripod.com/html/smspdu.html http://www.activexperts.com/activsms/sms/technical/
21
Questions and Answers
Thank you !