Thanks for your help, it works (hardcoded) like that:

at the end of function msg_to_pdu:

   dict_put(pdu->u.submit_sm.optional_parameters, tag_str, opt_val);

It dumps it in the logfile and seems to have all the encoding implemented.

Andreas

-----Original Message-----
From: Stipe Tolj [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 25. Februar 2004 12:54
To: Andreas Rektenwald
Cc: [EMAIL PROTECTED]
Subject: Re: SMPP SUBMIT_SM optional Parameters - how to set?


Andreas Rektenwald schrieb:
>
> I have played around with kannel for a while and have initiated a SMPP
> connection to my provider. Works great!
> My Provider needs the optional parameter its_session_info set for MT SMS
(MO
> SMS works fine).
>  I've tried to understand the preproc stuff
> (Is there any documentation about that?), I think I know that I have to
> "hardcode" that in function
> msg_to_pdu (for test purposes), but how?

there is no exclusive documentation on the preproc magic, unfortunatly
;(. It's a bit tricky to understand, even while very powerfull in its
backend usage.

Simply think of real macro'ing of the things defined in the .def files
and how they are #define'ed within the sources. Sorry, it's hard to
explain in two sentences.

Kannel does currently not use optional (v3.4) parameters. They are
very specific to SMPP and as be try to abstract the frontend (smsbox
for MT direction) to all supported protocolls, there is no way to
inject data to specific optional parameters of the SMPP module.

If the data you have to store in the optional field is static, you can
hardcode it within the smpp packing (msg_to_pdu) function. Even while
I'm not sure if the encoding for the optional parameters is yet done?!

Stipe

mailto:[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG

M�nsterstr. 248
40470 D�sseldorf, NRW, Germany

phone: +49.211.74845.0
fax: +49.211.74845.299

mailto:[EMAIL PROTECTED]
http://www.wapme-systems.de/
-------------------------------------------------------------------

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.2 (Cygwin)

mIsEP6mcYwEEAMDnUiUwrbb+xwTFWN6TxF2+XZu7/alwJMeCwMBRvXtPZqfjpPhS
OkBpU0F4TrVuugz1HINTSaJTYq10AzDQXp5NkyWgckqW79nPAWuOX0dicbJk+cN2
nM2TI4KaxUDe6u8hghNEnH/i2lXsUu9apnP/iixzV81VC2je3uc9hZpnAAYptEVT
dGlwZSBUb2xqIChUZWNobm9sb2d5IENlbnRlciAmIFJlc2VhcmNoIExhYikgPHRv
bGpAd2FwbWUtc3lzdGVtcy5kZT6ItAQTAQIAHgUCP6mcYwIbAwYLCQgHAwIDFQID
AxYCAQIeAQIXgAAKCRABV0w1BqPYRuSqA/wPzsQxao2YePENCtgRTrO86U6zg3sl
OcS6CJFI4FZP5h/xD3GRsNH1+MPSvZlomDdpFnr547DGz/Kq9MXuQwVvlVig5yWZ
K5dtKp1r5YLhxJQBhfirZbRFFnYmf19f18J8OoS28tuFVftDl1AIwJS3HLyBTv6H
g2HyLAEKQIp30Q==
=aYCI
-----END PGP PUBLIC KEY BLOCK-----
BEGIN:VCARD
VERSION:2.1
N:Rektenwald;Andreas
FN:Andreas Rektenwald
NICKNAME:Andi
ORG:Xion IT Systems AG
TEL;WORK;VOICE:+43 1 333 91 99 - 615
TEL;CELL;VOICE:+43 664 8242 615
TEL;WORK;FAX:+43 1 333 91 99 - 199
ADR;WORK:;;Dresdnerstra�e 81-85;Wien;;;Austria
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Dresdnerstra=DFe 81-85=0D=0AWien=0D=0AAustria
URL;WORK:http://xion.at
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20021002T104736Z
END:VCARD

Reply via email to