hi,

when calling sendsms with dlrurl specified, eg:
http://localhost:13013/cgi-bin/sendsms?username=user&password=pass&text=Just%20test&dlrmask=7&dlrurl=http%3A%2F%2Flocalhost%2Fkannel%2F%3Fdlr%3D1%26id%3D123%26service%3DEcho%26mtype%3DMT%26smsc%3D%25i%26ts%3D%25t%26src%3D%25p%26dest%3D%25P%26status%3D%25d&to=101

then kannel will invoke the dlr-url as:
http://localhost/kannel/?dlr=1&service=Echo&mtype=MT&smsc
(truncated url)

and a warning in bb.log: 
octstr_url_decode: corrupted end-of-string <%d>

Decoding the dlr-url using for example URI::Escape from perl:
$ perl -MURI::Escape -e'print 
uri_unescape(q{http%3A%2F%2Flocalhost%2Fkannel%2F%3Fdlr%3D1%26id%3D123%26service%3DEcho%26mtype%3DMT%26smsc%3D%25i%26ts%3D%25t%26src%3D%25p%26dest%3D%25P%26status%3D%25d}),
 "\n"'
http://localhost/kannel/?dlr=1&id=123&service=Echo&mtype=MT&smsc=%i&ts=%t&src=%p&dest=%P&status=%d

which return the original url back. 

How to get this working?
TIA.

rgds,
Edwin.



Reply via email to