sms-service routing..

2005-01-03 Thread Amol Patwardhan








Hi All,





I want to setup multiple SMSC connections in my
Kannel gateway. I have two smsc connections for it each associated to a
different short code.

I tried to follow the instructions from the user
guide document. Both the in coming and out going messages are working. But the message
routing

is not working for me.

I have created 2 sms-service groups each for one smsc
short code and another default sms-service group. But I am not able to understand
the

keyword parameter to be supplied to each sms-service.
I cannot understand the following description of the parameter from user guide -



keyword (m) word   

Services
are identified by the first word in the SMS. Each `%s' in the URL corresponds
to one word in the SMS message. Words are separated with spaces. A keyword is
matched only if the number of words in the SMS message is the same as the
number of `%s' fields in the URL. This allows you to configure the gateway to
use different URLs for the same keyword depending on the number of words the
SMS message contains. The keyword matches in non-case sensitive manner, which
means you don't have to use aliases to handle different cased versions of your
keyword.



 So
can any of you kannel users help me. If anyone can give me an example
kannel.conf file for multiple smsc setup then it would be very great.

Thanks in advance.



Regards,

Amol Patwardhan.

Developer.

Arabian Network Information Services W.L.L






Disclaimer: The information contained in this message is for the intended addressee only and may contain confidential and/or privileged information. If you are not the intended addressee, please delete this message and notify the sender; do not copy or distribute this message or disclose its contents to anyone. Any views or opinions expressed in this message are those of the author and do not necessarily represent those of Arabian Network Information Services or of any of its associated companies. No reliance may be placed on this message without written confirmation from an authorised representative of the company.






Re: downgrade from 1.4.0 to 1.3.2

2005-01-03 Thread Aarno Syvänen
Why you want to do that ? Or, what is the bug in 1.4.0 ?
Aarno
On 31.12.2004, at 07:17, Willy Mularto wrote:
Guys, any of you experience downgrade kannel?
Regards
Willy




Re: [Kannel-Users] dlr status 1.4.0

2005-01-03 Thread Aarno Syvänen
Instead of quoting, you can http escape the dlr url. This may be safer, 
because
your unix shell requires its own escapes.

Aarno
On 31.12.2004, at 07:20, Willy Mularto wrote:
Make sure the declaration is all on a single line with no line breaks. 
--  All in one stright line
Also, if you use a double-quote () at the beginning of the
value, make sure you close the double-quote at the end of the value. 
-- No problem here (double quoted both at begin and end)
I have no idea of what happen here, because the URL is self is 
browseable via browser :(, thank you for the reply

Regards
Willy




Re: downgrade from 1.4.0 to 1.3.2

2005-01-03 Thread Willy Mularto
When I use 1.3.2 the messages are delivered to the handphone. But since I 
upgrade to 1.4.0 not all messages are delivered, the log on smsbox and 
bearerbox are said that the message already sent but they never arrived to 
the handphone. Please browse http://202.153.129.68/sangprabv/kannel.conf 
that's my kannel.conf, and it workings well with 1.3.2. Below is my 
bearerbox-access.log:
Receive SMS [SMSC:1234] [SVC:] [ACT:] [BINF:] [from:+6285590001xx] [to:3665] 
[flags:-1:0:-1:0:-1] [msg:21:Polydm 3100095 siem55] [udh:0:]
Sent SMS [SMSC:1234] [SVC:kannel] [ACT:] [BINF:] [from:1234] 
[to:6285590001xx] [flags:-1:1:-1:-1:31] 
[msg:81:01060403AE81EA02056A0045C60C033230322E3135332E3132392E36382F6C6F6769632F696E6465782E7068703F69643D30343132333031343430303434353900010344756E69614D6F62696C65000101] 
[udh:7:0605040B8423F0]
DLR SMS [SMSC:1234] [SVC:kannel] [ACT:] [BINF:] [from:1234] 
[to:6285590001xx] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]

Regards
Willy



