Hi Stipe,
Ok, i understand.
So, it's possible to have a dcs value of 0 ONLY when we send "flash
sms" (directly displayed) ?!
I need dcs=0 also with "normal sms" (sms to mobile) ...
Is it possible ?
Thanks.
Regards,
Olivier PELLEGRINO
MIL'NR3
Le jeudi 07 février 2008 à 18:54 +0100, Stipe Tolj a écrit :
> Olivier PELLEGRINO schrieb:
> > Hi,
> >
> > The wrong dcs value is fixed in this part (gw/sms.c) :
> > /* mode 1 */
> > else {
> > debug("bb.sms.smpp", 0, "[debug perso #1] dcs: %d", dcs);
> > dcs |= 0xF0; /* sets bits 7-3 */
> > debug("bb.sms.smpp", 0, "[debug perso #2] dcs: %d", dcs);
> > if(msg->sms.coding != DC_UNDEF){
> > dcs |= (msg->sms.coding << 2); /* only DC_7BIT or
> > DC_8BIT, sets bit 2*/
> > debug("bb.sms.smpp", 0, "[debug perso #3] dcs: %d",
> > dcs);
> > }
> > if (msg->sms.mclass == MC_UNDEF){
> > dcs |= 1; /* default meaning: ME specific */
> > debug("bb.sms.smpp", 0, "[debug perso #4] dcs: %d",
> > dcs);
> > }else{
> > dcs |= msg->sms.mclass; /* sets bit 1,0 */
> > debug("bb.sms.smpp", 0, "[debug perso #5] dcs: %d",
> > dcs);
> > }
> > debug("bb.sms.smpp", 0, "[debug perso #6] dcs: %d", dcs);
> > }
> >
> > Logs :
> > 2008-02-07 17:37:18 [11772] [14] DEBUG: [debug perso #1] dcs: 0
> > 2008-02-07 17:37:18 [11772] [14] DEBUG: [debug perso #2] dcs: 240
>
> ok, this means we have this within gw/smsc/smsc_smpp.c:
>
> /*
> * set the data coding scheme (DCS) field
> * check if we have a forced value for this from the smsc-group.
> * Note: if message class is set, then we _must_ force alt_dcs otherwise
> * dcs has reserved values (e.g. mclass=2, dcs=0x11). We check MWI flag
> * first here, because MWI and MCLASS can not be set at the same time and
> * function fields_to_dcs check MWI first, so we have no need to force
> alt_dcs
> * if MWI is set.
> */
> if (msg->sms.mwi == MWI_UNDEF && msg->sms.mclass != MC_UNDEF)
> pdu->u.submit_sm.data_coding = fields_to_dcs(msg, 1); /* force
> alt_dcs */
> else
>
>
> hence mclass IS SET, correct?
>
> checking your mail resolved that you DID send:
>
> X-Kannel-Mclass: 1
>
> Bingo, that's the reason we are forced to set the dcs value. If you need
> dcs=0,
> ensure you don't send mclass towards smsbox.
>
> Stipe
>
> -------------------------------------------------------------------
> Kölner Landstrasse 419
> 40589 Düsseldorf, NRW, Germany
>
> tolj.org system architecture Kannel Software Foundation (KSF)
> http://www.tolj.org/ http://www.kannel.org/
>
> mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
> -------------------------------------------------------------------