How to modify MessageId in DeliverSm to forward onward

.NET library for SMPP protocol
Locked
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

How to modify MessageId in DeliverSm to forward onward

Post by NickAskew » Wed Jan 28, 2015 3:32 pm

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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to modify MessageId in DeliverSm to forward onward

Post by alt » Thu Jan 29, 2015 12:37 pm

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
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: How to modify MessageId in DeliverSm to forward onward

Post by NickAskew » Thu Jan 29, 2015 8:03 pm

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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to modify MessageId in DeliverSm to forward onward

Post by alt » Wed Feb 18, 2015 7:11 pm

fixed in the version 1.1.17.3
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: How to modify MessageId in DeliverSm to forward onward

Post by NickAskew » Wed Feb 18, 2015 7:56 pm

Ah fantastic, thank you for the update! :)

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

Regards
Nick
ProcessFlows UK Ltd
http://www.processflows.co.uk/
Locked