1823063 Members
3197 Online
109645 Solutions
New Discussion юеВ

Kannel Send SMS

 
SOLVED
Go to solution
Neostatic_1
Regular Advisor

Kannel Send SMS

Hi ALL

i'm facing some issues with kannel
i have configured the .conf file
My question is how can i send sms via kannel ..?

thanks
Regards Neo
6 REPLIES 6
Matti_Kurkela
Honored Contributor

Re: Kannel Send SMS

First, you will need one of the following:

A) a mobile phone or a GSM modem that can be commanded to send SMSs using AT commands, connected to the system that runs Kannel (the do-it-yourself solution)

or

B) a connection to a mobile phone company's SMS Centre that allows you to use one of the following protocols: (the enterprise solution)
- CIMD 1.3
- CIMD 2.0
- SMPP 3.4
- UCP/EMI 4.0
- SEMA SMS2000 OIS (requires a Radiopad or X.25 connection)
This is likely to require a specific agreement with the mobile phone company, detailing exactly what you must use as a sender information, and how many messages you are allowed to send (per minute/hour/day), and how much you must pay for this capability.

Once all the necessary configuration is completed, you can send SMSs by following the procedure described in chapter 6 of the Kannel User's Guide:

http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN4322

This is designed primarily as a machine-to-machine interface: to make it more convenient to human users, you might want to create a Web form or a simple application that will present a user-friendly interface.

MK
MK
Neostatic_1
Regular Advisor

Re: Kannel Send SMS

Hi Matti
thanks for the quick reply
it's my first instyallation of kannel

im' using the seconde configuration
a connection to a mobile phone company's SMS Centre using SMPP

Can you please take a look to the kannel.conf and see if it's the right configuration that will help me alot Matti

Regards
Matti_Kurkela
Honored Contributor
Solution

Re: Kannel Send SMS

It's been a long time since I did any work with Kannel... but I can read the documentation :)

http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN1624

I see a few possible errors in the "smsc" configuration group:

1.) "send-url" is used with smsc type "http" only, not with smsc = smpp.

2.) "system-type" is something you should verify with your mobile phone operator's technical people. The documentation suggests something like "VMA" would be expected for this.

But if your mobile phone operator specifically told you to use "kannel" here, it's probably OK. (You have to provide here something that the operator's SMSC is configured to recognize.)

3.) I don't see either "transceiver-mode=true" or "receive-port= ". Based on the documentation, I would have expected to see one or the other. If you don't need the receive channel, set "receive-port=0" to shut down the receive side.

---------

http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN4007

You would also have to configure at least one SendSMS-user:

group = sendsms-user
username = neostatic
password = R3@11y53krit

-----------

http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN3309

The documentation also says you should always define at least the default SMS service. If you don't plan to actually use Kannel to receive any SMS messages, this simple configuration straight from the documentation's examples should be enough:

group = sms-service
keyword = default
text = "No action specified"

MK
MK
Neostatic_1
Regular Advisor

Re: Kannel Send SMS

Hi Matti

there's one point i didn't understand

1.) "send-url" is used with smsc type "http" only, not with smsc = smpp.
where do i add smpp type in the configuration file ..?

can you Please matti recheck the .conf file i did some modification as you mentionned

Thanks alot for your support

Regards
Neo
Matti_Kurkela
Honored Contributor

Re: Kannel Send SMS

You already have this:

> # SMSC SMPP
> group = smsc
> smsc = smpp

It means your SMSC connection uses the SMPP protocol. Based on what you've told, this is OK.

You also have this:

> send-url = "http://localhost:7007/cgi-bin/sendsms

This line is not necessary as your SMSC connection uses SMPP, not HTTP. Remove this.

It may be harmful, or simply useless. But if you don't remove it now, it will confuse you when you need to modify this configuration in the future.

A "send-url" configuration item can be used only with "smsc = http".

A "smsc = http" configuration would be used (for example) if your operator would not allow you to connect directly to their SMSC, but required you to connect your little Kannel installation to the operator's bigger SMSGW set-up.

(A SMSGW configuration mistake that causes messages to be sent in an infinite loop
+ a direct connection to a SMSC
+ an old SMSC that does not have message flood protection
= the phone company has a lot of angry customers.)

MK
MK
Neostatic_1
Regular Advisor

Re: Kannel Send SMS

Hi Matti


Thanks for your precious time and advices that helped me alot

i has a question ,
how do i send an sms and were do i write the message and enter the number ,

thanks alot

Regards Neo