[Asterisk-Users] 2nd call leg status?

SW sathyaw at sbcglobal.net
Sun Jan 11 12:40:14 MST 2004


Thanks Freddi,

Cool, it works, infact better yet ResetCDR(). ResetCDR() show just one
record in cdr, ResetCDR(w) will crete two records with the one for first
call leg, which I do not want :).

Cheers

SW

Date: Sun, 11 Jan 2004 17:27:08 +0100
From: Freddi Hansen <fh at danovation.dk>
To: asterisk-users at lists.digium.com
Subject: RE : [Asterisk-Users] 2nd call leg status?
Reply-To: asterisk-users at lists.digium.com

Hi,
I did have the same problem. I simply issue a ResetCDR(w) as the last
thing before using
the Dial application. This will reset the 'answered' flag and the CDR
you get from the Dial
will contain the correct value. I do later do a small of backend
processing to get the correct
A-line time related to the call.
There may be smarter way of doing this but this quick hack works fine
for me
Freddi





More information about the asterisk-users mailing list