Re: setting up TLV parameters

"Alejandro Guerrieri" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Ok, since I've received many private requests about my patches, I'm
publishing it herer so everybody can take a look at it.

http://www.magicom-bcn.net/kannel/tlv_example.patch

I've just updated from CVS so it should patch against latest CVS
without problems.

In this particular example, the MO TLV is a TLV_OCTETS at 0x2000h that
get translated to the "V" parameter (that's %V in the request URL).
You may have to change it to TLV_NULLTERMINATED, TLV_INTEGER, etc.
depending on your particular requirements. Of course, if the "V" tag
it's used for anything else on the main tree, you'll have to change
that particular line and look for another tag.

The MT TLV it's accesed by setting the "ticket" parameter on sendsms
or "X-Kannel-Ticket" when POSTing. I've also made an sqlbox patch to
add the "ticket" column to send_sms and sent_sms so the tickets can be
set also there, but I still have to adapt it to the standalone
version.

DISCLAIMERS:

* It is NOT intended to be a generic solution, just a (not-so) quick
hack to allow a "ticket" to be passed both ways. This _definitely_
cannot make it to CVS ;)

* This patch it's a stripped "cvs diff -u" from my install, where it
coexists with a bunch of other mods to make all my carriers happy ;).

* I think I didn't make any mistakes when removing the rest (mostly
from the sqlbox patch since I didn't switch to the standalone version
yet) but I didn't try to apply it as it is, so if you can't apply the
patch please let me know and I'll try to fix it.

* Also remember to backup your source tree before applying.
De-patching your finely tuned kannel tree can be a nightmare.

* Lat but not least, I don't make any warranties whatsoever about it,
so don't blame me if it fills your HD with zeroes :D

Hope it helps getting you on the right direction.

Regards,

Alejandro.
On 11/21/06, Juan Nin <[email protected]> wrote:
> Alejandro Guerrieri wrote:
> > Juan,
> >
> > The TLV's are on the MO or MT side?
> on the MT side
> I got to send the TLV for the telco to bill the MT
>
> >
> > I can send you my patches (the MT side were commited to the list a
> > long time ago in fact) so you can start from there.
> Yes please!!!
> I found reference to that on
> http://article.gmane.org/gmane.comp.mobile.kannel.devel/22269  but
> couldn't find the patches themselves
>
> I guess since they're old, that they won't patch cleanly to the current
> Kannel, but it may lead me to be able to put it into the current one, right?
>
> thanks!
>
> Juan
>
>


-- 
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri
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.