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 »

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: 992
Joined: Tue Apr 25, 2006 9:45 am

Re: How to modify MessageId in DeliverSm to forward onward

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

Re: How to modify MessageId in DeliverSm to forward onward

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

Re: How to modify MessageId in DeliverSm to forward onward

Post by alt »

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 »

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