[ previous ] [ next ] [ threads ]
 To :  Milan Rukavina <milan@h...>
 From :  Allan Sandfeld Jensen <linux@c...>
 Subject :  Re: [yate] CDR Status 'accepted'?
 Date :  Fri, 4 Jun 2010 18:07:13 +0200
Hi Milan
On Friday 04 June 2010, Milan Rukavina wrote:
> Another strange thing I noted is that when status is answered I get
> billtime = 0 ?! And full duration is equal as ring time.
> When status is accepted is oposite: ringtime is 0 and billtime is almost
> equal duration.
> Am I doing something wrong in the callflow which causes this?
No. As I said, you can not rely on the status in call.cdr messages. The status 
is updated by the latest status cdrbuilder have seen, but messages are not 
necessarily arriving in the correct order, so cdrbuilder may see call.ringing 
after it sees call.answered. This only affects the status parameter though, 
billtime, duration and ringtime parameter can all handle messages arriving out 
of order, so rely on them instead. 

Duration > 0.000 means the call have been accepted.
Ringtime > 0.000 means the call have been ringing at one point.
Billtime > 0.000 means the call have been answered.

If you really need it. I have a patch that also orders the status, I'll see if 
I can extract it and post it. We need it to get correct status in dialog