Skip to content

Change CDR status in uppercase to lowercase for 'completed' #2422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

FerUy
Copy link

@FerUy FerUy commented Aug 14, 2017

Change CDR status to lowercase completed when updateInCompleteCallDetailRecordsToCompletedByInstanceId applies. This is for partially solving issue #2162 and related Zendesk ticket #34316. New issues will be raised to solve other problems mentioned in the concerning issue.

…DetailRecordsToCompletedByInstanceId' applies. Issue #2162
@abdulazizali77
Copy link
Contributor

abdulazizali77 commented Aug 22, 2017

@FerUy Fernando, can we in the interim just set it to cleanedup instead of completed ? What do you think?
Potentially we can add the additional enum for CLEANEDUP later

Fernando, i think we should wait for George's comments on this, this has larger implications than the two line change

@FerUy
Copy link
Author

FerUy commented Aug 22, 2017

OK @abdulazizali77, let's wait for @gvagenas input, but I certainly prefer cleanedup (or similar) rather than completed, as it would put completed and uncompleted transactions in the same category (this is why I created issue #2423 -and related #2424-).

@abdulazizali77
Copy link
Contributor

@FerUy Fernando, from a customer point of view/process, are the statistics for calls already exported before any RC nodes are restarted (and hence cleaned up?)

Im trying to understand whether the call statistics before RC restart is important enough to analyze (i assume it should be!) after the restart. Obviously with all the statuses set to some identical value whether its COMPLETED or CLEANEDUP this would not be possible.

@FerUy
Copy link
Author

FerUy commented Aug 23, 2017

Indeed @abdulazizali77, that's the origin of this (Zendesk ticket #34316). Right now and since the beginning, their IT department consolidates reports everyday and they have a list with a % of USSD sessions completed and another % of COMPLETED (in their case it's more due to external services in bad shape -answering slowly, generating timeouts, but not creating canceled status CDRs as they still don't have RC #2410 and #2411 and RestComm/ussdgateway#69 solved-).

So, it's important for them to have the proper metrics. Even after these aforementioned issues are solved, they will still eventually get some of these events (much fewer of course), so being able to discriminate a really completed USSD session from a cleanedup one is important from accounting and statistics perspective (and for us, from a monitoring perspective, as we use CDRs as a monitoring/debugging tool).

Furthermore, imagine a USSD session that while in-progress, an air time or data bundle is attempted to be purchased, and suddenly there is a problem (either in our system or the external service, or due to signaling congestion, or in the radio access). The user will very likely generate a call to customer service (which is expensive for the operator). Then, while in our system the CDR will tell completed, in the CRM from the prepaid or postpaid system it will tell otherwise. Got me better now?

@abdulazizali77
Copy link
Contributor

@FerUy Thanks Fernando, what you described is exactly the scenario i imagined. But wouldnt it be more visible if we had:
in-progress-cleanedup for call 1 which was in-progress and completed-cleanedup for call 2 which completed
instead of both cleanedup for call 1 and 2?

@FerUy
Copy link
Author

FerUy commented Aug 23, 2017

@abdulazizali77 I'd rather keep it simple, just with cleanedup (or similar).

@abdulazizali77
Copy link
Contributor

@gvagenas George, Fernando confirms that from this specific customer perspective, setting cleanedup to calls that existed before RC restart seems to suffice.
What are your thoughts? How does this impact RC and other use cases?

@gvagenas
Copy link
Contributor

@FerUy @abdulazizali77 to change state COMPLETED to completed is a minor change and you can proceed.

To introduce a new state cleanedup, is a different story and should be carefully designed before you proceed because it will have implications for other services that depend on CDRs, such as Conferencing, thus I believe we shouldn't proceed with the new cleanedup state.

Keep in mind that we are in the process of redesign and implement a new CDR service that will change everything in that space. In that regard, we should invest the minimum time on fixes for the existing CDR service.

@abdulazizali77 abdulazizali77 merged commit 144a7e5 into master Aug 23, 2017
@abdulazizali77
Copy link
Contributor

thanks @gvagenas @FerUy , merged.

@FerUy
Copy link
Author

FerUy commented Aug 23, 2017

Thanks @gvagenas & @abdulazizali77. For the other situation, I have already created #2423 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants