Oops, I forgot to eclose the changes.
/Dennis
-----Original Message-----
From: Malmstr�m, Dennis
Sent: Thu 2002-02-07 14:01
To: [EMAIL PROTECTED]
Cc:
Subject: timestamps, scripts and nokia 7110
Hello
I've been using kannel (version 1.0.3) to implement a prototype sms gateway. This
has required some changes to the source code. I case any of them are of
value to the kannel project I hereby submit them.
Be aware that I have not gained overall understanding of the code. The purpose of
the changes have been to solve my particular problems as quickly as
possible. This should be taken into account when considering the changes (no
guarantees).
The changes I made are:
1) Added three escape codes:
%z, skips a word.
%A, same as %a but without url encoding.
%R, same as %r but without url encoding.
2) Added the possibility of executing a command line instead of fetching an url.
Configuration file example:
group = sms-service
keyword = default
execute = <command line>
3) Added modemtype nokia7110.
I started out using the modemtype premicell (which I somehow gathered was nokia
related).
Getting it to work required a few changes to the GSM modem handling code
(gw/smsc_at.c).
I created a new modemtype so I wouldn't change the definition of an existing one.
4) Fixed broken timestamp parser.
I am not sure wether this is a general issue or specific to nokia 7110.
Anyway, the existing code produced nonsense values for the data sent from a nokia
7110.
The following source code files where changed:
file change
---- ------
gwlib/octstr.h
gwlib/octstr.c Added function for reading Octstr from FILE*. Used by
gw/smsbox_req.c.
gw/smsbox_req.c (2)
gw/smsc_at.c (3)
(4)
gw/urltrans.c (1)
(2)
/Dennis
Dennis Malmstr�m
Erda Technology AB
S:t Larsgatan 12, 582 24 Link�ping, Sweden
http://www.erda.se
mail: [EMAIL PROTECTED]
phone: +46 (0)13 377218
gsm: +46 (0)706483090
octstr.c.diff
Description: octstr.c.diff
octstr.h.diff
Description: octstr.h.diff
smsbox_req.c.diff
Description: smsbox_req.c.diff
smsc_at.c.diff
Description: smsc_at.c.diff
urltrans.c.diff
Description: urltrans.c.diff
