You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/02/03 08:58:00 UTC

[jira] [Updated] (CAMEL-16134) camel-smpp - Registered delivery flag on 1 of N segments of a long SMS

     [ https://issues.apache.org/jira/browse/CAMEL-16134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-16134:
--------------------------------
    Summary: camel-smpp - Registered delivery flag on 1 of N segments of a long SMS  (was: Registered delivery flag on 1 of N segments of a long SMS)

> camel-smpp - Registered delivery flag on 1 of N segments of a long SMS
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-16134
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16134
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-smpp
>            Reporter: G Kal
>            Priority: Minor
>
> When sending a long SMS with registered delivery receipt flag, which is split on multiple segments, each and every segment would be registered with this option.
> This makes the SMSC send a DLR for every segment of the message and you have to make a bigger effort on keeping their state, so you can merge the final state of the long - SMS's DLR.
> I would like to request an `{color:#000000}SmppConfiguration` option (i.e DlrOnLast) that would enable the DLR flag {color}{color:#000000}only on the last segment of the long SMS. {color}
> {color:#000000}A possible work-around that should occur on the SubmitSm and SubmitMulti:{color}
>  
> {code:java}
> // i.e on SmppSubmitSmCommand:70
> SubmitSm[] submitSms = new SubmitSm[segments.length];
> byte registeredDelivery = submitSms[0].getRegisteredDelivery();
> for(int i = 0; i < segments.length; ++i) {
>     SubmitSm submitSm = SmppUtils.copySubmitSm(template);
>     submitSm.setShortMessage(segments[i]);
>     if (this.config.getDlrOnLast()) {
>         submitSm.setSmscDelReceiptNotRequested();
>     }
>     submitSms[i] = submitSm;
> }
> submitSms[segments.length - 1].setRegisteredDelivery(registeredDelivery);
> return submitSms;
> {code}
> A possible better solution incorporating this would be to remove the DLR flag from the submit-sm template, at the first place.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)