Re: catenate the sms

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
> But I see in pdu_to_msg function  (smsc_smpp.c) the following:
> ...
>     if (pdu->u.deliver_sm.esm_class & ESM_CLASS_SUBMIT_UDH_INDICATOR) {
>         udh_offset = octstr_get_char(pdu->u.deliver_sm.short_message, 
> 0) + 1;
>         msg->sms.udhdata = 
> octstr_copy(pdu->u.deliver_sm.short_message, 0, udh_offset);
>         msg->sms.msgdata = 
> octstr_copy(pdu->u.deliver_sm.short_message, udh_offset,
>                                        
> octstr_len(pdu->u.deliver_sm.short_message) - udh_offset);
>         octstr_destroy(pdu->u.deliver_sm.short_message);
>         msg->sms.coding = DC_8BIT;
>     } else {
>         msg->sms.msgdata = pdu->u.deliver_sm.short_message;
>     }
>     pdu->u.deliver_sm.short_message = NULL;
> ...
>
> this is work for INCOMING sms only (in my opinion)
>

This is only splitting off the UDH header from the content.


Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333  Fax: +41-61-6666334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/      [email protected]
------------------------------------------------------------------
Send SMS to +979 979 UNICEF (+979979864233) to donate a
small amount to the children of Iraq. http://www.gni.ch/unicef
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.