Tag Archives: send-sms

Railway ticket booking through SMS in India… When in Pakistan?

15 Jun

I am quoting BBC here. Now you can book your ticket by simply sending an SMS to specific number in India. We in Pakistan can also work in this field to increase the use of SMS for the improvement of the living standards of a common man.

بھارت میں ایس ایم ایس سے ٹرین کی بکنگ

بھارت میں ریل ٹکٹ کے لیے اب آپ کو لمبی قطار میں لگنے کی ضرورت نہیں ہے کیونکہ اب موبائل فون سے صرف ایک ایس ایم ایس بھیج کر ٹکٹ بُک کروایا جا سکتا ہے۔

بھارت میں موبائل فون کے بڑھتے رواج کو دیکھتے ہوئے بھارتی ریلوے کیٹرنگ اور سیاحت کارپوریشن یعنی (آئی آر سی ٹی سی) نے ٹکٹ ایس ایم ایس کے ذریعے بک کروانے کا منصوبہ متعارف کروایا ہے۔یکم جولائی سے یہ منصوبہ نافذ العمل ہو گا۔

آئی آر سی ٹی سی کے ایک سینیئر افسر نے بھارتی خبر رساں ادارے پی ٹی آئي سے کہا کہ یہ اقدام ماحول دوست بھی ہے کیونکہ اس میں کاغذ کی بچت کی جا سکے گی۔

موبائل کے ایک خاص نمبر پر ایس ایم ایس بھیج کر بکنگ کروائی جا سکتی ہے۔ اس نمبر کا اعلان جلد کیا جائے گا۔

سفر کے دوران ٹکٹ کی دستاویز ساتھ رکھنے کی ضرورت نہیں ہے اور بکنگ سینٹر کے جوابی پیغام کو ہی سفر کے لیے قابل قبول سمجھا جائے گا۔

موبائل سے ریل ٹکٹ بک کرانے کے لیے اپنے موبائل نمبر اور بینک اکاؤنٹ کو آئی آر سی ٹی سی میں رجسٹرڈ کروانا ہوگا۔

بھارت میں ریل سب سے بڑا شعبہ ہے

ریلویز کے اہلکار نے کہا کہ ایس ایم ایس بکنگ کا عمل انتہائی آسان ہے اور مسافر کو ایس ایم ایس باکس میں اپنے سفر کی تفصیلات لکھ کر بھیجنی ہوگی۔

اس کے بعد ایس ایم ایس بھیجنے والے کو ایک ٹرانزیكشن شناخت ملے گی جس کے بعد اسے مزید ایک ایس ایم ایس بھیجنا ہوگا جس میں اسے ایم ایم آئي ڈی اور پاس ورڈ فراہم کرانا ہوگا۔

ٹکٹ بکنگ کی یہ سہولت تمام موبائل سروس فراہم کرنے والی کمپنیوں کے لیے دستیاب ہوگی اور ہر ایس ایم ایس کے لیے تین روپے لیے جائیں گے۔ اس کے علاوہ 5000 روپے تک کی ٹکٹ کے لیے پانچ روپے اور اس سے زیادہ رقم کے لیے دس روپے گیٹ وے پیمنٹ کے طور پر ادا کرنا ہوں گے۔

This    article is copied from BBC Urdu. Credit of this information goes to BBC. I am just sharing this information.

Advertisements

How to install/configure Kannel(SMS Gateway) for sending SMS from your computer?

10 Jan

Kannel Installation and Configuration as SMS gateway Server

Installation

  1. Download latest version of Kannel http://www.kannel.org/download.shtml
  2. Unzip it into some directory
  3. Before installation of Kannel we have to install a dependency libxml2. To install libxml2 we can download it from the following link. ftp://gd.tuwien.ac.at/pub/libxml/
    • After extracting the package cd into the directory where it is extracted.
    • Type ./configure
    • make
    • make install
    • to check whether the installation is successful or not type this command: make tests
  4. After installation of libxml2 now we will be able to install the Kannel. Now repeat the above  steps which we repeated for the libxml2 installation
    • cd into directory where Kannel is unzipped and then type the following commands
    • ./configure
    • make
    • make install
  5. Now Kannel is installed and ready for the configuration

Configuration

  1. Kannel has three parts bearerbox, smsbox and wapbox. We will need only two bearerbox and smsbox as we are going to setup it as SMS gateway server. Bearerbox is the main queue and smsbox handles the smscs.
  2. Now we need configuration of each beaerbox and smsbox to run the Kannel according to device attached. Configuration of bearerbox and smsbox is written into a configuration file sometimes but not necessarily named as ‘smskannel.conf’.
  3. How to find the ‘smskannel.conf’? Open the terminal and type this command > locate smskannel.conf. Now you the open the ‘smskannel.conf’ by the path returned by the command.
    • After opening the ‘smskannel.conf’ you will see different types of groups there. E.g. Core group, smsc group, modem group and smsc service groups.  You can refer Kannel installation guide for further information.
  4. By default bearerbox  and smsbox installation files lies in /usr/local/sbin
  5. Now copy the ‘smskannel.conf’ into /usr/local/sbin
  6. Modem which will be used with Kannel should support ‘AT+CNMI’ command otherwise modem will not work with Kannel.
  7. We can check if our modem is detected or not by this command > ls /dev . If modem is being detected then we will see ttyACM0 / ttyUSB0 in result.
  8. To check whether’ AT+CNMI’ command is supported on the modem or not we have to test it through serial port. In Linux we can open our device through serial port using ‘minicom’.

