Page 1 of 1

How to modify MessageId in DeliverSm to forward onward

Posted: Wed Jan 28, 2015 3:32 pm
by NickAskew
Hi

Has anyone managed to modify the MessageId in a DeliverSm to replace the existing one? No matter how I go about it the modifications are always overwritten when I serialise and then deserialise it :(

Help appreciated!

Regards
Nick

Re: How to modify MessageId in DeliverSm to forward onward

Posted: Thu Jan 29, 2015 12:37 pm
by alt
Hi Nick,

It is possible that DeliverSm contains also optional parameter ReceipedMessageId.

try to replace both
deliverSm.Optional[OptionalTags.ReceiptedMessageId]
and
deliverSm.Receipt.MessageId

Regards,
Alexey

Re: How to modify MessageId in DeliverSm to forward onward

Posted: Thu Jan 29, 2015 8:03 pm
by NickAskew
Hi Alexey,

Thanks for your response.

Unfortunately changing both of those properties doesn't modify the DeliverSm, after serialising and then deserialising it the previous MessageId is still present in DeliverSm.Receipt.ToString (The DeliverSm I am receiving doesn't use the option parameters).

Regards
Nick

Re: How to modify MessageId in DeliverSm to forward onward

Posted: Wed Feb 18, 2015 7:11 pm
by alt
fixed in the version 1.1.17.3

Re: How to modify MessageId in DeliverSm to forward onward

Posted: Wed Feb 18, 2015 7:56 pm
by NickAskew
Ah fantastic, thank you for the update! :)

I'll email you for a link to the new source code.

Regards
Nick