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
126 stars 112 forks source link

Adding of new CDR fields #167

Closed vetss closed 7 years ago

vetss commented 7 years ago

We need to add following CDR fields:

101 MSG_PARTS A count of a message parts per a CDR record. Different cases: 1) a message is splitted by SMSC GW == 1 2) a message is splitted by a peer == 1 3) a message is not splitted and sent as a solid one == a count of parts if we split it For cases 2 and 3 (that are identical from SMSC GW point of view) we need to calculate the parameter at delivering time (a new Sms field “msgParts” that is not stored into a database)) 102 DVL_MESSAGE_ID A messsageID that is used at SMPP protocol when sending a message to a peer. Only for SMPP terminated messages. A new Sms field “dlvMessageId” that is not stored into a database 103 RECEIPT_LOCAL_MESSAGE_ID For DLR receipt – an original messageId that was used in the original message in field MESSAGE_ID (for correlation between an original message and DLR)

1) Reuse of – Sms.receiptLocalMessageId field - for DLR transit 2) reuse Sms.messageId field – for local originated DLR 104 MPROC_NOTES An extra info that “mproc rules” application may put here

Extra configuring:

1) we need to add an extra general config parameter - “Generating of CDRs for temporary failures” (true for default) – to prevent of logging of non final records (for ESME case: partial_esme, success_esme,failed_esme will be generated and “temp_failed_esme” not)

vetss commented 7 years ago

Extra configuring: smsc set generatetempfailurecdr <true | false> - generateTempFailureCdr smsc set calculatemsgpartslencdr <true | false> - calculateMsgPartsLenCdr

vetss commented 7 years ago

Fixing:

https://github.com/RestComm/smscgateway/commit/898a3a9e676434a425984c07a514ed3c5a2149cd https://github.com/RestComm/smscgateway/commit/ef5592b0d0dd097ced9a69e4fed86c0a0e4c76b1