Re: Getting to grips with Kannel for SMS

Charlie Clark <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On 2003-04-03 at 22:40:45 [+0200], you wrote:
> Kannel does not require OpenSSL. But if you use a recent version of 
> Cygwin, you can install this too via Cygwin's setup.exe installation 
> process.

libssl, libxml (Gnome not expat) are required. While it's nice that you 
provide the Cygwin dist as binaries it would be nicer to have a note of the 
necesary Cygwin components. Installation shouldn't be a rite of passage.

> > I've downloaded and installed all the stuff, there seems to be 
> > something missing. From the documentation I assumed Kannel came with a 
> > bunch of cgi-scripts but this is evidently not the case. Are they 
> > available as an external resource? ie, the much-read "sendsms" or 
> > "dlr.php" My main interest is in status report and, having quickly 
> > browsed the mailing list archive, I see I'm not the only one struggling.
> 
> the /cgi-bin/sendsms is an URI within the HTTP servers. They are *not* 
> particular scripts that are executed. Don't think of an Apache cgi-bin 
> directory where you place a Perl (or whatever) script.

> you should peek insde the code (gw/dlr.[ch]) in case the documentation is 
> not providing answers. And then, provide us a patch for the userguide ;)

I'd kind of figured this out. I've looked a bit at the sources. Eek! c, 
perl, php and Python... what a mix! I wasn't expecting the Spanish 
inquisition! ;-) Is the stuff in "/contrib" examples?

C isn't my specialty but I think I understand what dlr.* does: creates and 
updates DLR records for msgs to individual MSISDNs. This makes sense and 
seems reasonable.

What I still don't quite get is is how "dlrurl" is supposed to work: if it 
is part of the gateway it would seem unnecessary to have it as a parameter 
as if it's external URL/URI but on the other hand as an external URL I 
would expect to be able to pass it user-definable parameters, ie. allow 
external users to track their own messages even without access to the DLR 
store.

ie.
if I have a call like this:
http://mysmsgateway.com:13013/cgi-bin/sendsms?username=****&to=004917878262267&mclass=2&text=hm&password=******
validity=1440&dlrmask=2&dlrurl=http://anotherserver.com/cgi-bin/dlr_process.cgi?to=004917878262267&test=hm&msg_id=4

I only seem to get the first paramater "to=004917878262267" back. All the 
examples I've seen with "type?%d" and so on don't seem to work. Am I 
barking up the wrong tree?

I will submit corrections to the docs as a result of my experience. As a 
starter it's "grab" and not "grap" and "built in" not "build in"

Cheers

Charlie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.