>
> That helps me. So let's say in the config, I want kannel to, every time
> an MO comes in, give me one or more non-standard pieces of the PDU in a
> format I can use:
>
> smsc = smpp
> smsc_id = supersms
> pass-param = 0x1402:2,%n,myparam1
> pass-param = 0x1404:4,%p,myparam2
> [...]
>
> Now when I do a "get-url" or something, I can do:
>
> http://x/foo.php?to=%t&from=%f&myparam1=%n&myparam2=%p
>
Or simpler
...
pass-param = 0x1402:2,myparam1
pass-param = 0x1404:4,myparam2
http://x/foo.php?to=%t&from=%f&${myparam1}&${myparam2}
and let kannel expand ${myparam1} (or something similar that can be
dynamically searched and replaced) to
myparameter=value
because the value can be associated by the "pass-param" declaration.
Another thing to mention: if you specify "pass-param" multiple times in one
group this will not work, you will have to add all the options (and not to
forget the type) to a list like
pass-param = "0x1402:2,int,myparam1;0x1404:4,octstr,myparam2"
> and %n will be the value of the PDU starting at 0x1402, and having 2
> octets in length, and %p will contain the 4 octets starting at 0x1404.
Note that the tag (i.e. 0x1402) is not an "offset", it is only a number
acting as a key.
Not all optional tags have a fixed length. So you will have to deal also
with ranges. The syntax of the configuration (and the checking and
converting methods) will have to support this - therefore require some
additional thought...
>
> When I submit an SMS to the gateway, I use myparam1 and myparam2, and
> the
> system will automatically check if they are set correctly (expected
> format) and set the PDU accordingly.
>
> Thoughts on that? I'm sure the config option could be cleaned up, but
> this
> would allow me to do anything I wanted to the PDU in the config. I
> definitely agree with Andreas -- this should go in the config, not per
> SMS.
>
> Beckman
>
---------------------------------------------------------------------------
> Peter Beckman Internet
> Guy
> [email protected]
> http://www.purplecow.com/
>
---------------------------------------------------------------------------
>
--
Andreas W.
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl
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.