RestComm / smscgateway

RestComm SMS Gateway (SMSC) to send/receive SMS from/to Operators Network (GSM)
http://www.restcomm.com/
GNU Affero General Public License v3.0
127 stars 111 forks source link

Intermediate Delivery Reports #62

Closed faizann closed 8 years ago

faizann commented 8 years ago

There is usually a need on SMPP clients to get extra information about status of an SMS for reporting purposes. This requires having intermediate delivery reports for every temporary failures. We need a way to send intermedia DLRs for such failures so that SMPP client side knows what is really going on with an SMS.

Suggestion is to loop through sms in SmsSet in case there are no failured sms and create intermediary DLR. The MessageUtil.java needs to accept an extra param tempFailure in createReceiptSms for identifying if a DLR is for temporary (ENROUTE/BUFFERED) or final in case of failure.

deruelle commented 8 years ago

Thanks @faizann. Do you want to contribute this one and provide a Pull Request for this ?

faizann commented 8 years ago

I will do so.

On Mon, 21 Mar 2016 at 17:59 Jean Deruelle notifications@github.com wrote:

Thanks @faizann https://github.com/faizann. Do you want to contribute this one and provide a Pull Request for this ?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/RestComm/smscgateway/issues/62#issuecomment-199379111

vetss commented 8 years ago

Some comments:

faizann commented 8 years ago

Yeah indeed it is not that simple. I have only looked at onDeliveryError part in SS7 side. I think MProc rules should be skipped for temp failures. lstFailured will have to stay independent.

Give me a few days and I will send a pull request. I will be working on it.

On Tue, 22 Mar 2016 at 08:54 vetss notifications@github.com wrote:

Some comments:

  • this feature must be configurable and disabled for default
  • implementaion of this demands a major processing in methods like onDeliveryError() and a very accurate implementing. Now delivery receipts are generated only for messages in "lstFailured" (so for a permananet failure only). There are also other actions that are applied for such messages. We will need to change this logic - like adding of extra list "lstTempFailured" and processing of it for receipts purposes. Also we have several places for receipt generating code...

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/RestComm/smscgateway/issues/62#issuecomment-199683430

deruelle commented 8 years ago

@faizann just wondered if you had anything blocking to complete this that we could help you with ?

faizann commented 8 years ago

Hi I have nothing blocking. Just very busy with work. I will try to submit a pull request next week.

On Thu, 21 Apr 2016 at 13:36 Jean Deruelle notifications@github.com wrote:

@faizann https://github.com/faizann just wondered if you had anything blocking to complete this that we could help you with ?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/RestComm/smscgateway/issues/62#issuecomment-212874796

deruelle commented 8 years ago

Thanks @faizann looking forward to it !

deruelle commented 8 years ago

hi @faizann, just wondering if you were able to move forward on that ?

faizann commented 8 years ago

Hi. I had messed up a lot of code on my local machine so had to cleanup. Here is the pull request https://github.com/RestComm/smscgateway/pull/77

vetss commented 8 years ago

Hi @faizann,

I have committed your update, thanks for your work.

But I have some remarks for your work.

vetss commented 8 years ago

Fixed by: https://github.com/RestComm/smscgateway/commit/6b67993b6b36cfd74158e4d58792418b07e770b7 https://github.com/RestComm/smscgateway/commit/998c419c5c79549ded352f5237e1d808ba3286be

It is better to refactor code to have more clear code.

deruelle commented 8 years ago

@faizann acknowledged at https://telestax.com/acknowledgements/