post-url

2005-01-03 Thread Real World

hi friends ,

i'm bit confused about post-url. can any body help or guide me to write a php script to send sms via default service ?
This php script supposed to be a Post- URL .


Thanx in advance
Mr. Bee
		Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more.

Re: post-url

2005-01-03 Thread Davy Chan
**Date: Mon, 3 Jan 2005 03:43:46 -0800 (PST)
**From: Real World [EMAIL PROTECTED]
**Subject: post-url
**To: Kannel users@kannel.org
**
**hi friends ,
** 
**i'm bit confused about post-url. can any body help or guide me to write a 
php script to send sms via default service ?
**This php script supposed to be a Post- URL .
** 
** 
**Thanx in advance
**Mr. Bee

Search the kannel user mailing list.  Keywords should be:
  post-url, HTTP_POST, X-Kannel-To, X-Kannel-Coding

You will see explicit instructions and examples on how to
use the the post-url as well as the exact information passed
during the HTTP interaction.

See ya...

d.c.



Smart Messaging

2005-01-03 Thread Ghost
Hi,

Can Kannel be used for Smart Messaging Systems? If yes, can someone give me a pointer please.

Thank you.
Sometimes it rains on the just. I believe that.Sometimes it rains on the unjust. I believe that too.Sometimes it just rains,Neither God nor belief nor justice has anything to do with it.The great thing about suicide is that it is not one of those things you have to do now or you loose your chance.  I mean, you can always do it later.
		Do you Yahoo!? 
The all-new My Yahoo! – Get yours free! 
 
 
 


Kannel as a Virtual SMSC

2005-01-03 Thread Fréderic Kinnaer






 Hi all,

I'm now searching for like the whole day, and I really can't find the
problem.
I want to create a "real" sms center (what are the differences
anyways??), so I can change my phone's sms
center setting into this mobile number.
I'm connected with a gsm modem
(wavecom), and it works fine.

This is my config:

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = h34vystuff
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "/tmp/kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

# SMSC CONNECTIONS

#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 1
#connect-allow-ip = 127.0.0.1
group = smsc
smsc = at
modemtype = wavecom
device = /dev/ttyS0
speed = 115200
#pin = 2345

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "access.log"

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

# SERVICES

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# there should be default always

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


What am I doing wrong? My mobile phone tells me 'check operator services' (nki 3510i) when I want to send sms using this number as sms center.

I'm running kannel this way:
./bearerbox ~/smskannel.conf
./smsbox ~/smskannel.conf
(in screens)

Bearerbox gives me upon initialisation:
2004-12-22 17:20:30 [31629] [6] INFO: AT2[/dev/ttyS0]: AT SMSC successfully opened.

I also don't get any logs that mobile numbers are trying to connect to the phone to send sms.

Any help VERY much appreciated!
-Frderic









Re: post-url

2005-01-03 Thread Real World
thanx for the reply , let me ask some questions ?
I have defined default service for post url . Normally i can send out sms via web browser.

1. I need to specify a service for post url . do i have to write a script/code ?
2. without writing any code cant i try with just a URL ? with help of Parameters (Escape Codes )

Actually still i cant get exact idea of POST URL . plz dont think , i'm bothering u all , plz help me

thanx
Julien Buratto [EMAIL PROTECTED] wrote:
Real World wrote: hi friends ,  i'm bit confused about post-url. can any body help or guide me to write  a php script to send sms via default service ? This php script supposed to be a Post- URL .   Thanx in advance Mr. Bee   Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more.  Try to fopen("http://your_kannel_host/page.cgi?variables","r") and print the chars you get back.J
		Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: post-url

