Hi,

attached "patch" should fix dcs_to_fields and versus functions.
The problem: assume you got dcs=0xf5 in your smpp/ucp triber.
Simple call: 
        dcs = 0xf5;
        dcs_to_fields(dcs,msg);
        filds_to_dcs(msg, msg->sms.alt_dcs);

And look what happens ;)

Please apply...

-- 
Best regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________________

Centrium GmbH
Ehrenstraße 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [EMAIL PROTECTED]
web: www.centrium.de
msn: [EMAIL PROTECTED]
icq: 98063111

Index: gw/sms.c
===================================================================
RCS file: /home/cvs/gateway/gw/sms.c,v
retrieving revision 1.6
diff -a -u -r1.6 sms.c
--- gw/sms.c	7 Dec 2002 14:30:54 -0000	1.6
+++ gw/sms.c	26 Feb 2003 16:09:20 -0000
@@ -83,6 +83,7 @@
         dcs &= 0x07;
         (*msg)->sms.coding = (dcs & 0x04) ? DC_8BIT : DC_7BIT; /* grab bit 2 */
         (*msg)->sms.mclass = 1 + (dcs & 0x03); /* grab bits 1,0 */
+        (*msg)->sms.alt_dcs = 1; /* set 0xfX data coding */
     }
     
     /* Non-MWI Mode 0 */

Reply via email to