You may want to include one of the following parameters in the get-url:

## Parameters:
# %k the keyword in the SMS request (i.e., the first word in the SMS
message)
# %s next word from the SMS message, starting with the second one (i.e., the
first word, the keyword, is not included); problematic characters for URLs
are encoded (e.g., '+' becomes '%2B')
# %S same as %s, but '*' is converted to '~' (useful when user enters a URL)
and URL encoding isn't done (all others do URL encode)
# %r words not yet used by %s; e.g., if the message is "FOO BAR FOOBAR BAZ",
and the has been one %s, %r will mean "FOOBAR BAZ"
# %a all words of the SMS message, including the first one, with spaces
squeezed to one
# %b the original SMS message, in a binary form
# %t the time the message was sent, formatted as "YYYY-MM-DD HH:MM", e.g.,
"1999-09-21 14:18"
# %p the phone number of the sender of the SMS message
# %P the phone number of the receiver of the SMS message
# %q like %p, but a leading `00' is replaced with `+'
# %Q like %P, but a leading `00' is replaced with `+'
# %i the smsc-id of the connection that received the message
# %d the delivery report value
# %A the delivery report SMSC reply, if any
# %n the sendsms-user or sms-service name
# %c message coding: 0 (default, 7 bits), 1 (7 bits), 2 (8 bits) or 3
(unicode)
# %C message charset: for a "normal" message, it will be "gsm" (coding=1),
"binary" (coding=2) or "UTF16-BE" (coding=3). If the message was sucessfully
recoded from unicode, it will be "ISO-8859-1"
# %u udh of incoming message

I am not sure of how old this list is. Maybe -meanwhile- there are new
parameters.
For the rest:

What happens if you "lynx" the same url from the same box. Is the host
linux-01 defined in your /etc/hosts or otherwise accessible?
Also: If the 9009 means a port number rather than a folder in your webspace,
the first slash should be a colon.

These options may not mean a solution. But it is what I am thinking of at
the moment.

Rene Kluwen
Chimit


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of B. van Breukelen
Sent: woensdag 28 september 2005 21:54
To: [email protected]
Subject: Kannel refuses to get-url


Hello,

I have Kannel setup to receive messages from the SMSC using CIMD2.
The problem is I setup a service where an incoming message should get
an http url but it never does and I do not receive any errors in the
logfile.
Can someone pont me to any errors in my conf file?

Thanks in advance,
Boudewijn

############### kannel.conf ##################
# General configuration
group = core
admin-port = 13000
admin-password = ######
status-password = ######
log-file = "/var/log/kannel/core.log"
log-level = 0
smsbox-port = 13002
store-file = "/var/spool/kannel/sms.store"

# SMSC Nokia CIMD2
group = smsc
smsc = cimd2
smsc-id = Infospace
host = 194.165.79.73
port = ####
smsc-username = #######
smsc-password = #######

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13001
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

# SEND-SMS USERS
group = sendsms-user
username = sms_user
password = ########

# SMS SERVICE GET-URL EXAMPLE
group = sms-service
keyword = default
catch-all = true
get-url = "http://linux-01/9009/index.php";
assume-plain-text = true
max-messages = 0
###############################################

The logfile states the normal startup lines and on an incoming sms:
2005-09-28 21:39:23 [8] DEBUG: smscconn
(CIMD2:194.165.79.73:9972:Infospace): new message received
After that it restarts and that's it...





Reply via email to