Open shubhanshushukla opened 7 years ago
I rather would implement a custom delivery receipt in your program to handle the extra values. Create a custom enum like CustomDeliveryReceiptState with the state the SMSC supports, add a class CustomDeliveryReceipt extends DeliveryReceipt, implement a class CustomDeliveryReceiptStripper implements DeliveryReceiptStrip
Hi Please provide the sample code, it seems very complex. I will help to create/add documentation for this in GIT WIKI Let say I have created enum called DND_REJECTED `public enum CustomDeliveryReceiptState { DND_REJECTED(9);
private int value; DeliveryReceiptState(int value) { this.value = value; } public int value() { return value; } } ` Please paste the sample for way forward. Many thanks in advance.
I updated the DeliveryReceipt and put the example into the receipts example directory. Can you see if you get it working for you? If you have the complete list of states, I can put in the example.
Please suggest, from where I can call use these classes
I am using camel-smpp for receiving delivery receipt. camel-smpp using jsmpp internally. If change in camel smpp required I can do it.
For plain jSMPP, an example is there, in the class CustomSimpleSubmitSimpleReceiveExample. The Camel framework also have to be changed to use this new feature. I will try to find some time to make an working example in Camel.
Hi @pmoerenhout could you please share changes required in camel-smpp
Currently we have following DeliveryReceiptState
In India we get many other code apart from standard code mentioned above.
Like code 9 means user found in Do Not Disturb Database. Like code 11 means user found in Corporate Database.
But when we get these code from SMSC, we get exception.
So suggesting below changes