destination address from OnFullMessageReceived

.NET library for SMPP protocol
Locked
majortargets
Posts: 54
Joined: Mon Nov 16, 2009 3:48 pm
Location: United Kingdom
Contact:

destination address from OnFullMessageReceived

Post by majortargets » Thu Mar 06, 2014 10:34 am

Hi Alt,

How do I read destination address from below, is args.Parts(0).DestAddr missing?

Private Sub OnFullMessageReceived(ByVal sender As Object, ByVal args As MessageEventHandlerArgs)
addtolog(String.Format("Full message received from {0}: {1}", args.Parts(0).SourceAddr, args.Text), _clientID)
End Sub

Regards,
Gbenga
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: destination address from OnFullMessageReceived

Post by alt » Fri Mar 21, 2014 9:40 am

Hello Gbenga,

You can cast args.Parts(0) to DeliverSm or SubmitSm and get all required properties.
majortargets
Posts: 54
Joined: Mon Nov 16, 2009 3:48 pm
Location: United Kingdom
Contact:

Re: destination address from OnFullMessageReceived

Post by majortargets » Tue Jun 10, 2014 11:00 am

Hi Alt,

When I retrieve messageText that is longer than 160 characters from args.Parts(0), the message is truncated. How do I get the full messageText from it.

Regards,
Gbenga
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: destination address from OnFullMessageReceived

Post by alt » Wed Jun 11, 2014 7:38 pm

args.Text
Locked