How to add cusom data to each SubmitSm object

.NET library for SMPP protocol
Locked
cesarv
Posts: 2
Joined: Fri Jul 15, 2011 9:43 pm

How to add cusom data to each SubmitSm object

Post by cesarv » Fri Jul 15, 2011 9:57 pm

Hi,

im testing your library for an implementation of a sms gateway, I have an id for each message that our system processes and I need to add that id to each message that gets sent to the SMSC, to get it back when the SMSC answers with the delivery status, so I can mark it as sent in the database.

I think the data should be added to each SubmitSm, but didn't found any clear way.

I hope made my self clear, and thanks in advance.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to add cusom data to each SubmitSm object

Post by alt » Tue Jul 19, 2011 7:21 am

Hi cesarv,

You cannot add custom data to SubmitSm until SMSC implements vendor specific parameters.

Please read this post inetlab-smpp/submitasync-t866.html#p1681
I hope it gives you a way how to update SMS status in your database.
cesarv
Posts: 2
Joined: Fri Jul 15, 2011 9:43 pm

Re: How to add cusom data to each SubmitSm object

Post by cesarv » Thu Jul 28, 2011 6:20 pm

Hi, that is the async way, there is a synchronous way of doing that?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to add cusom data to each SubmitSm object

Post by alt » Thu Aug 04, 2011 12:37 pm

Synchronous way is the same. Except evSubmitComplete event you can use return value SubmitSmResp of submit function.
Locked