Something seems to be missing here- you don't pass ${BILLTIME} to hangup.php (as far as I can see), so it seems that hangup.php is operating (at least somewhat) independently of the dialplan. The OP seemed to want "in-line" knowledge of his billable seconds.
-----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Ishfaq Malik Sent: Wednesday, October 28, 2009 11:32 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] R: CDR(billsec) I have used ${CDR(billsec)} in asterisk 1.4.17 How I used it was h,1,SET(BILLTIME=${CDR(billsec)}) h,2,DeadAGI(hangup.php) My DeadAGI script could use my BILLSEC variable and it was always consistent with the CDR too. Danny Nicholas wrote: > > Does this mean its a bug in 1.4 or an enhancement in 1.6? If the > latter, can the change be back-ported? > > ------------------------------------------------------------------------ > > *From:* asterisk-users-boun...@lists.digium.com > [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of > *Alexandru Oniciuc > *Sent:* Wednesday, October 28, 2009 8:52 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] R: CDR(billsec) > > Hello Anahi, > > Ive encountered issues with CDR function when I was using the 1.4 > version and was trying to get ${CDR(duration)} in extension h. > > Passing to 1.6.X.X resolved it. > > I hope this helps. > > Alex > > ------------------------------------------------------------------------ > > *From:* asterisk-users-boun...@lists.digium.com > [mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of *Anahi > Ludueña > *Sent:* Wednesday, October 28, 2009 6:35 AM > *To:* asterisk-users@lists.digium.com > *Subject:* [asterisk-users] CDR(billsec) > > Hi people, when I try to get the billsec in the dialplan, it is 0... > but if after that I check the database, it is right (not 0). > I'm trying to get it in the h extension, like: > > exten => h,1,Noop(End) > exten => h,n,Noop(Time is ${CDR(billsec)}) > .... > > Is it updated after the extension h is executed? In that case, how can > I get the call duration in the h extension? > Thanks, > > > ** > ------------------------------------------------------------------------ > ** > > **Anahi Ludueña** > > ------------------------------------------------------------------------ > > Todo el espacio y cuidado que merecen tus fotos digitales lo tienes en > Windows Live Fotos. ¡Pruébalo! <http://www.vivelive.com/compartirfotos/> > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users