2005-01-03 Thread Davy Chan
**Date: Mon, 3 Jan 2005 19:56:32 -0800 (PST)
**From: Real World [EMAIL PROTECTED]
**Subject: Re: post-url
**To: Julien Buratto [EMAIL PROTECTED], Kannel users@kannel.org
**
**thanx for the reply , let me ask some questions ?
**I have defined default service for post url . Normally i can send out sms 
via web browser.
** 
**1. I need to specify a service for post url . do i have to write a 
script/code ?
**2. without writing any code cant i try with just a URL ? with help of 
Parameters (Escape Codes )
** 
**Actually still i cant get exact idea of POST URL . plz dont think , i'm 
bothering u all , plz help me
** 
**thanx
**
**
**Julien Buratto [EMAIL PROTECTED] wrote:
**Real World wrote:
** hi friends ,
** 
** i'm bit confused about post-url. can any body help or guide me to write 
** a php script to send sms via default service ?
** This php script supposed to be a Post- URL .
** 
** 
**
**Try to fopen(http://your_kannel_host/page.cgi?variables,r;) and print 
**the chars you get back.
**
**J

Answer to Question 1)

A post-url is part of the sms-service delcaration.  This means that
the HTTP_POST will occur when an MO SMS (SMS coming from an enduser
sending an SMS to your service) reaches the smsbox.

Assume that the user (phone number: +1 333 555 9876) created an
SMS with the content:
  weather nyc
He then sends the SMS to the phone number: +1 222 555 1234. When the
message is sent to that phone number, it will be routed to your
connection (maybe because the you have an agreement between you
and the operator to forward the SMS to you OR maybe that number is
associate with the SIM you are using inside the GSM modem you
setup as a virtual SMSC).

The SMS is sent to your bearerbox.  The bearbox then forwards
it to your smsbox.

The smsbox will receive the SMS, notice that you have a default
service set like this:
  group = sms-service
  name = myservice_via_post
  keyword = default
  catch-all = true
  post-url = http://192.168.16.1/cgi-bin/sms-from-user;

The smsbox will make an HTTP_POST to the host 192.168.16.1 and
issue the following info to your HTTP server:

  POST /cgi-bin/sms-from-user HTTP/1.1
  Host: 192.168.16.1:80
  User-Agent: Kannel/1.4.0
  Content-Type: text/plain
  X-Kannel-From: 1333559876
  X-Kannel-Time: 2005-01-04 07:11:31
  X-Kannel-Coding: 0 
  X-Kannel-Service: myservice_via_post
  Content-Length: 11

  weather nyc

Your application (sms-from-user) will be started by your HTTP server
and receive the weather nyc as input.  Your application can then
perform the service associated with that request (get the weather
condition for NYC) and write out the information back to your
HTTP server. Your HTTP server will then send the information back
via the established HTTP_POST connection between the HTTP server
and the smsbox.

The smsbox will take the text you send it, create an SMS out of
it and generate an MT SMS (SMS going to a mobile device) targeted
back to the +1 333 555 9876 phone number. The smsbox sends it to
the bearerbox for delivery.

The bearerbox receives the SMS and sends it to the Mobile Network
Operator for final delivery to the mobile user.

The user gets an SMS with the information he/she requested.

Answer to Question 2)

Instead of using post-url in your group = sms-service section,
you can use the get-url declaration. In that case, you assume
that the URL you specify can perform the service on your behave
and generate the output that will be sent back to the user.

Using the same scenario as before (get weather condition for NYC),
you would have the following in your configuration:
  group = sms-service
  name = myservice_via_get
  keyword = default
  catch-all = true
  get-url = http://192.168.16.1/cgi-bin/sms-from-user?city=%s;

When the user sends the SMS, your smsbox will issue an HTTP_GET to
your HTTP server like:

  GET /cgi-bin/sms-from-user?city=nyc HTTP/1.1
  Host: 192.168.16.1:80
  User-Agent: Kannel/1.4.0

Your HTTP Server will start the application (sms-from-user)
and be given the argument:
  city=nyc

The application will perform the service and hopefully output
the results.  The HTTP server will return the information back
to the smsbox via the HTTP connection established from the HTTP_GET
and smsbox will generate an MT SMS with the content and send it
to the user.

See ya...

d.c.