Re: setting up TLV parameters
"Alejandro Guerrieri" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Juan, The TLV's are on the MO or MT side? It's a quite different scenario, on the MO side, the TLV's are packed on the message and get converted to special variables inside kannel. On the MT side, you provide the variables on the request URL, XML or whatever interface you use to sendmessages and they get translated to the SMPP TLV's being sent to the SMSC. If you're facing the typical "billing ticket" scenario (a ticket comes as a TLV and you must respond including that ticket also on a TLV), it requires both functionalities. I've made modifications to kannel to add TLV's on both scenarios to accomodate operators and aggregators requirements. It's not _that_ difficult to do, but requires some C skills (and a testing platform to make sure it's working). 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. Hope it helps. Alejandro. On 11/10/06, Juan Nin <[email protected]> wrote: > does anyone have a comment on this? > > thanks in advance, > > Juan > > > > > Juan Nin wrote: > > > ok, but as you said, it's not simple, and it requires C programming > skills... > > I could try it, but it's not simple for me, and I need it quite urgent.. :( > > has nobody made a patch for this?? > I think it's something quite used, so why not adding direct support for > this, via a sendsms parameter? > > won't this facility be added to Kannel? > > same as the patch for adding sender for Wap Push.. I have patched my > Kannel with that, but won't it be added to main Kannel? > I think it's a must to be able to set the sender in Wap Push, why don't > add it to main Kannel? > > Thanks in advance, > > Juan > > > fred wrote: > > Kannel does provide ability to add TLV, > > but it is not a "setup" thing, it requires coding. > > > > the files you need to look at are > > smpp_pdu.def - to add tlv definitions using macro like TLV_INTEGER > > smsc_smpp.c: > > you will have to add some code > > in msg_to_pdu() and pdu_to_msg() > > to transfer data to/from the tlv > > > > then somehow need to communicate the data to there from the sendsms > > i/f and service i/f > > suggest add a OCTSTR(oprinfo) to the msg structure (msg-decl.h), so > > the information can be > > passed as a url arg for sendsms/service > > > > > > Its not simple, put it that way. > > > > > > > > ----- Original Message ----- > > *From:* Juan Nin <mailto:[email protected]> > > *To:* [email protected] <mailto:[email protected]> > > *Sent:* Thursday, November 09, 2006 1:20 AM > > *Subject:* setting up TLV parameters > > > > Hi! > > > > I need to send TLV parameters through an SMPP connection, for > > billing purposes, but Kannel doesn't provide such ability... > > I know some patches were made for this some time for Kannel 1.3.x > > > > Is there any patch for Kannel 1.4.0 or Kannel 1.4.1 that allow to > > do this?? > > > > I've been trying to Google, but links to posts of this topics are > > not working.. :( > > > > If there are patches for this, where an I find them? > > Are they going to be added to next releasr or are they included on > > CVS? > > > > Thanks in advance, > > > > Juan > > > > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri