SMS Based Applications: Behind the scene

21
SMS based Applications: Behind the scene Bhabishyat Bikram KC Anjesh Tuladhar Young Innovations

Transcript of SMS Based Applications: Behind the scene

Page 1: SMS Based Applications: Behind the scene

SMS based Applications: Behind the scene

Bhabishyat Bikram KCAnjesh TuladharYoung Innovations

Page 2: SMS Based Applications: Behind the scene

SMS?

Short Messaging Service

Page 3: SMS Based Applications: Behind the scene

Imagine sending same SMS to 100 people from your mobile phone ....

Page 4: SMS Based Applications: Behind the scene

Using SMS as Data

● SMS can be structured in a way that it represented data

● [string] [number] [string]....

Page 5: SMS Based Applications: Behind the scene

Why using SMS as Data?

● Ubiquitous● Accessible● Mobile Internet still an issue

Page 6: SMS Based Applications: Behind the scene

Frontline SMS

● Free and open source software● Can work without internet, only with cell phone

and computer

Page 7: SMS Based Applications: Behind the scene

Kannel

● Open Source Sms gateway.● Gateway between SMSC (smpp protocol) and

web application (http)● Works in linux environment.● Can handle thousands of requests.

Page 8: SMS Based Applications: Behind the scene

Kannel

● Kannel consists of three parts● Bearerbox ( common interface for sms and wep

services)● Smsbox ( interface for sms service)● Wapbox ( interface for wap service)● Different logs are maintained. ● e.g Bearerbox-access.log , smsbox-access.log

Page 9: SMS Based Applications: Behind the scene

● 2012-04-28 09:59:21 Receive SMS [SMSC:NTNepal5005] [SVC:] [ACT:] [BINF:] [FID:] [from:+9779841000000] [to:5005] [flags:-1:0:-1:0:-1] [msg:5:MS 14] [udh:0:]

● 2012-04-28 09:59:21 Sent SMS [SMSC:NTNepal5005] [SVC:default] [ACT:] [BINF:] [FID:] [from:5005] [to:+9779841000000] [flags:-1:0:-1:-1:-1] [msg:88:Thank you for voting .] [udh:0:]

Page 10: SMS Based Applications: Behind the scene

Integration with Telecom Operators

● VPN (using racoon)● Leaseline

Page 11: SMS Based Applications: Behind the scene

System

NTC

ncell

Smart Telecom

Kannel

Drupal based system

Vpn connections

Blackmyna.com

Lease line

UTL

Page 12: SMS Based Applications: Behind the scene

Push and Pull SMS

● Sms services : pull and push● Getting service as requested - pull● Services sent by server itself - push● Short codes or short numbers can be used for

SMS or MMS● Easier to read and remember.● Keywords are used to separate messages on

shared shortcodes.

Page 13: SMS Based Applications: Behind the scene

Drupal based MIS

● System to send and receive sms using web interface. ( blackmyna.com )

● Services provided :● Pull : Poll , Basicnews and couple of other

client based services. ● Push: General push, Scheduled push.

Page 14: SMS Based Applications: Behind the scene

Working of Drupal based MIS

Drupal core

Drupal custom modules

Custom Classes

Sms daemon

Scheduler

KannelPull

Push

User

Page 15: SMS Based Applications: Behind the scene

Not enough for extensions

● Not extensible, difficult to cope up with the specific needs of the client.

Page 16: SMS Based Applications: Behind the scene

API development

● Developed based on OneAPI standards.● OneAPI defines commonly supported web friendly

api that allows to expose mobile and other network operators capabilities to web.

● Provides API for developing systems for push and pull sms.

● Easy to use and easy to maintain.● Sms/1/smsmessaging/outbound?

senderAddress=4266&address=9841000000&message=check

Page 17: SMS Based Applications: Behind the scene

System extended via API

Kannel

API Third Party Software

Drupal based System

Page 18: SMS Based Applications: Behind the scene

National Immunization Programme

● In partnership with UNICEF and GoN Child Health Division

● For real time reporting via SMS by health workers

● www.nip.org.np

Page 19: SMS Based Applications: Behind the scene
Page 20: SMS Based Applications: Behind the scene

NIP: Workflow

Page 21: SMS Based Applications: Behind the scene

Thank you.