Author Topic: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue  (Read 16516 times)

ganapathi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #15 on: July 04, 2018, 08:19:59 AM »
Ok then i guess because of my wave channel and configuration mismatch which was mentioned on this previous replies on this thread may cause this issue and these sip channel is not finalized. Let me observe it current status then would come back if any doubt on this.

ganapathi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #16 on: July 08, 2018, 05:47:52 AM »
Hi

As i seen that some calls are not finalized properly. Mainly when made a transfer the current call to another local user. Please find the status and logs attached here.

name=cdrcombine,type=cdr,format=ChanId|Caller|Called|Address|OutLegs;cdrs=1;1530798280-611=sip/665|6033|6032|192.168.1.78:5629|1

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #17 on: July 09, 2018, 01:36:17 AM »
You are internally connect 2 call legs with different billing id.

cdrcombine does its job based on billid parameter.
cdrcombine is not designed to track channels with different billid.
This would require a custom logic.

You may store individual CDRs into database and run whatever logic you need for billing.

Keep in mind you must make a decision for the following:
A calls B: billid1
C calls D: billid2
You connect C with B !
You must run a complex logic to look at call time, answer time, duration, channel id ...

Bottom line:
- cdrcombine does not replace a charging application
- For custom logic you may need to build your own cdr combiner

ganapathi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #18 on: July 09, 2018, 04:18:02 AM »
Hi
No My question is to clear cdrcombine entry where it's still not cleared when call legs are cleared.

A(sig/1) calls B(sip/1) : billid 1
then
B(sip/1) calls C ( sip/2) : billid 2

In here cdrcombine is does the job for billid 1. But sometime is not doing for billid2. Where sip/1 & sip/2& sig/1 channels are disconnected but cdrcombine is not performed for billid2 and i think incoming finalize also not performed here.

Logic : It's Just conference call (  A -> B then B calls C with A on another line ).

Please help me to understand and solve this.


marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #19 on: July 11, 2018, 12:39:07 AM »
There is an issue with billid: outgoing channel may change its billid when incoming channel is forked and outgoing channel is connected to another channel before being connected to initial channel.
This will be fixed (I can't say when).

Meanwhile just stop using cdrcombine.

You may implement some logic to track all channels and their billid.
You may send a call.cdr with operation=finalize when necessary.
Keep in mind that this may affect cdr storage!

ganapathi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [ YATE-6.0.1 ] CDRBuild Initialize & Finalize Issue
« Reply #20 on: July 12, 2018, 01:30:43 PM »
Sorry. Still i couldn't understand the issue, even i tried to read the log , didn't get any clue until.

Anyway you says it's known issue,let me wait for the issue to be solve.

And am more into cdrcombine as of now.  Let me modify my logic with cdrbuild itself until it's get resolved.