I used 1.4.21 and this(${CDR(duration)}) didn't work: exten => h,1,Verbose(>> (${CDR(dst)}) # Call from ${CDR(clid)} ended at ${STRFTIME(${EPOCH},,%d/%m/%Y %H:%M:%S)}. Duration(sec): ${CDR(duration)}.)
Alex -----Messaggio originale----- Da: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] Per conto di Ishfaq Malik Inviato: mercoledì 28 ottobre 2009 17.32 A: Asterisk Users Mailing List - Non-Commercial Discussion Oggetto: 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 it's 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, > > I've 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