Re: Re: OTA Truncation?

<[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <20020722080252.DHTT1188.fep06-svc.ttyl.com@localhost>
Hmm...
Looks like in sms_at2.c there is a at2_pdu_encode(Msg *msg, unsigned 
char *pdu, PrivAT2data *privdata) function with a very supicious 
looking comment. I guess this is the right area(?) but what to do next 
is beyond this newbie ;-) :

/*
 * user data
 * if the data is too long, it is cut
 */
if (msg->sms.coding == DC_8BIT || msg->sms.coding == DC_UCS2) {
    pos += at2_encode8bituncompressed(msg->sms.msgdata, &pdu[pos]);
} else {
    int offset = 0;

    if (octstr_len(msg->sms.udhdata)) { /* Have UDH */
        int nbits = octstr_len(msg->sms.udhdata) * 8; /* Includes UDH 
length byte */
        offset = (((nbits / 7) + 1) * 7 - nbits) % 7; /* Fill bits */
    }
    pos += at2_encode7bituncompressed(msg->sms.msgdata, &pdu[pos], 
offset);
}
pdu[pos] = 0;


_______________________________________________________________________
Freeserve AnyTime, only £13.99 per month with one month's FREE trial!
For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.