Page 1 of 1

How to add cusom data to each SubmitSm object

Posted: Fri Jul 15, 2011 9:57 pm
by cesarv
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.

Re: How to add cusom data to each SubmitSm object

Posted: Tue Jul 19, 2011 7:21 am
by alt
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.

Re: How to add cusom data to each SubmitSm object

Posted: Thu Jul 28, 2011 6:20 pm
by cesarv
Hi, that is the async way, there is a synchronous way of doing that?

Re: How to add cusom data to each SubmitSm object

Posted: Thu Aug 04, 2011 12:37 pm
by alt
Synchronous way is the same. Except evSubmitComplete event you can use return value SubmitSmResp of submit function.