Hi Swadhin

Welcome - more in-line below

On Thu, 2019-09-26 at 23:09 +0530, Swadhin Kumar Dutta wrote:
> > > 1. I want to send sms from my application to my users
> > > irrespective of countries, like from India to USA, UK, Denmark,
> > > Kenya. In other words i want to use kannel as an international
> > > sms gateway. 
> > > 
> > > How can I achieve the same with kannel, It would be great help if
> > > someone can explain me in layman's term

First up just a note to be aware of any anti-spam legislation that may
be appropriate in the regions you are sending, etc - opt-n/out
requirements, etc. 

I'd recommend you check out the SMPP documentation here 
https://www.kannel.org/download/1.4.5/userguide-1.4.5/userguide.html#AEN1946

The bulk of my experience working with Kannel has been via the SMPP API
(connected to telco or aggregator SMSCs). Most of the work i have done
is local (relative to country) but for international you can have a
look for international SMPP providers .. for example (Google suggests).
https://www.smsglobal.com/smpp-api/ or other well known such as 
https://www.clickatell.com 

Caveat I don't work for either nor have I used these specifically -
Google just suggested them ;). 

> > 
> > 2. I would like to use my android phone or nokia sybian phone(Nokia
> > 105) as a modem to send sms. Kindly let me know the steps to use my
> > gsm phone as a modem. 

A good place to start looking at is 
https://www.kannel.org/download/1.4.5/userguide-1.4.5/userguide.html#AEN2345
 this is documented fairly well .. there's obviously many many options
which cannot be covered in full. There is trial and error here - others
on the channel may recommend devices they have had good success with. 

In short you can configure your phone or modem as a serial AT device.
An example config I had included the following config blocks..

...

group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB3
log-level = 0
speed=9600
keepalive = 10

# Modems - depends what SIM you have in the modem
group = modems
id = sierra_wireless
name = "Sierra Wireless USB Modem"
detect-string = "Sierra Wireless"
detect-string2 = "Model: C885"
message-storage = "SM"
enable-mms=true


> > 
> > 3. Phone number sends sms to the gateway and gateway need to pass
> > the message to the destination phone number. How can i send and
> > receive messages using HTTP POST and HTTP GET, with kannel sms
> > gateway/WAP. 
> 

For sending

If we have the smsbox 'sendsms-port' configured to be 13013 and

group = sendsms-user
username = sw
password = ws

A send request might be generated from the command line a-la

wget -q -O - '
http://localhost:13013/cgi-bin/sendsms?user=sw&pass=ws&to=3141&text=ping'

For receiving ... see the documentation for sms-service configuration
blocks

Hope that helps.
> 
> 
> .Please find attached modified kannel.conf file
> -- 
> --Thanks n Regards :-)
> Swadhin Kumar Dutta
> Kolkata
> HP. (+91) 9748492385


Reply via email to