Generic SMS Gateway

21
1 CSCI 6838 Capstone Projects, Spring 2007, Team 6 CSCI 6838 Capstone Projects, Spring 2007, Team 6 Dang Nguyen – Huy Do – Tan Nguyen – Thang Nguyen Dang Nguyen – Huy Do – Tan Nguyen – Thang Nguyen Instructor: Dr. K. Yue, UH Clear Lake Instructor: Dr. K. Yue, UH Clear Lake Mentor: Dilhar De Silva, AtLink Communication Inc. Mentor: Dilhar De Silva, AtLink Communication Inc.

description

Generic SMS Gateway. for AtLink EVI. CSCI 6838 Capstone Projects, Spring 2007, Team 6 Dang Nguyen – Huy Do – Tan Nguyen – Thang Nguyen Instructor: Dr. K. Yue, UH Clear Lake Mentor: Dilhar De Silva, AtLink Communication Inc. Table of Contents. About AtLink Communication Inc. - PowerPoint PPT Presentation

Transcript of Generic SMS Gateway

Page 1: 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.

Page 2: Generic SMS Gateway

2

Table of Contents

About AtLink Communication Inc. Introduction on SMS system Project Information Application Design Specification Conclusion Project Demo References Questions and Answers

Page 3: Generic SMS Gateway

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

Page 4: Generic SMS Gateway

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.

Page 5: Generic SMS Gateway

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.

Page 6: Generic SMS Gateway

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

Page 7: Generic SMS Gateway

7

Project team members

Page 8: Generic SMS Gateway

8

Project Schedule

Page 9: Generic SMS Gateway

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

Page 10: Generic SMS Gateway

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/

Page 11: Generic SMS Gateway

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

Page 12: Generic SMS Gateway

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.

Page 13: Generic SMS Gateway

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

Page 14: Generic SMS Gateway

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

Page 15: Generic SMS Gateway

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

Page 16: Generic SMS Gateway

16

Source Code Functions

Store the connection parameters

Get the connection parameters

Call the connection methods with these parameters

Page 17: Generic SMS Gateway

17

User Interfaces

Login pageHome page Registration page

Reading page

Inbox page Group page Sending page

Help pageGroup detail page

Page 18: Generic SMS Gateway

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

Page 19: Generic SMS Gateway

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.

Page 20: Generic SMS Gateway

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/

Page 21: Generic SMS Gateway

21

Questions and Answers

Thank you !