Hi Josué,
 
I dont know about data coding, but I was strugling with messaging mode, which I solved
by changing source code.
 
Messaging mode cannot be set by config files, because Kannel only work in store and forward
mode, this value (0x03) is "hard coded" in smsc_smpp.c.
 
(Here I'm talking about version 1.3.2. Reason is that I just got Kannel up and running with
my changes, when 1.4 was released, and while my altered 1.3.2 worked just fine, I didn't
delve into 1.4.)
So, in order to make change, You need to open file gw/smsc/smsc_smpp.c and go to
this kind of section:
 
    /*
     * set the esm_class field
     * default is store and forward, plus udh and rpi if requested
     */
    pdu->u.submit_sm.esm_class = ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE;
    if (octstr_len(msg->sms.udhdata))
        pdu->u.submit_sm.esm_class = pdu->u.submit_sm.esm_class |
            ESM_CLASS_SUBMIT_UDH_INDICATOR;
    if (msg->sms.rpi > 0)
        pdu->u.submit_sm.esm_class = pdu->u.submit_sm.esm_class |
            ESM_CLASS_SUBMIT_RPI;
 
 
Then, make change as follows:
 
    /* pdu->u.submit_sm.esm_class = ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE; */
    pdu->u.submit_sm.esm_class = ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE;
And compile.
 
If You want to get esm_class configurable, then some more changes are needed (in 3 files,
if I rememeber correctly), but I wont describe them here.
 
I know, I should have contributed changes I made, but I'm really not familiar with code contributing,
so I just didn't know how to do that. And also there is this issue about whether to allow user to
change esm_class or not (in some cases it is needed).
 
I can provide my changes if they are any help, but since there was version upgrade, my changes
probably do not work with version 1.4.
 
:)Marko
 
-----Original Message-----
From: Josué Marchiani [mailto:[EMAIL PROTECTED]
Sent: 27. joulukuuta 2004 17:52
To: users@kannel.org
Subject: setting parameters

 

Hi all,

Please how to set the following parameters:

 

 Parameter                  current value                             -    set to this value

 Messaging Mode - Store and Foward (0x03) - Default SMSC mode (0x00)

 Data Coding    - Unknown (0xf2)          - SMSC default alphabet (0x00)

 

Thanks,

 

 

 

Reply via email to