Elton

sms-service if for telling kannel what to do with MO.  In your case,
it will send "test"  to any incomming message

You need to use get-url/exce/etc in your sms-service definition in
order to tell kannel "execute/call" an specific script an do an
action.

example:

group = sms-service
keyword = default
get-url = "http://localhost/sms/get-message.php?from=%P&message=$a";
catch-all = true

This will tell kannel to call the script on get-url url, pass it
parameters %P & %a. At call, get-message will do whatever you coded
inside ie generate an specific response, store in DB, etc.

See manual for a full list of variables you can pass to your script.

You can create as many sms-services you want, kannel will choose wich
to use based on keyword. Keyword is always the first word of the
message. Nevertheless, if you are going to change this frequently, it
is better to discrimine that inside your script since kannel needs to
be restarted if config file changes.

Hope Helps

Alvaro




|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com



On Tue, Mar 3, 2009 at 9:27 AM, Elton Hoxha <elt...@gmail.com> wrote:
> Hi Rodrigo,
>
> I`m reading the guide several times, and what I want now its the basic
> service, just to send and receive MO-MT SMS using Kannel. I have set the
> SMPP connections already and there is no problem with binding issues between
> kannel and SMPP Server.
> I`m able to send from tha application to mobile, but I cannot vice versa,
> from mobile to application.
>
> In the guide at the SMS-SERVICE configuration section, it writes:
>
> Now that you have an SMS center connection to send and receive SMS messages
> you need to define services for incoming messages
>
> But after many many many tries, im not able to receive
>
> Here is the conf file. All the blocks are understandable except SMS-SERVICE
> one that looks a bit ambigous.
>
> group = core
> admin-port = 13000
> smsbox-port = 13002
> admin-password = bar
> log-file = "/tmp/kannel.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> access-log = "/tmp/access.log"
>
> group=smsc
> smsc=smpp
> smsc-id=internal
> interface-version=34
> host=10.234.252.80
> port=3700
> system-id=demirbim
> smsc-password=demirbim
> system-type=demirbim
> transceiver-mode=1
> address-range=999998
>
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13014
> log-level = 0
>
> group = sendsms-user
> username = b
> password = b
>
> group = sms-service
> keyword = default
> text = "test"
> faked-sender = 999998
> catch-all = true
>
>
> Thanks
>
> On Tue, Mar 3, 2009 at 3:18 PM, Rodrigo Cremaschi
> <rodrigo.cremas...@gmail.com> wrote:
>>
>> HEllo Elton,
>>
>> The userguide is not perfect, it's not complete, and it's not foolproof.
>> You are right.
>> But take some more time reading it, explore the web, use Google, write
>> and test some configurations for yourself, read the mail archives and
>> you will be rewarded with a working Kannel.
>> If, in spite of all this, you find yourself in trouble to make Kannel
>> work, come back with your config files, log excerpts and the list will
>> try to help you.
>>
>> Best regards,
>> Rodrigo.
>>
>> On Tue, Mar 3, 2009 at 12:03 PM, Elton Hoxha <elt...@gmail.com> wrote:
>> > I have it but its confusing a bit
>> >
>> > On Tue, Mar 3, 2009 at 2:59 PM, Davor Spasoski
>> > <davor.spaso...@cosmofon.com.mk> wrote:
>> >>
>> >> Do you have a manual?
>> >>
>> >> ________________________________
>> >>
>> >> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
>> >> Behalf
>> >> Of Elton Hoxha
>> >> Sent: Tuesday, March 03, 2009 2:44 PM
>> >> To: users@kannel.org
>> >> Subject: SMS-SERVICE
>> >>
>> >>
>> >>
>> >> Hi,
>> >>
>> >> Can anyone please explain me the functionality of this group? I read
>> >> the
>> >> guide already but again I have some ambiguities.
>> >> What the keyword parameter is used for?
>> >> The text parameter, is it used for predefined reply when the sender
>> >> sends
>> >> a SMS to a voting service for example.
>> >>
>> >> Please anyone explain with few words these parameters?
>> >> send-url, get-url, dlr-url
>> >>
>> >> Thanks
>> >>
>> >> COSMOFON - Mobile Telecommunications Services - A.D. Skopje
>> >> _______________________________________________________________
>> >> This e-mail (including any attachments) is confidential and may be
>> >> protected by legal privilege. If you are not the intended recipient,
>> >> you
>> >> should not copy it, re-transmit it, use it or disclose its contents,
>> >> but
>> >> should return it to the sender immediately and delete your copy from
>> >> your
>> >> system. Any unauthorized use or dissemination of this message in whole
>> >> or in
>> >> part is strictly prohibited. Please note that e-mails are susceptible
>> >> to
>> >> change. COSMOFON A.D. Skopje shall not be liable for the improper or
>> >> incomplete transmission of the information contained in this
>> >> communication
>> >> nor for any delay in its receipt or damage to your system.
>> >
>
>

Reply via email to