[asterisk-dev] ANSWERED channel chan->cdr->billsec=0 ?

ast guy astguy at gmail.com
Thu May 4 01:30:43 MST 2006


Hi,
Really facing strange issue here and tried different methods to get it
working but in vain, In my prepaid application I'm calling this
statement to start CDR logging into pgsql database.

ast_cdr_reset (chan->cdr, 0);

just before calling the Dial() application

when application is done completing the call and I try access
chan->cdr->billsec it gaves me '0' seconds even when I hangup the call
billseconds inserted into database is NOT '0' but call duration of 184
seconds.

Any way how do I access the billsecond variable with correct value
from channel after call, in my application ?

Please suggest as i'm tired with different methods and might be
missing a key point here.

regards,

-ag



More information about the asterisk-dev mailing list