UserData param

UserData param SearchSearch
Author Message
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 270
Registered: 07-2006
Posted on Tuesday, February 07, 2012 - 07:25 pm:   

Hi Des,

We found another issue, UserData returned only in SMSSend callback but not in SMSOut callback. We store that info for monitoring, is it possible to include that param in SMSOut callback?

Regards,
Alex K.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3764
Registered: 08-2008
Posted on Tuesday, February 07, 2012 - 11:50 pm:   

Hi Alex,

Hmm ...

I had to go back and look into this.

Most of the relevant discussion was between you and I here: http://support.nowsms.com/discus/messages/1/50899.html

However, somewhere in that discussion, I seem to have gotten confused. Or maybe our engineers were pushing back at me telling me that preserving the UserData in this way was not practical.

But now that the accounting callbacks have gotten more power with the ability to override some message settings like TLV values, I'm guessing that this may open the possibility that support for the UserData variable could be extended.

Ideally, I'd like to see it possible to set a UserData value from either a PreAuth or SMSSend callback. If set, it should carry through to callbacks up to SMSOut.

Currently, however, it does not work that way.

Currently it can be set only by a PreAuth callback, and the value is only passed to the corresponding SMSSend callback. The value exists for no other purpose than to allow a PreAuth callback to be matched up with the subsequent SMSSend.

So, this would be extended functionality. I will see if recent changes to the accounting callbacks make this any more practical.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3775
Registered: 08-2008
Posted on Friday, February 10, 2012 - 07:56 pm:   

Follow-up.

I was correct ... since we've made the other changes to the callbacks, extending the support for UserData was not as difficult.

It is now possible to set a UserData value in response to either a PreAuth or SMSSend callback. (If set by both, the SMSSend value will take the place of the PreAuth value in future callbacks.) When set, it will also carry through to the SMSOut callback.

This change is reflected in the update at http://www.nowsms.com/download/nowsms20120209.zip.

--
Des
NowSMS Support
Alex Kaiser
Frequent Contributor
Username: Alex_k

Post Number: 271
Registered: 07-2006
Posted on Sunday, February 12, 2012 - 12:07 pm:   

Hi Des,

Thanks for the update, we'll start testing on Monday.

Regards,
Alex K.