Citando David White <[EMAIL PROTECTED]>: > On Tue, 2003-02-18 at 07:06, Bruno Rodrigues wrote: > > > DCS is used internally in kannel and thus should be "controled" by it. > > That's why we have seperated fields to build DCS at the end. > > For example, if you set UDH and don't set coding, kannel will > > automatically (legacy behaviour) select 8 bit text and adapt your text > > data to it. > > Which is severely broken. Consider EMS messages, which have (e.g.) a > bitmap in the header and 7-bit text in the remaining space in the user > data field. Interpretation of user data is solely a function of DCS, > that's why it's there.
It was broken, that's why it's called legacy, but you can force coding=1 and send your 7 bit ems. > > Using coding, mclass, mwi and alt-dcs, every dcs combination can be > > done, if smsc modules supports it of course. EMI2 and AT2 surelly > > supports it. > > > > I can make a table in userguide with it's combinations to describe it. > > > > You will discover that the coding scheme cannot be completely > reconstructed from the data Kannel sends. DCS 0xF5 should be equivalent > to DCS 0x15, but there's no guarantee a mobile phone (or some > third-party app for a smartphone) will be so smart as to recognize the > equivalence. GET 'http://.../sendsms?...&text=123&coding=2&mclass=2' 2003-02-18 10:41:36 Sent SMS ... [flags:2:2:0:0:0] [msg:3:313233] [udh:0:] 2003-02-18 10:41:35 [15] DEBUG: EMI2[Vodafone-P31579]: emi2 sending packet: <92/.../020115///81> = DCS = 0x15 GET 'http://.../sendsms?...&text=123&coding=2&mclass=2&alt-dcs=1' 2003-02-18 10:41:41 Sent SMS ... [flags:2:2:0:0:0] [msg:3:313233] [udh:0:] 2003-02-18 10:41:41 [15] DEBUG: EMI2[Vodafone-P31579]: emi2 sending packet: <93/.../0201F5///97> Trust me. You can make a 1 to 1 conversion between DCS and (mc,co,mwi,alt). I've done that code, and I've tested it several times. > I made these suggestions and sent an SMPP patch because I encountered > problems trying to get Kannel to handle MO messages correctly. One of > these problems is that it screws up DCS. Can you send me your message or a url to an archive ? I usually don't pay attention to other smsc modules as I don't use them. -- Davi / Bruno.Rodrigues<at>Litux.Org Litux.org: 10:35:18 up 87 days, 11:50, 7 users, load average: 0.03, 0.04, 0.00 '"It is easier to port a shell than a shell script." -- Larry Wall'