1 3 4 52 3 4 5

If get error in return then you cannot use that modem with Kannel and if you get out put something like above then you can use that modem with Kannel.

  • Now run the bearerbox by this command
    •  bearerbox  smskannel.conf
  • Now run smsbox by this command opening a new terminal and going into directory
    • smsbox smskannel.conf
  • smskannel.conf for Motorola Razer V3 is given below

*******************************smskannel.conf starts here********************************

# CORE

#

# There is only one core group and it sets all basic settings

# of the bearerbox (and system). You should take extra notes on

# configuration variables like ‘store-file’ (or ‘store-dir’),

# ‘admin-allow-ip’ and ‘access.log’

group = core

admin-port = 13003

smsbox-port = 13004

admin-password = bar

#status-password = foo

#admin-deny-ip = “”

#admin-allow-ip = “”

log-file = “/usr/local/Log/kannel.log”

box-deny-ip = “*.*.*.*”

box-allow-ip = “127.0.0.1”

access-log = “/usr/local/Log/access.log”

#———————————————

#—————–Modem Group————

group = modems

id = motorola

name = “ATI 144”

detect-string = “Motorola”

init-string = “AT0”

init-string= “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

init-string = “AT+CNMI=3,2,0,0,0”

init-string = “AT+CMEE=2;+CNMI=3,1,0,0,0”

reset-string = “ATZ”

speed=115200

need-sleep = true

keepalive-cmd = “AT+CBC;+CSQ”

enable-mms = true

message-storage=”SM”

#——————————————-

# SMSC CONNECTIONS

#this is for Motorola Razer V3i

group = smsc

smsc = at

smsc-id = Motorola Razer V3i

modemtype = motorola

device=/dev/ttyACM0

my-number = 00923348648921

sms-center= 00923330005150

connect-allow-ip = 127.0.0.1

log-level = 0

#———————————————

# SMSBOX SETUP

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13013

global-sender = 13013

#sendsms-chars = “0123456789 +-”

#log-file = “/tmp/smsbox.log”

#log-level = 0

#access-log = “/tmp/access.log”

#———————————————

# SEND-SMS USERS

#

# These users are used when Kannel smsbox sendsms interface is used to

# send PUSH sms messages, i.e. calling URL like

# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar…

group = sendsms-user

username = tester

password = foobar

max-messages=3

#user-deny-ip = “”

#user-allow-ip = “”

#———————————————

# SERVICES

group = sms-service

keyword = nop

text=”Working nop key word searched”

# There should be always a ‘default’ service. This service is used when no

# other ‘sms-service’ is applied.

#group = sms-service

#keyword = sub

#get-url=”http://10.3.20.241:8080/_PakAgriTech/subscribe.jsp?#sender=%p&text=%a”

group = sms-service

keyword = rgs

get-url=”http://10.3.20.241:8080/_PakAgriTech/register.jsp?sender=%p&text=%a”

group = sms-service

keyword = default

catch-all = yes

max-messages=3

#text=”Mahtab Rasheed”

get-url=”http://10.3.20.241:8080/_PakAgriTech/defaultRecv.jsp?sender=%p&text=%a”

*******************************smskannel.conf ends here*********************************

Frequently Asked Question

Question: After the installation of the gateway, do I have to connect each
mobile phone / sim of the network i want to send to?
Answer:
You need to connect a GSM modem/ mobile phone containing a SIM.  Now Kannel will use that SIM to send SMS automatically. You don’t need additional SIMS to send SMS to other networks.
Question: Will I be charged for any message I send using this platform?
Answer:
Yes you will be charged as regular SMS cost. Kannel is the only gateway who can do the job automatically through your PC instead of send it manually from your mobile phone.

How to send SMS from your Computer?

2 Nov

Today I will tell you a  very cheap method to send SMS from your computer.

  • First of all you will need a mobile which you connect with your computer using data cable.  Actually we will be using mobile phones built in GSM modem (You can also purchase separate GSM Modem from market).

I have used Motorola Razor V3

You can purchase Motorola Razor V3 at much low cost ($8-10) in Pakistan.

  • Second thing you will need is SMS-Gateway. It is a software application which automatically handle the sending and receiving  of SMS’s. Eventually SMS will be routed through GSM networks.

Popular SMS-Gateways are

Kannel (Linux-Open Source), Ozeki (Windows-Licensed), NowSMS (Windows-Licensed) and many more.

SMS Gateway which I have used is Kannel. Kannel is anopen source Linux based SMS Gateway. It means I have used Linux

operating system to configure SMS Gateway with my mobile phone.

  • Third thing you need is to connect your mobile through data cable with your computer.

If your are a beginner it will be enough for today. I will be explaining more in the next article.