Re: [Kannel-Users] Re: [Kannel-Users] Re: send-url for HTTP-based relay in 1.3.1
Peter Beckman <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 8 Aug 2004, Stipe Tolj wrote: > Peter Beckman wrote: > > > > Sorry. I have a single SMS message (ok, multiple, but lets just deal with > > one for now) that has a UDH and a binary body. Using 1.3.1. > > > > I'm using an HTTP relay connection to an SMSC. The URL I use is this: > > > > http://222.22.222.222/smschttp.php?from=%p&to=%P&text=%a&smsc=%i&coding=%c&udh=%u&textbin=%b&worthless=nothing > > > > The worthless=nothing is there because the url called attaches > > ?username=xxx&password=yyy at the end. > > > > When I get the UDH and the TEXT of the message passed to me, it is already > > in ASCII, which I then need to convert back into 0x00 characters so I can > > pass it to the SMSC. > > > > The problem is that either I'm converting wrong or something else from the > > ASCII version kannel passes to the URL, or I'm using the send-url wrong. > > > > Either way, a UDH in of 0B05041581... comes out 0B05040F51... and a whole > > bunch of other weird stuff. > > > > Has anyone taken a binary message from kannel HTTP and gotten things to > > work? > > Peter, I still don't "get it". Sorry. You are using the smsc_http > module for this? Or you get an MO-SMS via an SMSC link and try to > "forward" this via sms-service group to an "external HTTP server" that > can be concidered as SMSC too? > > Please drop some light on the connections and msg flow, to have this > more understandable. Yep. smsc = http, send-url is as above. MT-SMS comes in via kannel interface, is passed to the above URL, and then the URL passes the message in the SMSC-required format to the SMSC. The problem is with the UDH and TEXT of a binary message -- it is in ASCII control characters rather than the 000BFE12... format. The SMSC-required format requires the 000bFE12 format, but I'm having trouble translating what kannel 1.3.1 hands me in the udh and text fields back to that format for sending. Why am I sending it in this manner rather than just passing it directly to the above URL correctly formatted? I have a nice system which inserts a row in a mysql DB and then submits it to kannel, which in turn tracks the delivery. I could take kannel out of the loop, but that would double my efforts, so I'm trying to make this work. Beckman --------------------------------------------------------------------------- Peter Beckman Internet Guy [email protected] http://www.purplecow.com/ ---------------------------------------------------------------------------