Re: catenate the sms
Yury Mikhienko <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Mobicom-Kavkaz |
| Message-ID | <[email protected]> |
On 23 Apr 2003 17:10:11 +0200 David White <[email protected]> wrote: > On Wed, 2003-04-23 at 16:34, Yury Mikhienko wrote: > > On 23 Apr 2003 16:21:41 +0200 > > David White <[email protected]> wrote: > > > > > On Wed, 2003-04-23 at 16:13, Yury Mikhienko wrote: > > > > > > 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. > > > > > > > > > > > > > And sms-service receive the UDH+msgdata content or pure msgdata content? > > > > I think, the sms-service receive the pure msgdata content in this case. > > > > > > > > > > An sms-service that uses POST *will* get both msgdata and udh. This was > > > one of the reasons I submitted the ur-patch behind this modification > > > (which Stipe actually implemented, thanks!) > > > > > > What's the problem, exactly? > > > > > > > I want to receive into sms-service msgdata and udh in different get or post parameters. > > Use a "post-url" in your sms-service definition, that definitely should > work. There will be an "X-Kannel-UDH" header in the request, which will > contain the udh (if present). > Ok! Will try. Thanks! -- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz"