Hi Stipe,
Thank you for your answer.
1/ This was done : Kannel bearerbox version `cvs-20080202'. Build `Feb 5
2008 13:58:17', compiler `3.3.5 (Debian 1:3.3.5-13)'.
2/ How i proceed to "debug" :
debug("bb.sms.smpp", 0, "[debug perso #1] msg->sms.alt_dcs: %d,
smpp->conn->alt_dcs: %d, pdu->u.submit_sm.data_coding: %d,
SMPP_DEFAULT_CHARSET: %s, smpp->alt_charset: %s", msg->sms.alt_dcs,
smpp->conn->alt_dcs, pdu->u.submit_sm.data_coding, SMPP_DEFAULT_CHARSET,
octstr_get_cstr(smpp->alt_charset));
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 */
debug("bb.sms.smpp", 0, "[debug perso #2] if condition");
}else{
pdu->u.submit_sm.data_coding = fields_to_dcs(msg,
(msg->sms.alt_dcs != SMS_PARAM_UNDEFINED ?
msg->sms.alt_dcs : smpp->conn->alt_dcs));
debug("bb.sms.smpp", 0, "[debug perso #2] else condition, arg
value: %d", (msg->sms.alt_dcs != SMS_PARAM_UNDEFINED ?
msg->sms.alt_dcs : smpp->conn->alt_dcs));
}
debug("bb.sms.smpp", 0, "[debug perso #3] msg->sms.alt_dcs: %d,
smpp->conn->alt_dcs: %d, pdu->u.submit_sm.data_coding: %d,
SMPP_DEFAULT_CHARSET: %s, smpp->alt_charset: %s", msg->sms.alt_dcs,
smpp->conn->alt_dcs, pdu->u.submit_sm.data_coding, SMPP_DEFAULT_CHARSET,
octstr_get_cstr(smpp->alt_charset));
Output:
2008-02-05 15:42:28 [20444] [14] DEBUG: [debug perso #1]
msg->sms.alt_dcs: -1, smpp->conn->alt_dcs: 0,
pdu->u.submit_sm.data_coding: 0, SMPP_DEFAULT_CHARSET: UTF-8,
smpp->alt_charset: ISO-8859-1
2008-02-05 15:42:28 [20444] [14] DEBUG: [debug perso #2] if condition
2008-02-05 15:42:28 [20444] [14] DEBUG: [debug perso #3]
msg->sms.alt_dcs: -1, smpp->conn->alt_dcs: 0,
pdu->u.submit_sm.data_coding: 241, SMPP_DEFAULT_CHARSET: UTF-8,
smpp->alt_charset: ISO-8859-1
[...]
2008-02-05 15:42:28 [20444] [14] DEBUG: data_coding: 241 = 0x000000f1
[...]
3/ Yes, sorry!
Thanks.
Regards,
Olivier PELLEGRINO
MIL'NR3
Le mardi 05 février 2008 à 12:27 +0100, Stipe Tolj a écrit :
> Olivier PELLEGRINO schrieb:
> > Hi Stipe,
> >
> > I compiled kannel from sources (from
> > http://www.kannel.org/download/1.4.1/deb/kannel_1.4.1.orig.tar.gz) and
> > added this ligne beside the if&else conditions :
> > debug("bb.sms.smpp", 0, "[debug perso] msg->sms.alt_dcs: %d,
> > smpp->conn->alt_dcs: %d, pdu->u.submit_sm.data_coding: %d,
> > SMPP_DEFAULT_CHARSET: %s, smpp->alt_charset: %s", msg->sms.alt_dcs,
> > smpp->conn->alt_dcs, pdu->u.submit_sm.data_coding, SMPP_DEFAULT_CHARSET,
> > octstr_get_cstr(smpp->alt_charset));
> >
> > I have this logs in my smppXX.log :
> > 2008-02-05 09:37:18 [10861] [14] DEBUG: [debug perso] msg->sms.alt_dcs:
> > -1, smpp->conn->alt_dcs: 0, pdu->u.submit_sm.data_coding: 241,
> > SMPP_DEFAULT_CHARSET: windows-1252, smpp->alt_charset: ISO-8859-1
> > [...]
> > 2008-02-05 09:37:18 [10861] [14] DEBUG: data_coding: 241 = 0x000000f1
> > [...]
> >
> > Is it what you expected from me ?
> > I'm not a confirmed user..
>
> thanks for engaging, we need to guide you some more ;)
>
> 1. please use CVS HEAD version from your CVS repository. You downloaded the
> stable 1.4.1 source tree, which is almost 1,5 years old. The CVS HEAD branch
> is
> a 1.4.2RC. See the download web site page for instructions on how to pull the
> CVS HEAD tree.
>
> 2. most interesting is the 'pdu->u.submit_sm.data_coding' value here. Please
> add
> debug() output before the fields_to_dcs() calls and after to identify which
> element really sets the 241 value.
>
> 3. Please keep the discussion on the mailing list, at least as CC, so others
> benefit or can help out in a discussion way.
>
> Thanks,
> 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
> -------------------------------------------------------------------